/* Ink atlas — top index, reading column */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    background:
        radial-gradient(900px 420px at 0% -10%, #243656 0%, transparent 60%),
        radial-gradient(700px 380px at 100% 0%, #3a2a18 0%, transparent 55%),
        #090b10;
    color: #ebe6dc;
    line-height: 1.7;
    min-height: 100vh;
    padding: 28px 20px 72px;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    min-height: 0;
    overflow: visible;
}

.sidebar {
    order: 0;
    width: 100%;
    background: transparent;
    padding: 0 0 14px;
    border: none;
    display: block;
    position: relative;
    z-index: 5;
}

.sidebar-brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0 2px 4px;
    margin: 0;
    border-bottom: none;
}

.sidebar-brand h1 {
    font-family: Georgia, "Iowan Old Style", Palatino, serif;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #f7f3ea;
    line-height: 1.1;
}

.sidebar-brand h1 span {
    color: #f0c27a;
}

.sidebar-brand .sub {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9aa3b5;
    margin-top: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    padding: 8px 0 0;
}

.sidebar-nav > a,
.nav-drop summary {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    color: #e6dfd2;
    text-decoration: none;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    list-style: none;
}

.nav-drop summary::-webkit-details-marker {
    display: none;
}

.nav-drop summary::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #8a8378;
}

.sidebar-nav > a:hover,
.nav-drop summary:hover {
    color: #fffaf2;
}

.sidebar-nav > a.active,
.nav-drop summary.is-active {
    color: #f0c27a;
}

.nav-drop {
    position: relative;
}

.nav-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 196px;
    padding: 6px;
    background: #171b24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.nav-drop[open] .nav-drop-menu {
    display: flex;
    flex-direction: column;
}

.nav-drop-menu a {
    display: block;
    padding: 7px 10px;
    border: none;
    border-radius: 8px;
    color: #ebe6dc;
    background: transparent;
    text-decoration: none;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
}

.nav-drop-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fffaf2;
}

.nav-drop-menu a.active,
.nav-drop-menu a.active:hover {
    color: #f0c27a;
    background: transparent;
}

.nav-drop-menu a.is-closed {
    color: #8a8378;
}

.nav-sep {
    height: 1px;
    margin: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a .icon {
    display: none;
}

.sidebar-footer {
    display: none;
}

.main-content {
    order: 1;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: 34px 40px 46px;
    background: #12151c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
}

.main-content h2 {
    font-family: Georgia, "Iowan Old Style", Palatino, serif;
    font-size: 2.15rem;
    font-weight: 500;
    line-height: 1.15;
    color: #f7f3ea;
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: none;
}

.main-content h3 {
    font-family: Georgia, "Iowan Old Style", Palatino, serif;
    font-size: 1.28rem;
    font-weight: 500;
    color: #f7f3ea;
    margin-top: 28px;
    margin-bottom: 8px;
}

.main-content h4 {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    color: #f0e6d4;
    margin: 16px 0 8px;
}

.lede,
.main-content p,
.main-content li {
    color: #ddd6c8;
}

.lede {
    font-size: 1.12rem;
    color: #f3ecdf;
    margin: 0 0 18px;
}

.main-content p {
    margin-bottom: 14px;
}

.main-content ul,
.main-content ol {
    margin: 0 0 16px 1.2rem;
}

.main-content li {
    margin-bottom: 6px;
}

.main-content a {
    color: #f0c27a;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 194, 122, 0.35);
}

.main-content a:hover {
    color: #ffe3ad;
    border-bottom-color: #ffe3ad;
}

.warning-box,
.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #d15b4a;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 18px 0;
}

.info-box {
    border-left-color: #f0c27a;
}

.warning-box strong,
.info-box strong {
    color: #f7f3ea;
}

.mirror-link,
.onion-card {
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #f0c27a;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 8px 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #f7f3ea;
    word-break: break-all;
}

.onion-card small {
    display: block;
    margin-bottom: 2px;
    color: #9aa3b5;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mark {
    margin: 0 0 18px;
}

