﻿/* ============================================================
   ARCHISIS
   Clean BBS / Knowledge Terminal Interface
   ============================================================ */

:root {
    --black: #000;
    --cyan: #00eaff;
    --blue: #168cff;
    --purple: #8b35ff;
    --magenta: #e52dff;
    --red: #ff304f;
    --yellow: #ffe600;
    --green: #42ff35;
    --text: #b8c4c8;
    --muted: #647176;
    --panel: rgba(0, 8, 12, .88);
    --border: rgba(0, 234, 255, .45);
    --border-soft: rgba(0, 234, 255, .18);
}


/* ============================================================
   GLOBAL
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--black);
    color: var(--text);
    font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* ============================================================
   HOME
   ============================================================ */

.archisis-home {
    width: 100%;
    min-height: 100vh;
    padding: 10px;
    background: linear-gradient( rgba(0, 234, 255, .012) 50%, transparent 50% ), #000;
    background-size: 100% 4px;
    font-size: 13px;
}


/* ============================================================
   HEADER
   ============================================================ */

.archisis-header {
    min-height: 38px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 0 12px;
    border-top: 1px solid var(--cyan);
    border-bottom: 1px solid var(--cyan);
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-brand {
    justify-self: start;
    color: var(--magenta);
    white-space: nowrap;
}

    .header-brand span {
        color: var(--yellow);
    }

.header-node {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
}

    .header-node span {
        color: var(--yellow);
    }

.header-status {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: var(--green);
    white-space: nowrap;
}

.header-online {
    color: var(--green);
}

.header-metric {
    color: var(--yellow);
}

.online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

@media (max-width: 900px) {

    .archisis-header {
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
        padding: 8px 12px;
    }

    .header-brand {
        text-align: left;
    }

    .header-node {
        text-align: right;
    }

    .header-status {
        grid-column: 1 / -1;
        justify-content: center;
        gap: 16px;
    }
}

/* ============================================================
   INTRO
   ============================================================ */

.archisis-intro {
    padding: 54px 20px 42px;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
}


/* ============================================================
   ARCHISIS ANSI LOGO
   The artwork itself must never be modified.
   ============================================================ */

.ascii-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    color: var(--cyan);
    font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
    font-size: clamp(4px, 1.15vw, 15px);
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    white-space: pre;
    text-shadow: 0 0 4px rgba(0, 234, 255, .75), 0 0 10px rgba(0, 234, 255, .25);
}

.ascii-logo-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 8px 0;
}

    .ascii-logo-wrapper pre {
        /*
       Preserve ANSI artwork exactly.
       Only scale the complete artwork.
    */

        width: max-content;
        max-width: none;
        margin: 0 !important;
        transform-origin: center center;
        flex-shrink: 0;
    }

.intro-subtitle {
    margin-top: 18px;
    color: var(--magenta);
    font-size: 16px;
    letter-spacing: 4px;
    text-shadow: 0 0 7px rgba(229,45,255,.4);
}

.intro-line {
    max-width: 720px;
    margin: 17px auto;
    overflow: hidden;
    color: rgba(0,234,255,.45);
    white-space: nowrap;
}

.intro-message {
    margin: 0 0 8px;
    color: var(--yellow);
    font-size: 15px;
}

.intro-description {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}


/* ============================================================
   PANELS
   ============================================================ */

.terminal-panel {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: inset 0 0 20px rgba(0,234,255,.018);
}

.panel-title {
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(0,234,255,.35);
    color: var(--cyan);
    font-weight: bold;
    letter-spacing: 1px;
}


/* ============================================================
   HOME GRID
   ============================================================ */

.home-grid {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(320px, 2fr) minmax(220px, 1fr);
    gap: 10px;
    margin-top: 10px;
}


/* ============================================================
   QUICK ACCESS
   ============================================================ */

.quick-access {
    color: var(--yellow);
}

