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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.65;
    color: #121212;
    background-color: #ffffff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* News Grid Section */
.news-grid-section {
    background: #ffffff;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #e2e2e2;
}

.news-grid-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-grid-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b6b6b;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-article {
    background: #fff;
    border: 1px solid #e2e2e2;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-article:hover {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-article.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 400px;
}

.news-article.featured .news-image {
    height: 100%;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6b6b;
    margin-bottom: 0.5rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.news-headline {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    flex: 1;
}

.news-article.featured .news-headline {
    font-size: 2rem;
}

.news-meta {
    font-size: 0.8125rem;
    color: #6b6b6b;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-skeleton {
    text-align: center;
    padding: 4rem;
    color: #6b6b6b;
    font-style: italic;
}

@media (max-width: 768px) {
    .news-article.featured {
        grid-template-columns: 1fr;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .news-article.featured .news-image {
        height: 200px;
        width: 100%;
    }
    
    .news-article.featured .news-headline {
        font-size: 1.5rem;
    }
    
    .news-article.featured .news-content {
        padding: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .news-article {
        margin-bottom: 1rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-headline {
        font-size: 1.1rem;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Three-column layout */
.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr 340px;
    gap: 2rem;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.left-sidebar, .right-sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
}

.article-preview {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #e2e2e2;
}

/* Sidebar Sections */
.sidebar-section {
    background: transparent;
    padding: 0 0 1.5rem 0;
    border-radius: 0;
    margin-bottom: 2rem;
    box-shadow: none;
    border-bottom: 1px solid #e2e2e2;
}

.sidebar-section h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: #000;
}

/* Trending Items */
.trending-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e2e2;
    cursor: pointer;
    transition: all 0.2s;
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-item:hover h4 {
    text-decoration: underline;
}

.trend-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c7c7c7;
    line-height: 1.2;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    min-width: 25px;
}

.trend-content h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.trend-content p {
    font-size: 0.8125rem;
    color: #6b6b6b;
    line-height: 1.4;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Event Items */
.event-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-date {
    background: #000;
    color: #fff;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    border-radius: 4px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.event-info p {
    font-size: 0.875rem;
    color: #666;
}

/* Story Items */
.story-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

.story-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.story-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.story-meta {
    font-size: 0.875rem;
    color: #666;
}

/* Voice Items */
.voice-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.voice-item:last-child {
    margin-bottom: 0;
}

.voice-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.voice-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.voice-content p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    background: #fafafa;
    border: 1px solid #e2e2e2;
    padding: 1.5rem;
    border-radius: 0;
}

.cta-section p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: #333;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.cta-section .subscribe-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.cta-section .subscribe-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 200px 1fr 250px;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .left-sidebar, .right-sidebar {
        display: none;
    }
    
    aside {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .article-preview {
        padding: 2rem !important;
    }
    
    .main-layout {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .tree-visualization {
        padding: 1rem;
    }
    
    .story-card {
        width: 240px;
        padding: 1rem;
    }
    
    .story-card-excerpt {
        -webkit-line-clamp: 2;
    }
}

.navbar {
    background-color: #fff;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e2e2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.logo {
    color: #000;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Chomsky', 'Times New Roman', serif;
    letter-spacing: -0.02em;
    transition: opacity 0.3s;
}

.logo-link:hover .logo {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 0.875rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    transition: all 0.2s;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    border-bottom-color: #000;
}

.nav-link.sign-in-btn {
    background: #000;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    margin-left: 1rem;
    transition: all 0.2s;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    height: fit-content;
    border: none;
    font-weight: 600;
}

.nav-link.sign-in-btn:hover {
    background: #333;
    border-bottom-color: transparent;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.article-preview {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.article-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid #e2e2e2;
}

.article-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

.article-meta {
    color: #6b6b6b;
    font-size: 0.875rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

.article-content {
    padding: 2rem 3rem 3rem;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.article-content h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.625rem;
    margin: 3rem 0 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #292929;
    font-size: 1.125rem;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    margin-bottom: 2rem;
}

.paywall-overlay {
    position: relative;
    margin-top: 3rem;
}

.paywall-overlay::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.8) 50%, white 100%);
    pointer-events: none;
}

.paywall-content {
    background: #fafafa;
    padding: 3rem;
    border-radius: 0;
    text-align: center;
    border: 1px solid #e2e2e2;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.05);
}

.paywall-content h3 {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
}

.paywall-content > p {
    color: #6b6b6b;
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.5;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.subscription-tier {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 0;
    border: 1px solid #e2e2e2;
    position: relative;
    transition: all 0.2s;
}

.subscription-tier:hover {
    border-color: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.subscription-tier.featured {
    border-color: #000;
    border-width: 2px;
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 0.375rem 1.25rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.subscription-tier h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.savings {
    color: #28a745;
    font-weight: 500;
    margin-bottom: 1rem;
}

.benefits {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.benefits li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.subscribe-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    background: #000;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.02em;
}

.subscribe-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.subscribe-btn.primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

.subscribe-btn.primary:hover {
    background: #333;
    border-color: #333;
}

.login-prompt {
    color: #666;
    font-size: 0.9rem;
}

.login-link {
    color: #000;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
}

.close:hover {
    color: #999;
}

.modal-content h3 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #222;
}

#card-element {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

#card-element.StripeElement--focus {
    border-color: #000;
}

#card-errors {
    color: #721c24;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #e2e2e2;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s;
}

.mobile-nav-link:hover {
    background: #f5f5f5;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-header,
    .article-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .subscription-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Coming Soon Section */
.coming-soon {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

.coming-soon h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-navigation {
        display: block;
    }
}

.coming-soon ul {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
}

.coming-soon li {
    padding: 0.75rem 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.coming-soon li:last-child {
    border-bottom: none;
}

/* Story Creation Styles */
.story-section {
    min-height: 100vh;
    padding: 4rem 0;
    background: linear-gradient(to bottom, #fafafa, #f0f0f0);
}

.story-section h2 {
    font-size: 3rem;
    font-family: 'Frank Ruhl Libre', serif;
    text-align: center;
    margin-bottom: 1rem;
}

.story-section .intro {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.story-interface {
    max-width: 900px;
    margin: 0 auto;
}

.prompt-area {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#storyPrompt {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
}

.generate-btn, .branch-btn, .new-btn {
    background: #000;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 16px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.generate-btn:hover, .branch-btn:hover, .new-btn:hover {
    background: #333;
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.current-story {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.story-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-family: 'Frank Ruhl Libre', serif;
}

.story-actions {
    display: flex;
    gap: 1rem;
}

.story-tree {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
    width: 100%;
}

.story-tree h3 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #000;
}

.tree-visualization {
    position: relative;
    min-height: 400px;
    max-height: 600px;
    overflow-x: auto;
    overflow-y: auto;
    padding: 3rem;
    background: #fafafa;
    border-radius: 8px;
    margin-top: 2rem;
    width: 100%;
}

.tree-visualization::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.tree-visualization::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tree-visualization::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tree-visualization::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.tree-visualization::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

.story-card {
    position: absolute;
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 1.25rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 280px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.story-card:hover {
    background: #fff;
    border-color: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    z-index: 3;
}

.story-card.selected {
    background: #f0f0f0;
    border-color: #000;
    border-width: 2px;
}

.story-card-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.story-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b6b6b;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.story-card-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-card-branches {
    background: #000;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.story-card.has-parent {
    border-left: 3px solid #000;
}

.story-card-parent {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.story-connection {
    position: absolute;
    background: #ddd;
    height: 2px;
    transform-origin: left center;
    z-index: 1;
}

.story-connection::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 6px solid #ddd;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Article Modal Styles */
.article-modal {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    max-width: 800px;
    max-height: 95vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.article-modal .close {
    color: #333;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-modal .close:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

.full-article {
    padding: 0;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.full-article .article-header {
    padding: 3rem 4rem 2rem;
}

.full-article .article-category {
    color: #b91c1c;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.full-article .article-headline {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #121212;
    margin-bottom: 1rem;
}

.full-article .article-subheadline {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #4a4a4a;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.full-article .article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #666;
    padding-top: 1rem;
    border-top: 1px solid #e2e2e2;
}

.full-article .article-body {
    padding: 2rem 4rem 4rem;
    font-family: 'Georgia', serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.full-article .article-body p {
    margin-bottom: 1.5rem;
}

.full-article .article-body p:first-child::first-letter {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 700;
    float: left;
    margin: 0.1rem 0.5rem 0 0;
}