/* ==========================================================================
   thedead.dog // tDd // Pure Textfile & BBS CRT Stylesheet
   #000000 background + #00ed00 base text (7% darker) + #00ff00 bold text
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #00ed00;
    font-family: "Courier New", Courier, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.45;
    color-scheme: dark;
    overflow-x: hidden;
}

body {
    padding: 16px 0 44px 0;
}

strong,
b,
th {
    color: #00ff00;
    font-weight: bold;
}

a:link,
a:visited {
    color: #00ed00;
    text-decoration: underline;
}

a:hover,
a:active,
a:focus-visible {
    color: #00ff00;
    font-weight: bold;
    background: transparent;
}

a.plain-link:link,
a.plain-link:visited {
    text-decoration: none;
    color: #00ed00;
}

a.plain-link:hover,
a.plain-link:active,
a.plain-link:focus-visible {
    color: #00ff00;
    font-weight: bold;
    text-decoration: underline;
}

.active-wing-item {
    color: #00ff00;
    font-weight: bold;
}

a.active-nav:link,
a.active-nav:visited {
    color: #00ff00;
    font-weight: bold;
    text-decoration: none;
}

.shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(8px, 1.1vw, 18px);
}

.top-util-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2px 2px 2px;
    margin: 0;
}

a.op-login-link:link,
a.op-login-link:visited {
    font-family: "Lucida Console", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
    font-size: 0.80rem;
    letter-spacing: 0.025em;
    color: #00ed00;
    opacity: 0.8;
    text-decoration: none;
    text-shadow: 0 0 2px rgba(0, 255, 51, 0.35);
}

a.op-login-link:hover,
a.op-login-link:focus-visible {
    color: #00ff00;
    opacity: 1;
    font-weight: bold;
    text-decoration: underline;
}

/* --- 3-Column Hero: Granularity (Left) | tDd Skull Art (Center) | Channels (Right) --- */
.hero-stage {
    display: grid;
    grid-template-columns: minmax(195px, 1fr) auto minmax(195px, 1fr);
    align-items: center;
    justify-items: center;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto 18px auto;
}

.hero-wing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.wing-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    line-height: 1.4;
}

.wing-links li {
    white-space: nowrap;
}

.hero-center {
    text-align: center;
    min-width: 0;
}

.ascii-art {
    display: block;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    margin: 0 auto;
    color: #00ed00;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(4.2px, 1.28vw, 12.5px);
    line-height: 1.12;
    white-space: pre;
}

.ace-dog {
    color: #e00000;
}

.ace-flip {
    display: inline-block;
    line-height: 1;
    transform: rotate(180deg);
    transform-origin: 50% 54%;
}

/* --- Sculpted ASCII Dog-Bone Banners --- */
.bone-hdr {
    display: block;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    margin: 6px auto 8px auto;
    color: #00ed00;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(10px, 2.75vw, 15px);
    line-height: 1.14;
    white-space: pre;
}

.wing-bone {
    margin: 0 auto 4px auto;
    font-size: clamp(11px, 3.05vw, 14.5px);
}

/* --- Old Bash Terminal Grep / Date Command Line --- */
.filter-form.bash-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px 8px;
    padding: 6px 4px;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: none;
    background: transparent;
    border: none;
    font-family: "Lucida Console", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
    font-size: 0.93rem;
    letter-spacing: 0.015em;
}

.bash-prompt {
    color: #00ff00;
    font-weight: bold;
    white-space: nowrap;
}

.bash-cmd,
.bash-flag,
.bash-quote,
.bash-target {
    color: #00ed00;
    white-space: nowrap;
}

.bash-target {
    opacity: 0.82;
}

.bash-arg {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    min-width: 0;
}

.bash-input {
    background: transparent;
    color: #00ff00;
    caret-color: #00ff00;
    border: none;
    border-bottom: 1px dashed rgba(0, 237, 0, 0.55);
    padding: 1px 4px;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-shadow: inherit;
    color-scheme: dark;
}

.bash-pattern {
    min-width: 170px;
    width: min(270px, 56vw);
}

.bash-date {
    width: 138px;
    min-width: 126px;
}

.bash-date::-webkit-calendar-picker-indicator {
    filter: invert(53%) sepia(96%) saturate(2100%) hue-rotate(84deg) brightness(112%) contrast(118%);
    cursor: pointer;
    opacity: 0.85;
}

.bash-input::placeholder {
    color: #00ed00;
    opacity: 0.45;
}