.menu-item {
    display: block;
    padding: 6px 4px;
    border-left: 2px solid transparent;
    transition: padding-left .12s ease, background .12s ease, border-color .12s ease;
}

    .menu-item span {
        display: inline-block;
        width: 30px;
    }

    .menu-item:hover {
        padding-left: 10px;
        background: rgba(0,234,255,.05);
        border-left-color: currentColor;
    }

    .menu-item.architecture {
        color: var(--cyan);
    }

    .menu-item.computer {
        color: var(--yellow);
    }

    .menu-item.programming {
        color: var(--magenta);
    }

    .menu-item.hardware {
        color: var(--red);
    }

    .menu-item.research {
        color: var(--green);
    }

    .menu-item.notes {
        color: #d0d0d0;
    }

    .menu-item.archive {
        color: var(--blue);
    }

    .menu-item.help {
        color: #fff;
    }


/* ============================================================
   SYSTEM MESSAGES
   ============================================================ */

.system-messages {
    color: var(--green);
}

    .system-messages .panel-title {
        color: var(--cyan);
    }
.system-message {
    display: block;
    min-height: 29px;
    line-height: 29px;
    white-space: nowrap;
}

    .system-message + .system-message {
        margin-top: 2px;
    }

/* ============================================================
   NODE STATUS
   ============================================================ */

.node-status {
    color: var(--yellow);
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dotted rgba(255,255,255,.08);
}

    .status-row span {
        color: var(--muted);
    }

    .status-row strong {
        color: #ddd;
        font-weight: normal;
    }

    .status-row .green {
        color: var(--green);
    }


/* ============================================================
   DIRECTORY
   ============================================================ */

.directory {
    margin-top: 10px;
    border-color: var(--green);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 0;
}

    .directory-grid a {
        display: flex;
        min-width: 0;
        min-height: 125px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border: 1px solid transparent;
        transition: background .12s ease, border-color .12s ease;
    }

        .directory-grid a:hover {
            background: rgba(0, 234, 255, .04);
            border-color: var(--border-soft);
        }

.directory-icon {
    display: block;
    margin-bottom: 9px;
    font-family: "Courier New", Courier, monospace;
    font-size: 34px;
    line-height: 1;
    font-weight: bold;
}

.directory-grid strong {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    white-space: nowrap;
}

.directory-grid small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}


/* ANSI-style directory colors */

.directory-item.architecture .directory-icon {
    color: var(--cyan);
}

.directory-item.artificial-intelligence .directory-icon {
    color: var(--green);
}

.directory-item.programming .directory-icon {
    color: var(--yellow);
}

.directory-item.hardware .directory-icon {
    color: var(--red);
}

.directory-item.research .directory-icon {
    color: var(--magenta);
}

.directory-item.archive .directory-icon {
    color: var(--blue);
}

.directory-item.unknown .directory-icon {
    color: #aaa;
}


/* ============================================================
   LOWER INFORMATION
   ============================================================ */

.home-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 10px;
    margin-top: 10px;
}

.motd {
    color: var(--magenta);
}

    .motd p {
        margin: 7px 0;
    }

    .motd .panel-title {
        color: var(--magenta);
    }

.sysop {
    margin-top: 16px;
    text-align: right;
    color: var(--red);
}

.system-feed {
    color: var(--text);
}

    .system-feed > div:not(.panel-title) {
        padding: 6px 0;
        border-bottom: 1px dotted rgba(255,255,255,.08);
    }

    .system-feed time {
        display: inline-block;
        width: 55px;
        color: var(--muted);
    }

    .system-feed span {
        display: inline-block;
        width: 90px;
        color: var(--green);
    }


/* ============================================================
   MOTD
   ============================================================ */

