/* THE WEB — Interconnected timeline by location and time */

.the-web-page .the-web-center {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.5rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Clear fixed sidebar on desktop — match feed.css feed-center */
@media (min-width: 1260px) {
    .the-web-page .the-web-center {
        padding-left: calc(244px + 1.5rem);
        padding-right: 1.5rem;
        max-width: 1200px;
        margin-left: 0;
        margin-right: auto;
    }
}

.the-web-header {
    margin-bottom: 1.5rem;
}

.the-web-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    color: var(--text-white);
    margin: 0 0 0.25rem 0;
}

.the-web-subtitle {
    font-family: 'Hudson', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.the-web-horizon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.the-web-horizon-label {
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.the-web-horizon-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    font-family: 'Hudson', sans-serif;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.the-web-horizon-select:hover,
.the-web-horizon-select:focus {
    border-color: var(--primary-green);
    background: rgba(110, 193, 255, 0.08);
    outline: none;
}

/* Summary panel — varies by time horizon */
.the-web-summary {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.the-web-summary-title {
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-green);
    margin: 0 0 0.5rem 0;
}

.the-web-summary-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

.the-web-summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.the-web-summary-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.the-web-summary-stats i {
    color: var(--primary-green);
}

/* Narrative — how threads connect and push the story */
.the-web-narrative {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.the-web-narrative-title {
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-green);
    margin: 0 0 0.75rem 0;
}

.the-web-narrative-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

.the-web-narrative-p {
    margin: 0 0 0.75rem 0;
}

.the-web-narrative-p:last-child {
    margin-bottom: 0;
}

.the-web-woven {
    font-family: 'Hudson', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0.75rem 0 0 0;
}

/* Content: visual + text side by side on desktop */
.the-web-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .the-web-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .the-web-visual {
        flex: 1 1 55%;
        min-width: 0;
    }

    .the-web-text-timeline {
        flex: 0 0 340px;
    }
}

/* Visual timeline — web / node graph */
.the-web-visual {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
}

.the-web-canvas-wrap {
    width: 100%;
    min-height: 320px;
    position: relative;
}

.the-web-canvas-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
}

.the-web-visual-empty {
    padding: 2rem;
    text-align: center;
    font-family: 'Hudson', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Timeline nodes (when rendered as divs) */
.web-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 2px solid rgba(110, 193, 255, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.web-node:hover {
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(110, 193, 255, 0.6);
}

.web-node-sector {
    background: rgba(255, 200, 100, 0.9);
    border-color: rgba(255, 200, 100, 0.6);
}

.web-node-sector:hover {
    box-shadow: 0 0 16px rgba(255, 200, 100, 0.5);
}

/* Text timeline list */
.the-web-list-title {
    font-family: 'Hudson', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
}

.the-web-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.the-web-event {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.the-web-event:hover {
    border-color: rgba(110, 193, 255, 0.3);
    background: rgba(110, 193, 255, 0.06);
}

.the-web-event-time {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.the-web-event-sector {
    display: inline-block;
    font-family: 'Hudson', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-green);
    margin-bottom: 0.35rem;
}

.the-web-event-author {
    font-family: 'Hudson', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.the-web-event-snippet {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Vertical timeline (alternative visual) */
.web-timeline-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.web-timeline-connector {
    stroke: rgba(110, 193, 255, 0.35);
    stroke-width: 1.5;
}

.web-timeline-node-circle {
    fill: var(--primary-green);
    stroke: rgba(110, 193, 255, 0.6);
    stroke-width: 2;
    cursor: pointer;
}

.web-timeline-node-circle:hover {
    filter: drop-shadow(0 0 8px rgba(110, 193, 255, 0.8));
}

.web-timeline-node-label {
    font-family: 'Hudson', sans-serif;
    font-size: 10px;
    fill: var(--text-muted);
}
