/* Page-specific layout: docs index.
   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 {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* 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);
}

.panel h1 {
    font-size: clamp(30px, 6vw, 44px);
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.panel h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.lead {
    font-size: 18px;
}

/* Docs grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Doc card: padding only — background/border handled by theme */
.doc-card {
    padding: 14px;
}

.doc-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.doc-card p {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 10px;
}

/* 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;
}

/* Doc links as orange buttons */
.doc-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(115deg, var(--gmt-ember), var(--gmt-flame)) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 216, 74, 0.72) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 6px 16px rgba(255, 79, 0, 0.36) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: box-shadow 0.2s, transform 0.2s;
}

.doc-link:hover {
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 10px 22px rgba(255, 79, 0, 0.5) !important;
}

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

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

@media (max-width: 900px) {
    .docs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .content { padding: 24px 16px 60px; }
}