@keyframes motd-pulse {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

.motd-new {
    animation: motd-pulse 1.2s infinite;
}

@media (prefers-reduced-motion: reduce) {

    .motd-new {
        animation: none;
    }
}


/* ============================================================
   TERMINAL ACCESS
   ============================================================ */

.terminal-access {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 0 13px;
    border-top: 1px solid var(--green);
    border-bottom: 1px solid var(--green);
    color: var(--green);
    box-shadow: 0 0 10px rgba(66,255,53,.06);
    font-family: "Courier New", Courier, monospace;
}

.terminal-command-line {
    display: flex;
    align-items: center;
    white-space: pre;
}

.prompt {
    white-space: nowrap;
}

.terminal-input {
    display: inline-block;
    margin-left: 1ch;
    white-space: pre;
    color: var(--green);
    font-family: "Courier New", Courier, monospace;
}

.cursor {
    display: inline-block;
    width: 1ch;
    animation: archisis-cursor 1s steps(1) infinite;
}

.terminal-hint {
    margin-left: 12px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

@keyframes archisis-cursor {

    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}


/* ============================================================
   FOOTER
   ============================================================ */

.archisis-footer {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    padding: 0 10px;
    border-top: 1px solid var(--cyan);
    border-bottom: 1px solid var(--cyan);
    color: var(--cyan);
    font-size: 11px;
}

    .archisis-footer strong {
        margin-left: auto;
        color: var(--green);
    }


/* ============================================================
   TERMINAL OVERLAY
   ============================================================ */

.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0, 8, 6, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
}

    .terminal-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

/* ============================================================
   TERMINAL OVERLAY WINDOW
   ============================================================ */

.terminal-overlay-window {
    width: min(1100px, 100%);
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: rgba(1, 8, 6, 0.96);
    border: 1px solid rgba(0, 220, 180, 0.30);
    box-shadow: 0 0 30px rgba(0, 255, 160, 0.06);
}

/* ============================================================
   TERMINAL OVERLAY HEADER
   ============================================================ */

.terminal-overlay-header {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba( 0, 220, 180, 0.20 );
    color: #70e8d0;
}

.terminal-overlay-title {
    font-weight: bold;
    letter-spacing: 1px;
}

.terminal-overlay-close {
    border: 0;
    background: transparent;
    color: #70e8d0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

    .terminal-overlay-close:hover {
        color: #b0fff0;
    }

/* ============================================================
   TERMINAL OVERLAY SCREEN
   ============================================================ */

.terminal-overlay-screen {
    flex: 1;
    min-height: 300px;
    max-height: calc(90vh - 105px);
    overflow-y: auto;
    padding: 18px 20px;
    background: rgba(0, 5, 4, 0.52);
    color: #8be8a0;
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre;
}


/* ============================================================
   TERMINAL OVERLAY FOOTER
   ============================================================ */

.terminal-overlay-footer {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-top: 1px solid rgba( 0, 220, 180, 0.16 );
    color: rgba( 139, 232, 160, 0.55 );
    font-size: 11px;
}

    .terminal-overlay-footer span {
        animation: terminal-overlay-hint 1.4s infinite;
    }

@keyframes terminal-overlay-hint {

    0%, 100% {
        opacity: .45;
    }

    50% {
        opacity: 1;
    }
}

.terminal-overlay-cursor {
    display: inline-block;
    width: 1ch;
    color: #8be8a0;
    animation: archisis-cursor 1s steps(1) infinite;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .home-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .node-status {
        grid-column: span 2;
    }

    .directory-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* ============================================================
   RESPONSIVE — SMALL TABLET / MOBILE
   ============================================================ */

@media (max-width: 900px) {

    .ascii-logo-wrapper pre {
        transform: scale(.70);
    }

    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .archisis-home {
        padding: 6px;
    }

    .archisis-header {
        grid-template-columns: 1fr 1fr;
    }

    .header-node {
        display: none;
    }

    .home-grid,
    .home-lower-grid {
        grid-template-columns: 1fr;
    }

    .node-status {
        grid-column: auto;
    }

    .archisis-footer {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        gap: 9px 18px;
    }

        .archisis-footer strong {
            margin-left: 0;
        }

    .ascii-logo {
        font-size: 6px;
    }

    .ascii-logo-wrapper pre {
        transform: scale(.55);
    }

    .terminal-overlay {
        padding: 10px;
    }

    .terminal-overlay-window {
        width: 100%;
        max-height: 94vh;
    }

    .terminal-overlay-screen {
        min-height: 240px;
        padding: 12px;
        font-size: 12px;
    }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */

@media (max-width: 500px) {

    .intro-title {
        font-size: 42px;
        letter-spacing: 3px;
    }

    .intro-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .directory-grid {
        grid-template-columns: 1fr;
    }

    .directory-icon {
        font-size: 30px;
    }

    .ascii-logo-wrapper pre {
        transform: scale(.42);
    }

    .terminal-overlay-header {
        min-height: 34px;
    }

    .terminal-overlay-title {
        font-size: 11px;
    }

    .terminal-overlay-footer {
        font-size: 10px;
    }
}


/* ============================================================
   RESPONSIVE — VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .ascii-logo-wrapper pre {
        transform: scale(.34);
    }
}


@media (max-width: 600px) {

    .archisis-header {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px 10px;
        text-align: center;
    }

    .header-brand,
    .header-node {
        text-align: center;
    }

    .header-status {
        grid-column: auto;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 12px;
    }
}

.daily-art {
    position: relative;
    min-width: 0;
    border: 1px solid var(--border);
    background: var(--panel);
}

.daily-art-content {
    position: absolute;
    inset: 50px 13px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .daily-art-content {
        position: static;
        height: 220px;
        margin: 0 8px 8px;
    }
}

@font-face {
    font-family: "ARCHISIS VGA";
    src: url("/fonts/IBM-VGA-8x16.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.ansi-art {
    margin: 0;
    padding: 0;
    font-family: "ARCHISIS VGA", monospace;
    font-size: 16px;
    line-height: 16px;
    font-weight: normal;
    white-space: pre;
    display: inline-block;
}
.daily-art-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}


/* Personal interesting news — preserve existing layout */

.interesting-news {
    direction: rtl;
    text-align: right;
    min-width: 0;
}

    .interesting-news .panel-title {
        text-align: right;
    }

.interesting-news-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.interesting-news-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 7px 5px;
    border: 0;
    border-right: 2px solid transparent;
    background: transparent;
    color: var(--green);
    text-align: right;
    line-height: 1.8;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}

    .interesting-news-item:hover,
    .interesting-news-item:focus-visible {
        background: rgba(66, 255, 53, .08);
        border-right-color: var(--green);
        outline: none;
    }

.news-item-arrow {
    flex-shrink: 0;
    color: var(--green);
}

/* News overlay */

.interesting-news-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0, 8, 6, .82);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
}

    .interesting-news-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.interesting-news-window {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid rgba(66, 255, 53, .45);
    background: #020908;
    box-shadow: 0 0 30px rgba(66, 255, 53, .12);
}

.interesting-news-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(66, 255, 53, .24);
    color: #8dff88;
    direction: rtl;
}