.bash-input:focus {
    outline: none;
    border-bottom: 1px solid #00ff00;
    color: #00ff00;
}

.bash-actions {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-left: 4px;
    white-space: nowrap;
}

.bash-btn {
    text-decoration: none;
    color: #00ed00;
}

.bash-btn:hover,
.bash-btn:focus-visible {
    color: #00ff00;
    font-weight: bold;
    text-decoration: underline;
}

/* --- Pure Monochrome Terminal Typography (Zero Boxes, Zero Borders, Zero Scanlines) --- */
.hub-terminal {
    width: 100%;
    max-width: none;
    margin: 0 auto 24px auto;
}

.hub-screen {
    font-family: "Lucida Console", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.015em;
    line-height: 1.58;
    color: #00ed00;
    padding: 2px 0;
    background: transparent;
    border: none;
}

.hub-screen strong {
    color: #00ff00;
}

a.brief-lead-link:link,
a.brief-lead-link:visited {
    color: #00ff00;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 0, 0.52);
    text-underline-offset: 2px;
}

a.brief-lead-link:hover,
a.brief-lead-link:focus-visible {
    color: #00ff00;
    text-decoration-color: #00ff00;
}

.hub-terminal .prose-lines {
    list-style-type: "> ";
    padding-left: 20px;
}

.hub-terminal .prose-lines li {
    margin-bottom: 10px;
}

.tty-hdr {
    text-align: center;
    font-size: 0.81rem;
    padding-bottom: 4px;
    margin: 0 0 12px 0;
    border: none;
    color: #00ff00;
    opacity: 0.9;
}

.tty-grep-status {
    font-family: "Lucida Console", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.015em;
    text-align: center;
    padding: 4px 0;
    margin: 0 auto 16px auto;
    border: none;
    background: transparent;
}

.tty-eof {
    margin-top: 12px;
    padding-top: 4px;
    border: none;
    font-size: 0.81rem;
    opacity: 0.9;
}

.crt-cursor {
    display: inline-block;
    color: #00ff00;
    animation: crt-blink 1.1s steps(1, end) infinite;
}

@keyframes crt-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crt-cursor {
        animation: none;
    }
}

/* --- Operator Console Deception Screens --- */
.hub-terminal.op-auth-wrap,
.op-auth-wrap {
    max-width: 620px;
    margin: 12px auto 36px auto;
}

.op-panel {
    padding: 10px 4px;
}

.op-alert {
    padding: 4px 0;
    margin: 0 0 14px 0;
    border: none;
    background: transparent;
    color: #00ff00;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.op-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.op-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.op-field label {
    font-size: 0.85rem;
    color: #00ed00;
}

.op-input {
    width: 100%;
    padding: 5px 6px;
}

.op-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 6px;
}

/* Plain underlined buttons matching textfile links */
.txt-btn {
    background: transparent;
    color: #00ed00;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.txt-btn:hover,
.txt-btn:focus-visible {
    color: #00ff00;
    font-weight: bold;
}

/* --- Editorial Intel Columns (50/50 Center Spine, No Borders/Boxes) --- */
.intel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 22px;
    padding-bottom: 8px;
    border: none;
}

.terminal-col {
    min-width: 0;
}

.intel-grid > .terminal-col:first-child {
    padding: 0;
    border: none;
}

.intel-grid > .terminal-col:last-child {
    padding: 0;
}

.sub-meta {
    text-align: center;
    font-size: 0.82rem;
    margin: 0 auto 14px auto;
}

