:root {
    --fwtk-navy: #341E6F;
    --fwtk-dark-blue: #000099;
    --fwtk-blue: #0000CC;
    --text-color: #222222;
    --bg-color: #ffffff;
    --border-color: #d1d5db;
    --sidebar-text: #ffffff;
    --link-color: #0000CC;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

a {
    color: var(--link-color);
}

a:hover {
    color: #e53e3e;
}

.adsense-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    max-width: 100%;
    overflow: hidden;
}

.adsbygoogle {
    display: block;
    min-height: 90px;
}

/* Historical Archive Disclaimer Banner */
.archive-banner {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-top: 1px solid #fef3c7;
    border-right: 1px solid #fef3c7;
    border-bottom: 1px solid #fef3c7;
    border-radius: 4px;
    padding: 12px 18px;
    margin: 16px auto;
    max-width: 960px;
    color: #92400e;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.archive-banner strong {
    color: #78350f;
}

/* Standalone Mirror / Portal Layout */
.mirror-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.mirror-header {
    text-align: center;
    margin-bottom: 24px;
}

.mirror-header img {
    max-width: 100%;
    height: auto;
}

.mirror-instruction {
    color: var(--fwtk-dark-blue);
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 500;
}

.mirror-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.mirror-column {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.mirror-title {
    background-color: var(--fwtk-dark-blue);
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.mirror-list {
    padding: 16px;
    font-size: 0.9rem;
}

.mirror-entry {
    margin-bottom: 16px;
}

.mirror-entry.active {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    padding: 10px;
    border-radius: 6px;
}

.mirror-entry.deprecated {
    opacity: 0.65;
}

.mirror-entry.deprecated .mirror-name {
    text-decoration: line-through;
    color: #64748b;
}

.status-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}

.status-active {
    background-color: #16a34a;
    color: #ffffff;
}

.status-deprecated {
    background-color: #e2e8f0;
    color: #475569;
}

.mirror-entry:last-child {
    margin-bottom: 0;
}

.mirror-entry .url {
    color: #4a5568;
    font-size: 0.85rem;
    word-break: break-all;
    display: block;
    margin-top: 2px;
}

/* Two-column Documentation/Main Layout */
.site-layout {
    display: flex;
    min-height: 100vh;
}

.site-sidebar {
    width: 220px;
    background-color: var(--fwtk-navy);
    color: var(--sidebar-text);
    padding: 20px 16px;
    flex-shrink: 0;
}

.site-sidebar a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-sidebar a:hover {
    color: #cbd5e0;
}

.site-sidebar .sidebar-logo {
    text-align: center;
    margin-bottom: 20px;
}

.site-sidebar h3 {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 4px;
}

.site-sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px 0;
}

.site-sidebar li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.site-main {
    flex-grow: 1;
    padding: 24px 32px;
    max-width: 900px;
}

.site-header {
    text-align: center;
    margin-bottom: 24px;
}

.site-header img {
    max-width: 100%;
    height: auto;
}

.card-section {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    background-color: var(--fwtk-dark-blue);
    color: #ffffff;
    padding: 10px 16px;
    font-weight: bold;
    font-size: 1.1rem;
}

.card-body {
    padding: 16px;
}

.card-body p {
    margin: 0 0 12px 0;
}

.card-body ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

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

@media (max-width: 768px) {
    .site-layout {
        flex-direction: column;
    }

    .site-sidebar {
        width: 100%;
    }

    .mirror-grid {
        grid-template-columns: 1fr;
    }

    .site-main {
        padding: 16px;
    }
}