.interesting-news-close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #8dff88;
    font-size: 26px;
    cursor: pointer;
}

    .interesting-news-close:hover {
        color: #c7ffc5;
    }

.interesting-news-body {
    overflow-y: auto;
    padding: 20px;
    color: #e2ffe0;
    direction: rtl;
    text-align: right;
    line-height: 2;
}

    .interesting-news-body h2 {
        margin: 0 0 18px;
        padding-bottom: 10px;
        border-bottom: 1px dashed rgba(66, 255, 53, .32);
        color: #8dff88;
        font-size: 18px;
        line-height: 1.8;
    }

#interesting-news-content {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    font-size: 14px;
    text-align: justify;
}

.interesting-news-footer[hidden] {
    display: none;
}

.interesting-news-footer a {
    margin-right: 8px;
    color: #8dff88;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.interesting-news-footer {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-top: 1px solid rgba(66, 255, 53, .24);
    color: #a8d9a5;
    font-size: 10px;
    direction: ltr;
}

@media (max-width: 600px) {
    .interesting-news-overlay {
        padding: 8px;
    }

    .interesting-news-window {
        max-height: 92vh;
    }

    .interesting-news-body {
        padding: 14px;
    }
}

.interesting-news-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(66, 255, 53, .24);
}

    .interesting-news-actions button {
        padding: 7px 12px;
        border: 1px solid rgba(66, 255, 53, .32);
        background: transparent;
        color: #8dff88;
        cursor: pointer;
    }

        .interesting-news-actions button:hover {
            border-color: #8dff88;
            background: rgba(66, 255, 53, .08);
        }

    .interesting-news-actions button:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