.mark img {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    background: #090b10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.mark figcaption {
    margin-top: 6px;
    color: #9aa3b5;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.82rem;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 8px 0 20px;
    border: none;
}

.stat {
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
}

.stat b {
    display: block;
    color: #f7f3ea;
    font-family: Georgia, Palatino, serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.stat span {
    display: block;
    margin-top: 2px;
    color: #9aa3b5;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
}

a.desk-card,
a.desk-card:hover {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 16px;
    align-items: center;
    margin: 0 0 10px;
    padding: 10px;
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}

a.desk-card:hover {
    border-color: rgba(240, 194, 122, 0.45);
}

a.desk-card:hover strong {
    color: #ffe3ad;
}

a.desk-card img {
    width: 148px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

a.desk-card strong {
    color: #f7f3ea;
    font-weight: 500;
}

a.desk-card em {
    display: block;
    margin-top: 3px;
    color: #9aa3b5;
    font-style: normal;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.84rem;
}

code {
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 1px 5px;
    color: #f7f3ea;
    font-size: 0.88rem;
}

.news-card {
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 0 10px;
}

.news-card time,
.article-meta {
    color: #9aa3b5;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.82rem;
}

.news-card time {
    display: block;
    margin-bottom: 4px;
}

.news-card h3 {
    margin: 0 0 6px;
}

.article-meta {
    margin-bottom: 12px;
}

.market-list {
    list-style: none;
    margin: 8px 0 28px;
    padding: 0;
}

.main-content ol.market-list {
    margin-left: 0;
    padding-left: 0;
}

.market-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px 24px;
    align-items: center;
    padding: 14px 16px;
    margin: 0 0 8px;
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.market-row h3 {
    margin: 0 0 4px;
    font-size: 1.08rem;
}

.market-row p {
    margin: 0;
    color: #cfc6b6;
}

.market-meta {
    display: block;
    margin-top: 6px;
    color: #9aa3b5;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.market-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

a.btn,
a.btn:hover {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #f0c27a;
    background: #f0c27a;
    color: #1c1408;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    border-radius: 999px;
}

a.btn:hover {
    background: #ffe3ad;
    color: #1c1408;
}

a.btn-quiet,
a.btn-quiet:hover {
    background: transparent;
    color: #f0c27a;
    border-color: rgba(240, 194, 122, 0.4);
}

a.btn-quiet:hover {
    border-color: #f0c27a;
    color: #ffe3ad;
    background: rgba(240, 194, 122, 0.08);
}

.market-row.is-closed h3 {
    color: #9aa3b5;
}

.home-line {
    list-style: none;
    margin: 8px 0 22px;
    padding: 0;
}

.main-content ul.home-line {
    margin-left: 0;
}

.home-line li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 8px;
    padding: 12px 14px;
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    white-space: nowrap;
}

.home-line li > a:first-child {
    font-family: Georgia, Palatino, serif;
    font-size: 1.12rem;
    font-weight: 500;
    color: #f7f3ea;
    border-bottom: none;
}

.home-line li span {
    color: #9aa3b5;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
}

.home-line li .btn {
    margin-left: auto;
}

.disclaimer {
    margin-top: 36px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8e98ab;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    text-align: left;
}

table.grid {
    width: 100%;
    border-collapse: collapse;
}

table.grid th,
table.grid td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 8px 6px;
    text-align: left;
    color: #ddd6c8;
}

table.grid th {
    color: #f7f3ea;
    font-weight: 600;
}

@media (max-width: 720px) {
    body {
        padding: 16px 12px 48px;
    }
    .sidebar-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .main-content {
        padding: 22px 16px 32px;
        border-radius: 16px;
    }
    .stat-row,
    a.desk-card,
    a.desk-card:hover,
    .market-row {
        grid-template-columns: 1fr;
    }
    a.desk-card img {
        width: 100%;
        height: 110px;
    }
    .main-content h2 {
        font-size: 1.6rem;
    }
    .market-actions,
    .home-line li {
        justify-content: flex-start;
    }
    .home-line li {
        white-space: normal;
        flex-wrap: wrap;
    }
    .home-line li .btn {
        margin-left: 0;
    }
}
