/* ════════════════════════════════
   HOME
════════════════════════════════ */
.hero { padding: 88px 0 72px; text-align: center; }
h1.hero-h {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.5px;
    max-width: 700px;
    margin: 0 auto 20px;
}
.hero-sub {
    font-size: 17px;
    color: var(--text2);
    max-width: 500px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 80px;
}
.feat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rlg);
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.15s;
}
.feat-card:hover { box-shadow: var(--shmd); transform: translateY(-2px); }
.feat-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.feat-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text2); line-height: 1.6; font-weight: 300; }

.mod-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rlg);
    padding: 32px 36px;
    margin-bottom: 80px;
}

/* ════════════════════════════════
   COMMANDS
════════════════════════════════ */
.commands-page { padding: 40px 0 60px; }
.cmd-hdr { margin-bottom: 28px; }
.cmd-hdr h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 500; margin-bottom: 6px;
}
.cmd-hdr p { color: var(--text2); font-size: 14px; font-weight: 300; }

.cmd-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }

.cmd-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rlg);
    overflow: hidden;
}
.sb-title {
    padding: 14px 16px 10px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text3);
    border-bottom: 1px solid var(--border);
}
.sb-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px;
    font-size: 13px; font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    border-bottom: 1px solid var(--border);
}
.sb-item:last-child { border-bottom: none; }
.sb-item:hover { background: var(--surface2); color: var(--text); }
.sb-item.active { background: var(--accent-lt); color: var(--accent); }
.sb-count {
    font-size: 11px; font-weight: 400;
    color: var(--text3);
    background: var(--surface2);
    padding: 1px 7px;
    border-radius: 100px;
}
.sb-item.active .sb-count { background: rgba(124, 142, 232, 0.15); color: var(--accent); }

.cmd-main { min-width: 0; }
.cmd-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.srch-wrap { position: relative; flex: 1; }
.srch-ico {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--text3); font-size: 16px; pointer-events: none;
}
.cmd-search {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px 10px 38px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.cmd-search:focus { border-color: var(--accent); }
.cmd-search::placeholder { color: var(--text3); }
.res-pill {
    font-size: 12px; color: var(--text3);
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
}

.tbl-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rlg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--text3);
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    cursor: pointer; user-select: none;
    white-space: nowrap;
    transition: color 0.12s;
}
thead th:hover { color: var(--text3); }
thead th.sorted { color: var(--text3); }
th:nth-child(1) { width: 22%; }
th:nth-child(2) { width: 48%; }
th:nth-child(3) { width: 30%; }
tbody tr { border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }
tbody tr.row-exp { background: var(--accent-lt); }
tbody td { padding: 11px 16px; vertical-align: top; }

.cmd-name { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: var(--accent); }
.cmd-als { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.al-pill {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text3);
    border-radius: 4px;
    padding: 1px 6px;
}
.desc-prev {
    font-size: 13px; color: var(--text2); line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.req-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.req-chip {
    font-size: 10px;
    background: var(--rose-lt);
    color: var(--rose);
    border-radius: 4px;
    padding: 2px 7px;
    font-weight: 500;
}
.req-none { color: var(--text3); font-size: 13px; }

.exp-panel td { padding: 0 !important; border-bottom: 2px solid var(--accent) !important; }
.exp-inner {
    padding: 20px 24px;
    background: #13161e;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.ex-sec h5 {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 10px;
}
.ex-desc { font-size: 13px; line-height: 1.7; color: var(--text); }
.ex-opt { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text2); line-height: 1.9; }
.usg-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.usg-ln { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); line-height: 2; }
.ex-meta { margin-top: 14px; font-size: 12px; color: var(--text2); }
.ex-meta strong { color: var(--text); }
.cmd-empty { padding: 56px; text-align: center; color: var(--text3); }
.cmd-empty .ei { font-size: 36px; margin-bottom: 12px; }

/* ════════════════════════════════
   ABOUT
════════════════════════════════ */
.about-page { padding: 56px 0 80px; }
.about-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: center;
    margin-bottom: 72px;
}
.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px; font-weight: 500;
    line-height: 1.2; margin-bottom: 20px;
}
.about-hero h1 em { font-style: italic; color: var(--accent); }
.about-hero p { font-size: 16px; color: var(--text2); line-height: 1.75; font-weight: 300; margin-bottom: 14px; }

