/* ==========================================================================
   INDUSTRIAL TECH / EDITORIAL GRID DESIGN SYSTEM
   ========================================================================== */
:root {
    --bg-base: #0a0a0c;
    --bg-panel: #111216;
    --bg-elevated: #17191f;
    --border-hairline: #262932;
    --border-strong: #3b404e;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --accent: #ff5722;        /* RJ45 / Hardware Orange */
    --accent-soft: rgba(255, 87, 34, 0.12);
    --status-ok: #10b981;

    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --bg-base: #f2f0ea;
    --bg-panel: #fbfaf7;
    --bg-elevated: #eae6dc;
    --border-hairline: #d4cfc3;
    --border-strong: #18181b;

    --text-main: #111215;
    --text-muted: #4b5563;
    --text-dim: #71717a;

    --accent: #e64a19;
    --accent-soft: rgba(230, 74, 25, 0.1);
    --status-ok: #059669;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-base);
    background-image: radial-gradient(var(--border-hairline) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.mono {
    font-family: var(--font-mono);
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Progress */
.scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0%;
    z-index: 9999;
}

/* ==========================================================================
   TELEMETRY BAR & HEADER
   ========================================================================== */
.telemetry-bar {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-hairline);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 6px 0;
}

.telemetry-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.telemetry-left, .telemetry-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-ok);
    box-shadow: 0 0 8px var(--status-ok);
}

.sep {
    color: var(--text-dim);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-hairline);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #0a0a0c;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
}

.brand-ext {
    color: var(--accent);
    font-family: var(--font-mono);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
    background: var(--bg-panel);
    border-color: var(--border-hairline);
}

.nav-item.active {
    border-bottom: 2px solid var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    color: var(--text-main);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: border-color 0.15s ease;
}

.icon-btn:hover {
    border-color: var(--accent);
}

.menu-toggle {
    display: none;
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-main);
    transition: 0.2s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.main-grid {
    padding-top: 36px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.section-hero {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 36px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.tag-accent {
    background: var(--accent);
    color: #0a0a0c;
    font-weight: 700;
    padding: 2px 8px;
}

.hero-heading {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero-sub {
    display: block;
    color: var(--text-muted);
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    margin-top: 10px;
}

.hero-bio {
    color: var(--text-muted);
    max-width: 62ch;
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border-hairline);
    transition: all 0.15s ease;
}

.btn-solid {
    background: var(--accent);
    color: #0a0a0c;
    border-color: var(--accent);
}

.btn-solid:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--bg-elevated);
    color: var(--text-main);
}

.btn-ghost:hover {
    border-color: var(--accent);
}

.full-btn {
    width: 100%;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-hairline);
    padding-top: 20px;
    gap: 16px;
}

.stat-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hardware ID Card (Profile Image) */
.id-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.id-card-top {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-hairline);
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.id-photo-box {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-base);
}

.id-photo {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    filter: contrast(1.04);
}

.id-card-bottom {
    padding: 14px 16px;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.id-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 1px dashed var(--border-hairline);
    padding-bottom: 6px;
}

.id-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.id-row span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.id-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.id-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   PANELS & SECTIONS
   ========================================================================== */
.section-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 36px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-hairline);
}

.section-index {
    color: var(--accent);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 6px;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
}

.section-lead {
    color: var(--text-muted);
    max-width: 52ch;
    font-size: 0.95rem;
}