.prose-lines {
    margin: 0;
    padding-left: 20px;
    list-style-type: "> ";
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prose-lines li {
    margin-bottom: 8px;
}

.prose-para {
    margin: 0 0 8px 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- Desktop Resizable Left/Right Split (Exact 50/50 Initial Spine) --- */
.split-hint {
    text-align: center;
    font-size: 0.78rem;
    margin: 0 auto 10px auto;
    opacity: 0.9;
}

.split-deck {
    display: flex;
    align-items: stretch;
    gap: 32px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border: none;
}

.split-left {
    width: 50%;
    min-width: 280px;
    max-width: 72%;
    resize: horizontal;
    overflow: auto;
    padding: 0;
    border: none;
}

.split-right {
    flex: 1 1 280px;
    min-width: 280px;
    padding: 0;
}

.full-pane {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 auto 22px auto;
    overflow-wrap: anywhere;
}

/* --- Pure Textfile Feed Entries --- */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.feed-card {
    padding-bottom: 8px;
    min-width: 0;
}

.card-head {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card-summary {
    margin: 4px 0 5px 18px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card-actions {
    margin-left: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    font-size: 0.86rem;
    min-width: 0;
}

details.inline-details {
    display: inline;
    min-width: 0;
    max-width: 100%;
}

details.inline-details summary {
    cursor: pointer;
    display: inline;
    list-style: none;
    text-decoration: underline;
    color: #00ed00;
}

details.inline-details summary::-webkit-details-marker {
    display: none;
}

details.inline-details summary:hover,
details.inline-details summary:focus-visible {
    color: #00ff00;
    font-weight: bold;
}

.raw-drawer {
    margin: 6px 0 4px 0;
    padding-left: 14px;
    border: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- GitHub Section (Aligned to 50/50 Spine, Zero Boxes/Borders) --- */
.github-section {
    margin-bottom: 24px;
    padding-bottom: 8px;
    border: none;
}

.gh-statement {
    width: 100%;
    max-width: none;
    margin: 0 auto 18px auto;
    padding: 2px 0;
    border: none;
}

.gh-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 32px;
    padding: 0;
}

.gh-card {
    padding-bottom: 6px;
}

/* --- Native HTML5 Zero-JS Popover Modal --- */
.cdc-popover {
    max-width: min(92vw, 700px);
    width: 100%;
    max-height: 84vh;
    overflow-y: auto;
    background: #000000;
    color: #00ed00;
    border: 1px dashed #00ed00;
    padding: 16px;
    margin: auto;
}

.cdc-popover::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.pop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px dotted #00ed00;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.pop-meta {
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.pop-section {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 1px dashed #00ed00;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- RSS Table --- */
.rss-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.rss-table th,
.rss-table td {
    border: 1px dotted #00ed00;
    padding: 8px 10px;
    text-align: left;
}

/* --- Refitted cDc-Style 81-Column ASCII Footer --- */
.cdc-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 6px;
}

.footer-pre {
    display: block;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    margin: 0 auto;
    color: #00ed00;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(4.2px, 1.28vw, 12.5px);
    line-height: 1.2;
    white-space: pre;
}

.footer-card-flip {
    line-height: 1.12;
    transform: rotate(180deg);
}

.empty-notice {
    text-align: center;
    max-width: 680px;
    margin: 8px auto;
    padding: 8px 4px;
    border: none;
}

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

/* --- Mobile & Narrow Resizable Desktop Windows --- */
@media screen and (max-width: 1120px) {
    /* 630px max-width + 190px outer-aligned wings places wing centers at +-220px,
       directly underneath the left & right small Dead Dogs (+-220px on 583px hero) */
    .hero-stage {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 14px 12px;
        width: 100%;
        max-width: 630px;
        margin: 0 auto 18px auto;
    }

    .hero-center {
        grid-column: 1 / -1;
        order: 1;
        width: 100%;
    }

    .wing-left {
        order: 2;
        justify-self: start;
        width: min(100%, 190px);
    }

    .wing-right {
        order: 3;
        justify-self: end;
        width: min(100%, 190px);
    }

    .ascii-art,
    .footer-pre {
        font-size: clamp(4.2px, 1.92vw, 12px);
    }

    .wing-bone {
        font-size: clamp(11px, 3.1vw, 14px);
    }

    .intel-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .intel-grid > .terminal-col:first-child {
        padding: 0 0 8px 0;
        border: none;
    }

    .intel-grid > .terminal-col:last-child {
        padding: 0;
    }

    .split-hint {
        display: none;
    }

    .split-deck {
        flex-direction: column;
        gap: 18px;
    }

    .split-left,
    .split-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        resize: none;
        border: none;
        padding: 0;
    }

    .split-left {
        padding-bottom: 8px;
        border: none;
    }

    .gh-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

@media screen and (max-width: 520px) {
    .shell {
        padding: 0 6px;
    }

    .hero-stage {
        gap: 12px 10px;
    }

    .wing-links {
        font-size: 13px;
    }

    .bone-hdr {
        font-size: clamp(9.8px, 2.75vw, 14px);
    }

    .wing-bone {
        font-size: clamp(11px, 3.1vw, 14px);
    }

    .bash-target {
        display: none;
    }

    .bash-pattern {
        min-width: 120px;
        width: min(200px, 48vw);
    }
}

@media screen and (max-width: 300px) {
    .hero-stage {
        grid-template-columns: 1fr;
    }

    .wing-left,
    .wing-right {
        justify-self: center;
    }
}