@media print {
    body * {
        visibility: hidden !important;
    }

    #interesting-news-overlay,
    #interesting-news-overlay .interesting-news-window,
    #interesting-news-overlay .interesting-news-body,
    #interesting-news-overlay .interesting-news-body * {
        visibility: visible !important;
    }

    #interesting-news-overlay {
        position: absolute;
        inset: 0;
        display: block;
        padding: 0;
        background: white;
        opacity: 1;
        visibility: visible;
    }

    .interesting-news-window {
        width: 100%;
        max-height: none;
        overflow: visible;
        border: 0;
        background: white;
        color: black;
        box-shadow: none;
    }

    .interesting-news-header,
    .interesting-news-actions,
    .interesting-news-footer[hidden] {
    display: none;
}

.interesting-news-footer a {
    margin-right: 8px;
    color: #8dff88;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.interesting-news-footer {
        display: none !important;
    }

    .interesting-news-body,
    .interesting-news-body h2 {
        color: black;
        overflow: visible;
    }
}



/* Site-wide Vazirmatn typography */
html, body, body *, button, input, textarea, select { font-family: 'Vazirmatn', sans-serif !important; }


.ascii-logo-wrapper pre.ansi-home-banner,
.ascii-logo-wrapper pre.ansi-home-banner * {
    font-family: Consolas, 'Courier New', monospace !important;
    font-kerning: none;
    font-variant-ligatures: none;
    letter-spacing: 0;
}