/* ==========================================================================
   01. LAB ACCORDION & FILTER
   ========================================================================== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tab-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 8px 14px;
    cursor: pointer;
}

.tab-btn.active, .tab-btn:hover {
    color: var(--text-main);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
    padding: 6px 12px;
    min-width: 280px;
    flex: 1;
    max-width: 380px;
}

.search-box span {
    color: var(--accent);
    font-size: 0.8rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.lab-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lab-item {
    border: 1px solid var(--border-hairline);
    background: var(--bg-base);
}

.lab-item.active {
    border-color: var(--accent);
}

.lab-trigger {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 75px 1fr auto 40px;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
}

.lab-trigger:hover {
    background: var(--bg-elevated);
}

.lab-no {
    color: var(--accent);
    font-size: 0.8rem;
}

.lab-name {
    font-weight: 600;
    font-size: 1.02rem;
}

.lab-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    padding: 2px 8px;
}

.lab-icon {
    text-align: right;
    color: var(--accent);
}

.lab-content {
    display: none;
    border-top: 1px solid var(--border-hairline);
}

.lab-item.active .lab-content {
    display: block;
}

.lab-body {
    padding: 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.code-wrapper {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #17191f;
    border: 1px solid #3b404e;
    color: #d1d5db;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 8px;
    cursor: pointer;
}

.code-copy-btn:hover {
    border-color: var(--accent);
    color: #ffffff;
}

.code-block {
    background: #07080a;
    color: #e5e7eb;
    border: 1px solid var(--border-hairline);
    border-left: 3px solid var(--accent);
    padding: 14px;
    padding-right: 72px;
    font-size: 0.82rem;
    overflow-x: auto;
    max-width: 100%;
    line-height: 1.5;
}

.tech-list {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    color: var(--text-main);
}

.tag-row span.active-tag {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   02. NETWORK WORKBENCH (8 ACTIVE UTILITIES) & STACK
   ========================================================================== */
.workbench-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.wb-tab {
    background: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 10px 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.wb-tab.active, .wb-tab:hover {
    color: var(--text-main);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.wb-panel {
    display: none;
}

.wb-panel.active {
    display: block;
}

.subnet-box {
    background: var(--bg-base);
    border: 1px solid var(--border-strong);
    margin-bottom: 32px;
    max-width: 100%;
    overflow: hidden;
}

.subnet-head {
    background: var(--bg-elevated);
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--accent);
}

.copy-mini-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    font-size: 0.72rem;
    padding: 4px 10px;
    cursor: pointer;
}

.copy-mini-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* FIX OVERFLOW: minmax(0, 1fr) dan min-width: 0 mencegah tabel/kode menjebol batas kanan */
.subnet-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
}

.subnet-grid > * {
    min-width: 0;
}

.subnet-inputs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dual-input {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.input-group input,
.input-group select,
.mono-textarea {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    color: var(--text-main);
    font-family: var(--font-mono);
    padding: 10px 12px;
    font-size: 0.86rem;
    outline: none;
    width: 100%;
}

.mono-textarea {
    resize: vertical;
    line-height: 1.5;
}

.input-group input:focus,
.input-group select:focus,
.mono-textarea:focus {
    border-color: var(--accent);
}

.subnet-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.res-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow-x: auto;
}

.res-item.full-span {
    grid-column: 1 / -1;
}

.res-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.res-item strong {
    font-size: 0.92rem;
    color: var(--text-main);
    word-break: break-word;
}

.res-item strong.accent-text {
    color: var(--accent);
}

.mt-preview-wrap,
.vlsm-output-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.mt-script-box {
    width: 100%;
    max-width: 100%;
    padding-right: 14px;
    white-space: pre;
    overflow-x: auto;
}

.port-panel-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.port-search {
    max-width: 100%;
}

.port-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-hairline);
}

.port-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.port-table th, .port-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-hairline);
    white-space: nowrap;
}

.port-table th {
    background: var(--bg-elevated);
    color: var(--accent);
    font-size: 0.74rem;
}

.port-table td:first-child {
    color: var(--accent);
    font-weight: 700;
}

.port-table tr:last-child td {
    border-bottom: none;
}

/* RJ45 Pinout & LAN Tester Simulator */
.rj45-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.rj45-modes, .rj45-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rj45-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    border-left: 3px solid var(--accent);
    padding: 12px 14px;
}

.tester-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tester-unit {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
}

