:root {
    --bg-color: #ddd6ca;
    /* Richer beige color to stand out more */
    --text-color: #111111;
    --redacted-color: #111111;
}

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

body {
    background-color: #050505;
    /* Dark background behind the dossier */
    color: var(--text-color);
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.dossier-container {
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    width: 100%;
    max-width: 1400px;
    min-height: 90vh;
    position: relative;
    padding: 4rem 8rem 4rem 4rem;
    /* Increased right padding to fit the channel indicator */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

/* Redacted Text Effect */
.redacted {
    background-color: var(--redacted-color);
    color: var(--redacted-color);
    padding: 2px 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.redacted.hoverable:hover {
    color: var(--bg-color);
    cursor: crosshair;
}

.redacted.line {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.redacted.line.short {
    width: 60%;
}

/* Typography */
.label {
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    opacity: 0.8;
}

.inverted-label {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 2px 6px;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
}

.title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Layout */
.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5rem;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.border-box {
    border: 2px solid var(--text-color);
    padding: 8px 12px;
    text-align: center;
}

.small-stamp {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.8em;
    margin-bottom: 1rem;
}

.dossier-meta .meta-row {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    width: 250px;
}

.dossier-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 4rem;
    position: relative;
}

.left-column {
    max-width: 400px;
}

.content-block {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px dashed rgba(0,0,0,0.3);
    border-bottom: 1px dashed rgba(0,0,0,0.3);
}

.content-block p {
    margin-bottom: 1rem;
}

.host-info {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listen-links {
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    border: 2px solid var(--text-color);
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--text-color);
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-frame {
    width: 320px;
    height: 320px;
    margin-bottom: 3rem;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1.05) brightness(1.1);
}

.profile-flag {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    mix-blend-mode: multiply;
    opacity: 0.5;
    filter: grayscale(100%);
    border-radius: 2px;
}

.notes-section {
    width: 100%;
    max-width: 300px;
}

.notes-header {
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.notes-list {
    list-style: none;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.notes-list li {
    margin-bottom: 0.8rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.small-text {
    font-size: 0.9em;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.terminal-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 2px 6px;
    font-weight: bold;
}

.protocol-text {
    font-weight: bold;
    letter-spacing: 1px;
}

.kangaroo-graphic {
    margin-top: 3rem;
    position: relative;
    text-align: right;
}

.graphic-img {
    width: 100%;
    max-width: 250px;
    mix-blend-mode: multiply;
    opacity: 0.9;
    filter: grayscale(100%) contrast(1.2);
}

.graphic-meta {
    margin-top: 1rem;
    font-size: 0.8em;
    text-align: left;
}

.channel-indicator {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signal-bars {
    border: 1px solid var(--text-color);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 0.8rem;
}

.signal-bars .bar {
    width: 24px;
    height: 6px;
    background-color: var(--text-color);
}

/* Crosshairs and Corners */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-color);
}

.top-left {
    top: 2rem;
    left: 2rem;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 2rem;
    right: 2rem;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 2rem;
    left: 2rem;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 2rem;
    right: 2rem;
    border-left: none;
    border-top: none;
}

@media (max-width: 1200px) {
    .dossier-body {
        grid-template-columns: 1fr 1fr;
    }

    .right-column {
        grid-column: span 2;
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
        margin-top: 3rem;
    }

    .channel-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .dossier-container {
        padding: 2rem;
    }

    .dossier-header {
        flex-direction: column;
        gap: 2rem;
    }

    .dossier-body {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .right-column {
        grid-column: span 1;
        flex-direction: column;
    }

    .title {
        font-size: 3rem;
    }
}

/* Work Feed */
.work-feed {
    margin-top: 6rem;
    position: relative;
    z-index: 1;
}

.work-feed .notes-header {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    border: 2px solid var(--text-color);
    padding: 1rem 1.5rem;
}

.work-feed .notes-header::before,
.work-feed .notes-header::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid var(--text-color);
}

.work-feed .notes-header::before {
    margin-right: 2rem;
}

.work-feed .notes-header::after {
    margin-left: 2rem;
}

.feed-entry {
    margin-bottom: 3rem;
    max-width: 800px;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(0,0,0,0.2);
    padding-bottom: 0.5rem;
}

.entry-meta strong {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 2px 8px;
    letter-spacing: 1px;
}

.status-badge {
    margin-left: auto;
    border: 1px solid var(--text-color);
    padding: 2px 6px;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.entry-content {
    padding-left: 2rem;
    border-left: 3px double var(--text-color);
    margin-left: 0.5rem;
    line-height: 1.8;
}

.feed-link {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: bold;
}

.feed-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}