.interesting-news-footer { direction: rtl; text-align: right; }
.interesting-news-footer a { text-decoration: none !important; }
.interesting-news-footer a:hover { color: #c7ffc5; text-decoration: none !important; }

/* Colorful ANSI directory icons */
.directory-grid { gap:12px; }
.directory-grid a.directory-item { min-height:168px; padding:10px 5px; border:1px solid rgba(255,255,255,.08); background:linear-gradient(180deg,rgba(12,20,25,.92),rgba(1,5,8,.9)); }
.directory-grid a.directory-item:hover,.directory-grid a.directory-item:focus-visible { transform:translateY(-3px); background:linear-gradient(180deg,rgba(18,35,42,.96),rgba(1,7,10,.96)); box-shadow:0 0 20px var(--icon-glow); }
.directory-icon { width:82px; height:88px; display:flex; align-items:center; justify-content:center; margin:0 0 9px; border:1px solid color-mix(in srgb,var(--icon-color) 48%,transparent); background:radial-gradient(ellipse at center,color-mix(in srgb,var(--icon-color) 18%,transparent),transparent 72%); box-shadow:inset 0 0 18px color-mix(in srgb,var(--icon-color) 12%,transparent),0 0 12px var(--icon-glow); }
.directory-icon .ansi-icon-art { margin:0; padding:0; color:var(--icon-color); font-family:'ARCHISIS VGA',monospace !important; font-size:10px; font-weight:normal; line-height:1.08; white-space:pre; text-shadow:0 0 5px var(--icon-glow),0 0 12px var(--icon-glow); }
.directory-item.architecture { --icon-color:#47dfff; --icon-glow:rgba(45,204,255,.45); }
.directory-item.artificial-intelligence { --icon-color:#c783ff; --icon-glow:rgba(183,91,255,.48); }
.directory-item.programming { --icon-color:#ffd34d; --icon-glow:rgba(255,197,35,.4); }
.directory-item.hardware { --icon-color:#ff806f; --icon-glow:rgba(255,75,61,.42); }
.directory-item.research { --icon-color:#dc8cff; --icon-glow:rgba(201,92,255,.42); }
.directory-item.archive { --icon-color:#71aaff; --icon-glow:rgba(70,132,255,.44); }
.directory-item.unknown { --icon-color:#c3d0d4; --icon-glow:rgba(160,180,190,.32); }
.directory-item strong { color:var(--icon-color); text-shadow:0 0 7px var(--icon-glow); }
.directory-item small { max-width:100%; padding:0 3px; white-space:normal; line-height:1.4; }
@media(max-width:760px){.directory-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.directory-grid a.directory-item{min-height:152px}.directory-icon{width:72px;height:78px}}
@media(max-width:500px){.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.directory-grid a.directory-item{min-height:145px}.directory-icon{width:78px;height:82px}}
.personal-intro { display:flex; flex-direction:column; justify-content:flex-start; align-items:stretch; min-height:175px; border-color:rgba(0,234,255,.42); color:#c7e8ec; }
.personal-intro .panel-title { color:#64eaff; letter-spacing:1.5px; }
.personal-intro-title { align-self:flex-start; direction:ltr; text-align:left; }
.personal-intro p { align-self:stretch; }
.curiosity-title { direction:ltr; text-align:left; }
.personal-intro p { margin:8px 0 12px; color:#d1e1e2; font-size:13px; line-height:2; text-align:justify; }
.personal-intro-signal { align-self:flex-start; color:#6b9fa5; font-size:10px; letter-spacing:1px; }
@media (max-width:1100px) and (min-width:761px) {
    .home-lower-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-lower-grid .motd { grid-column:1 / -1; }
}
.personal-intro-title { width:100%; align-self:stretch; text-align:left; border-bottom:1px dashed rgba(0,234,255,.45); }
.interesting-news .curiosity-title { width:100%; direction:ltr; text-align:left; }.personal-intro-signal { align-self:stretch; width:100%; direction:ltr; text-align:left; color:#6b9fa5; font-size:10px; letter-spacing:1px; }
.personal-intro-art { display:block; align-self:stretch; width:100%; height:auto; margin:12px 0 0; border-top:1px dashed rgba(0,234,255,.2); image-rendering:pixelated; }

.directory-item.artificial-intelligence strong { white-space:normal; font-size:10px; line-height:1.2; }


/* F1 terminal help */
.terminal-hotkey { padding:0; border:0; background:none; color:inherit; font:inherit; cursor:pointer; }
.terminal-hotkey:hover,.terminal-hotkey:focus-visible { color:#b0fff0; text-shadow:0 0 8px rgba(112,232,208,.7); outline:none; }
.terminal-help-screen { white-space:normal; font-family:"Vazirmatn",sans-serif; direction:rtl; text-align:right; color:#d5f5e5; line-height:1.8; }
.terminal-help-content h2 { margin:0 0 6px; color:#70e8d0; font-size:20px; }
.terminal-help-intro { margin:0 0 14px; color:#bbd7c8; font-size:14px; }
.terminal-help-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; padding:0; list-style:none; }
.terminal-help-list li { display:flex; flex-direction:column; gap:5px; min-width:0; padding:10px 12px; border:1px solid rgba(112,232,208,.2); background:rgba(46,111,87,.08); }
.terminal-help-list code { color:#8bffbd; font-family:Consolas,"Courier New",monospace; font-size:13px; overflow-wrap:anywhere; }
.terminal-help-list li span { color:#c3d8cc; font-size:13px; }
.terminal-help-note { margin:14px 0 0; padding-top:10px; border-top:1px dashed rgba(112,232,208,.2); color:#87bd9e; font-size:12px; }
@media(max-width:600px) { .terminal-help-list { grid-template-columns:1fr; gap:7px; } .terminal-help-list li { padding:8px 10px; } }