.tester-unit-head {
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pin-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pin-row {
    display: grid;
    grid-template-columns: 58px 42px 1fr 28px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
    font-size: 0.78rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pin-row.active-pin {
    border-color: var(--status-ok);
    background: rgba(16, 185, 129, 0.08);
}

.pin-no {
    color: var(--text-muted);
    font-weight: 700;
}

.wire-swatch {
    height: 14px;
    border: 1px solid var(--border-strong);
}

.led-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1f2430;
    border: 1px solid #3b404e;
    justify-self: end;
    transition: background-color 0.15s ease;
}

.pin-row.active-pin .led-dot {
    background: var(--status-ok);
    border-color: #34d399;
}

/* Radix & IPv4 32-bit Panel */
.radix-ip-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Data Unit Converter (Bit to Petabyte) */
.du-results-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.du-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.du-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.du-card.du-highlight {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.du-card-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.du-card-val {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 700;
    word-break: break-all;
}

.du-transfer-bar {
    background: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    border-left: 3px solid var(--status-ok);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
}

.du-transfer-bar strong {
    color: var(--status-ok);
}

/* Bandwidth & Hotspot Right Column */
.bw-right-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

/* Stack Columns */
.stack-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stack-heading {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-hairline);
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-row {
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
    padding: 16px;
}

.spec-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.spec-title span {
    font-size: 0.74rem;
    color: var(--accent);
}

.spec-row p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   03. ARCHIVE GALLERY (4 PHOTOS)
   ========================================================================== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.archive-card {
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.archive-card:hover, .archive-card:focus {
    border-color: var(--accent);
    outline: none;
}

.archive-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #050507;
}

.archive-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.archive-card:hover img {
    transform: scale(1.03);
}

.archive-meta {
    padding: 10px 14px;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ==========================================================================
   04. SCHOOL PROFILE
   ========================================================================== */
.school-banner {
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.banner-tag {
    font-size: 0.72rem;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.school-banner blockquote {
    font-size: 1.15rem;
    font-weight: 600;
}

.school-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.school-box {
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.school-box h3 {
    font-size: 0.85rem;
    color: var(--accent);
}

.clean-list {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.school-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.school-meta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--border-hairline);
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ==========================================================================
   05. CONTACT & INTERACTIVE CLI
   ========================================================================== */
.contact-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.contact-card {
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.contact-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-hairline);
    font-size: 0.82rem;
}

.c-row span {
    color: var(--text-muted);
}

.text-ok {
    color: var(--status-ok);
}

.social-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cli-window {
    background: #07080a;
    border: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    color: #e5e7eb;
}

.cli-top {
    background: #12141a;
    padding: 8px 14px;
    border-bottom: 1px solid #262932;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.cli-dots {
    display: flex;
    gap: 6px;
}

.cli-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #374151;
}

.cli-output {
    padding: 16px;
    height: 215px;
    overflow-y: auto;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cli-hl {
    color: #ff5722;
}

.cli-quick {
    padding: 6px 14px;
    border-top: 1px solid #1f2430;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cli-quick button {
    background: #14171f;
    border: 1px solid #2a303c;
    color: #d1d5db;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 8px;
    cursor: pointer;
}

.cli-quick button:hover {
    border-color: #ff5722;
    color: #ffffff;
}

.cli-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #262932;
    background: #0b0d12;
}

.cli-prompt {
    color: #10b981;
    font-size: 0.8rem;
}

.cli-form input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    width: 100%;
    outline: none;
}

/* ==========================================================================
   FOOTER & LIGHTBOX
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-hairline);
    background: var(--bg-panel);
    padding: 24px 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 12, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-bar {
    padding: 14px 24px;
    border-bottom: 1px solid #262932;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f3f4f6;
    font-size: 0.82rem;
}

.lightbox-controls {
    display: flex;
    gap: 8px;
}

.lb-btn {
    background: #17191f;
    border: 1px solid #3b404e;
    color: #f3f4f6;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 6px 12px;
    cursor: pointer;
}

.lb-btn:hover {
    border-color: var(--accent);
}

.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-stage img {
    max-width: 92vw;
    max-height: 82vh;
    border: 1px solid var(--border-strong);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 920px) {
    .section-hero,
    .subnet-grid,
    .tester-grid,
    .stack-columns,
    .school-columns,
    .contact-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .workbench-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .du-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        border-bottom: 1px solid var(--border-hairline);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px;
        display: none;
    }

    .site-nav.open {
        display: flex;
    }
}

@media (max-width: 640px) {
    .section-hero, .section-panel {
        padding: 22px 18px;
    }

    .workbench-tabs,
    .stats-strip,
    .subnet-results,
    .du-grid,
    .archive-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lab-trigger {
        grid-template-columns: 60px 1fr 30px;
    }

    .lab-badge {
        display: none;
    }
}