/* Page-specific layout: documentation viewer.
   Cross-page base (colors, header, footer, buttons, cards): /assets/theme-gmt.css */

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

/* === Scrollbar === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 79, 0, 0.5); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 79, 0, 0.8); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 79, 0, 0.5) transparent; }

/* Header: position + layout — background/border/shadow handled by theme */
.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Active header button — current page indicator */
.header-btn.active {
    background: linear-gradient(115deg, var(--gmt-ember), var(--gmt-flame)) !important;
    color: #fff !important;
    border-color: rgba(255, 216, 74, 0.72) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32) inset, 0 8px 18px rgba(255, 79, 0, 0.4) !important;
}

/* Page layout */
.settings-container {
    min-height: calc(100vh - 128px);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.content {
    flex: 1;
    padding: 40px 40px 80px;
    max-width: 100%;
}

.content-wrapper {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

/* Panel: backdrop-filter and padding only — background/border handled by theme */
.panel {
    padding: 22px;
    backdrop-filter: blur(3px);
}

.doc {
    padding: 24px;
}

/* Doc content typography */
.doc h1, .doc h2, .doc h3 {
    margin-bottom: 12px;
    line-height: 1.2;
}

.doc h1 { font-size: clamp(24px, 4vw, 36px); }
.doc h2 { font-size: 22px; margin-top: 28px; }
.doc h3 { font-size: 18px; margin-top: 20px; }

.doc p, .doc li {
    line-height: 1.65;
    margin-bottom: 10px;
}

.doc ul, .doc ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.doc code {
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

.doc pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 247, 255, 0.15);
    border-radius: 10px;
    padding: 14px;
    overflow-x: auto;
    margin-bottom: 14px;
}

.doc pre code {
    background: transparent;
    padding: 0;
    font-size: 0.88em;
    display: block;
}

.doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.doc th, .doc td {
    border: 1px solid rgba(0, 247, 255, 0.18);
    padding: 10px;
    text-align: left;
}

.doc th {
    background: rgba(0, 0, 0, 0.28);
}

hr {
    border: 0;
    border-top: 1px solid rgba(0, 247, 255, 0.15);
    margin: 20px 0;
}

/* Footer: layout — background/border handled by theme */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.footer-text {
    font-size: 13px;
}

@media (max-width: 900px) {
    .header-right { flex-wrap: wrap; justify-content: center; gap: 8px; }
}

@media (max-width: 768px) {
    .top-header { flex-direction: column; gap: 8px; }
    .header-right { flex-wrap: wrap; justify-content: center; }
    .content { padding: 24px 16px 60px; }
    .doc { padding: 16px; }
    .panel { padding: 16px; }
}