.abt-vis { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--sh); }
.av-ttl { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); margin-bottom: 20px; }
.av-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.av-row:last-child { margin-bottom: 0; }
.av-name { width: 110px; font-size: 12px; font-weight: 500; color: var(--text2); flex-shrink: 0; }
.av-bg { flex: 1; height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.av-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.av-n { font-size: 11px; color: var(--text3); width: 28px; text-align: right; }

.abt-sections { display: flex; flex-direction: column; gap: 0; }
.abt-sec {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.abt-sec:first-child { padding-top: 0; }
.abt-sec:last-child { border-bottom: none; }
.abt-sec-lbl { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; padding-top: 4px; }
.abt-sec-body p { font-size: 15px; color: var(--text2); line-height: 1.75; font-weight: 300; margin-bottom: 12px; }
.abt-sec-body p:last-child { margin-bottom: 0; }

/* ════════════════════════════════
   DEVELOPERS
════════════════════════════════ */
.devs-page { padding: 56px 0 80px; }
.devs-hdr { text-align: center; margin-bottom: 56px; }
.devs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}
.contrib-ttl { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500; margin-bottom: 16px; }
.contrib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

/* ════════════════════════════════
   BLOG LIST
════════════════════════════════ */
.blog-page { padding: 56px 0 80px; }
.blog-hdr { margin-bottom: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

/* ════════════════════════════════
   BLOG POST
════════════════════════════════ */
.post-page { padding: 48px 0 80px; }

.post-hero {
    border-radius: var(--rlg);
    padding: 56px 48px;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.post-hero-emoji { font-size: 52px; margin-bottom: 24px; }
.post-cat {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 14px;
}
.post-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 700px;
}
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text3); }
.post-meta-author { font-weight: 500; color: var(--text2); }

.post-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
}

.post-body { min-width: 0; }

.post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 500;
    color: var(--text);
    margin: 40px 0 16px;
    letter-spacing: -0.2px;
}
.post-body h2:first-child { margin-top: 0; }

.post-body h3 {
    font-size: 17px; font-weight: 600;
    color: var(--text);
    margin: 28px 0 12px;
}

.post-body p {
    font-size: 15px;
    color: var(--text2);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 20px;
}

.post-body ul, .post-body ol {
    margin: 0 0 20px 24px;
    color: var(--text2);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 300;
}

.post-body li { margin-bottom: 6px; }

.post-body code {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    color: var(--accent);
}

.post-body pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 24px;
    margin-bottom: 24px;
    overflow-x: auto;
}
.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text2);
}

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 0 0 20px;
    background: var(--accent-lt);
    border-radius: 0 var(--r) var(--r) 0;
}
.post-body blockquote p { margin-bottom: 0; color: var(--text); font-style: italic; }

.post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

/* Sidebar */
.post-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }

.post-sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rlg);
    padding: 24px;
    margin-bottom: 16px;
}
.post-sidebar-card h4 {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 16px;
}

.post-author-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.post-author-role { font-size: 12px; color: var(--text3); }

.toc-list { list-style: none; }
.toc-item {
    font-size: 13px;
    color: var(--text3);
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: color 0.15s;
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover { color: var(--accent); }

.related-post {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: color 0.15s;
}
.related-post:last-child { border-bottom: none; }
.related-post:hover .related-title { color: var(--accent); }
.related-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.related-title { font-size: 13px; font-weight: 500; color: var(--text2); transition: color 0.15s; line-height: 1.4; }

@media (max-width: 768px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { display: none; }
    .post-hero { padding: 32px 24px; }
    .about-hero { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   LOGIN
════════════════════════════════ */
.login-input:focus { border-color: var(--accent) !important; }

/* ════════════════════════════════
   VERSION TIMELINE
════════════════════════════════ */
.version-timeline { display: flex; flex-direction: column; }

.version-entry {
    display: flex;
    gap: 16px;
    padding-bottom: 4px;
}

.version-entry.version-current > .version-content {
    background: var(--accent-lt);
    border: 1px solid rgba(124, 142, 232, 0.25);
    border-radius: var(--r);
    padding: 12px 16px 14px;
    margin-bottom: 0;
}

.version-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
}

.version-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border2);
    border: 2px solid var(--surface2);
    flex-shrink: 0;
    margin-top: 18px;
    transition: background 0.2s;
}

.version-dot-current {
    background: var(--accent);
    border-color: var(--accent-lt);
    box-shadow: 0 0 0 4px rgba(124, 142, 232, 0.25);
    width: 14px;
    height: 14px;
    margin-top: 17px;
}

.version-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin: 4px 0;
    min-height: 28px;
}

.version-content {
    padding-bottom: 28px;
    min-width: 0;
}

.version-entry:last-child .version-content { padding-bottom: 0; }

.version-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.version-tag {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text2);
    padding: 2px 10px;
    border-radius: 5px;
    display: inline-block;
    align-self: flex-start;
}

.version-tag-current {
    background: rgba(124, 142, 232, 0.2);
    border-color: rgba(124, 142, 232, 0.5);
    color: var(--accent);
    font-weight: 600;
}

.version-date {
    font-size: 12px;
    color: var(--text3);
    padding-left: 2px;
}

.version-current .version-date {
    color: rgba(124, 142, 232, 0.7);
}

.version-note {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 0 !important;
}

.version-current .version-note { color: var(--text); font-weight: 400; }
