.gis-solutions-page,
.gis-solutions-ask-page {
    background: #f6f8fc;
}

.gis-solutions-hero,
.gis-solution-ask-hero {
    background: linear-gradient(135deg, #081a3a 0%, #0f62fe 100%);
    color: #fff;
    padding: 84px 0 100px;
}

.gis-solutions-hero .section-kicker,
.gis-solution-ask-hero .section-kicker {
    color: #67e8f9;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.gis-solutions-hero h1,
.gis-solution-ask-hero h1 {
    font-size: 48px;
    line-height: 1.08;
    margin-bottom: 18px;
}

.gis-solutions-hero p,
.gis-solution-ask-hero p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
    font-size: 18px;
    margin-bottom: 24px;
}

.solutions-hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 32px;
    color: #fff;
}

.solutions-hero-card strong {
    display: block;
    margin-bottom: 16px;
    font-size: 16px;
}

.solutions-hero-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.solutions-hero-card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 22px;
}

.solutions-hero-card ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #67e8f9;
    position: absolute;
    left: 0;
    top: 8px;
}

.gis-solutions-content {
    padding: 80px 0 100px;
}

.solutions-toolbar {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.solutions-search {
    display: grid;
    gap: 10px;
}

.solutions-search label {
    color: #475467;
    font-weight: 700;
}

.solutions-search input {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    color: #101828;
    padding: 14px 16px;
    width: 100%;
}

.solutions-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.solutions-actions select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #101828;
    padding: 14px 16px;
}

.solutions-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1.7fr 0.9fr;
}

.solutions-main {
    display: grid;
    gap: 20px;
}

.solutions-card {
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
    padding: 28px;
}

.solutions-card-skeleton {
    opacity: 0.75;
}

.solutions-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: space-between;
}

.solutions-category {
    color: #0f62fe;
    font-weight: 700;
}

.solutions-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    letter-spacing: 0.02em;
}

.solutions-badge-featured {
    background: #eef4ff;
    color: #0f62fe;
}

.solutions-badge-pinned {
    background: #fff4e6;
    color: #b45309;
}

.solutions-status {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.solutions-status.solved {
    background: #ecfdf3;
    color: #027a48;
}

.solutions-status.unsolved {
    background: #f8f0fc;
    color: #7c3aed;
}

.solutions-card h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 14px;
}

.solutions-card h2 a {
    color: #101828;
    text-decoration: none;
}

.solutions-card p {
    color: #475467;
    line-height: 1.8;
    margin-bottom: 22px;
}

.solutions-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #667085;
    font-size: 13px;
    margin-bottom: 18px;
}

.solutions-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.solutions-chip,
.solutions-chip button {
    background: #eef4ff;
    border-radius: 999px;
    color: #0f62fe;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.solutions-sidebar {
    display: grid;
    gap: 24px;
}

.solutions-sidebar-card {
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.08);
    border-radius: 18px;
    padding: 24px;
}

.solutions-sidebar-card h2 {
    font-size: 20px;
    margin-bottom: 18px;
}

.solutions-small-list {
    display: grid;
    gap: 14px;
}

.solutions-detail-card {
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.08);
    padding: 36px;
    max-width: 960px;
    margin: 0 auto;
}

.solutions-detail-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.solutions-detail-header > div {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.solutions-detail-card h1 {
    font-size: 36px;
    margin-bottom: 22px;
    color: #101828;
}

.solutions-detail-summary p {
    font-size: 17px;
    line-height: 1.8;
    color: #475467;
    margin-bottom: 32px;
}

.solutions-detail-content h2 {
    font-size: 22px;
    margin-top: 28px;
    margin-bottom: 14px;
    color: #0f172a;
}

.solutions-detail-content p,
.solutions-detail-content pre,
.solutions-detail-content .solutions-detail-block p {
    font-size: 15px;
    line-height: 1.8;
    color: #475467;
    margin-bottom: 18px;
}

.solutions-detail-block {
    margin-bottom: 20px;
}

.solutions-detail-block strong {
    display: block;
    margin-bottom: 10px;
    color: #102a43;
}

.solutions-detail-block pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    white-space: pre-wrap;
    word-break: break-word;
}

.solutions-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: #475467;
    font-size: 14px;
}

.solutions-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.solutions-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.solutions-detail-actions .theme-btn-outline,
.solutions-detail-actions .theme-btn {
    min-width: 180px;
}

.solutions-small-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f6;
    color: #101828;
    text-decoration: none;
}

.solutions-small-item:last-child {
    border-bottom: 0;
}

.solutions-small-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.solutions-empty,
.solutions-loading {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(16, 24, 40, 0.08);
    display: grid;
    gap: 12px;
    justify-items: center;
    min-height: 220px;
    padding: 40px;
    text-align: center;
}

.solutions-loader {
    animation: solutions-loader-spin 0.8s linear infinite;
    border: 4px solid #d6e4ff;
    border-radius: 50%;
    border-top-color: #0f62fe;
    display: inline-block;
    height: 40px;
    width: 40px;
}

@keyframes solutions-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.solutions-alert {
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    font-weight: 700;
}

.solutions-alert-success {
    background: #ecfdf3;
    color: #047857;
}

.solutions-alert-error {
    background: #fff1f2;
    color: #b91c1c;
}

.solutions-pagination {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.solutions-pagination .theme-btn,
.solutions-pagination .theme-btn-outline {
    min-width: 136px;
}

.solutions-form {
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
    padding: 32px;
}

.solutions-form-grid {
    display: grid;
    gap: 20px;
}

.solutions-field {
    display: grid;
    gap: 10px;
}

.solutions-field label {
    color: #101828;
    font-weight: 700;
}

.solutions-field input,
.solutions-field textarea,
.solutions-field select {
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    color: #101828;
    padding: 14px 16px;
    width: 100%;
}

.solutions-field textarea {
    min-height: 130px;
    resize: vertical;
}

.solutions-field input:focus,
.solutions-field textarea:focus,
.solutions-field select:focus {
    outline: none;
    border-color: #0f62fe;
    box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
}

.solutions-full-width {
    grid-column: 1 / -1;
}

.solutions-half-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .solutions-actions {
        grid-template-columns: 1fr;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .solutions-form-grid {
        grid-template-columns: 1fr;
    }
    .solutions-half-width {
        grid-column: 1 / -1;
    }
}

.solutions-checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.solutions-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
}

.solutions-notice {
    color: #667085;
    font-size: 14px;
}

.solutions-attachment-preview {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.solutions-attachment-preview img {
    max-width: 100%;
    border-radius: 12px;
}

.solutions-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

@media (max-width: 575px) {
    .gis-solutions-hero h1,
    .gis-solution-ask-hero h1 {
        font-size: 32px;
    }
}

/* ==================================================================
   Detail page: breadcrumb, layout, comments, related, toast, badges
   (added with the community Q&A build)
   ================================================================== */
.solutions-breadcrumb {
    font-size: 14px;
    color: #667085;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.solutions-breadcrumb a { color: #0f62fe; text-decoration: none; }
.solutions-breadcrumb a:hover { text-decoration: underline; }
.solutions-breadcrumb span { color: #98a2b3; }
.solutions-breadcrumb-current { color: #101828; font-weight: 600; }

.solutions-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}
.solutions-detail-main { min-width: 0; }
.solutions-related { position: sticky; top: 90px; }

/* Badges */
.solutions-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-left: 8px;
    vertical-align: middle;
}
.solutions-badge--admin { background: #fff4e5; color: #b54708; }
.solutions-badge--accepted { background: #e6f4ea; color: #1b7f3b; }

/* Comments / answers */
.solutions-comments-wrap { margin-top: 34px; }
.solutions-comments-head h2 { font-size: 24px; margin-bottom: 18px; color: #101828; }
.solutions-comments-list { display: flex; flex-direction: column; gap: 16px; }

.solutions-comment {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 20px 22px;
}
.solutions-comment.is-accepted {
    border-color: #1b7f3b;
    box-shadow: 0 0 0 1px #1b7f3b inset;
    background: #f6fdf8;
}
.solutions-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.solutions-comment-author { font-weight: 600; color: #101828; }
.solutions-comment-date { color: #667085; font-size: 13px; }
.solutions-comment-body { color: #344054; line-height: 1.7; }
.solutions-comment-body pre {
    background: #0b1524;
    color: #e6edf7;
    padding: 14px 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin-top: 10px;
    font-size: 13px;
}
.solutions-comment-actions { margin-top: 10px; }
.solutions-reply-toggle {
    background: none;
    border: 0;
    color: #0f62fe;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    font-size: 14px;
}
.solutions-reply-toggle:hover { text-decoration: underline; }
.solutions-comment-children {
    margin-top: 16px;
    margin-left: 22px;
    padding-left: 18px;
    border-left: 2px solid #eef1f6;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.solutions-reply-slot:not(:empty) { margin-top: 14px; }

/* Answer / reply form */
.solutions-answer-form {
    margin-top: 26px;
    background: #f9fafb;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 24px;
}
.solutions-answer-heading { font-size: 20px; margin-bottom: 16px; color: #101828; }
.solutions-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.solutions-answer-form .solutions-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.solutions-answer-form label { font-weight: 600; margin-bottom: 6px; color: #344054; font-size: 14px; }
.solutions-answer-form input,
.solutions-answer-form textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}
.solutions-answer-form input:focus,
.solutions-answer-form textarea:focus {
    outline: none;
    border-color: #0f62fe;
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.12);
}
.solutions-code-input { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.solutions-hint { font-weight: 400; color: #98a2b3; font-size: 12px; }
.solutions-counter { font-size: 12px; color: #98a2b3; margin-top: 4px; align-self: flex-end; }
.solutions-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.solutions-captcha { margin-top: 4px; }

/* Related sidebar */
.solutions-related-list { list-style: none; margin: 0; padding: 0; }
.solutions-related-list li { padding: 12px 0; border-bottom: 1px solid #eef1f6; }
.solutions-related-list li:last-child { border-bottom: 0; }
.solutions-related-list a { color: #101828; text-decoration: none; font-weight: 600; display: block; }
.solutions-related-list a:hover { color: #0f62fe; }
.solutions-related-meta { display: block; color: #98a2b3; font-size: 12px; margin-top: 4px; }

.solutions-empty--inline {
    padding: 26px;
    text-align: center;
    background: #f9fafb;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    margin-top: 20px;
    color: #667085;
}

/* Toast notifications */
.solutions-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 24px);
    min-width: 260px;
    max-width: 90vw;
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    text-align: center;
}
.solutions-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.solutions-toast--success { background: #12805c; }
.solutions-toast--error { background: #d92d20; }

/* Skeleton loaders (referenced by solutions.js) */
.skeleton-line, .skeleton-short, .skeleton-pill, .skeleton-title, .skeleton-text, .skeleton-chip {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #eceff3 25%, #f4f6f9 37%, #eceff3 63%);
    background-size: 400% 100%;
    animation: solutions-skeleton 1.4s ease infinite;
}
.skeleton-title { height: 20px; width: 70%; margin-bottom: 12px; }
.skeleton-line { height: 12px; width: 100%; margin-bottom: 8px; }
.skeleton-text { height: 12px; width: 90%; margin-bottom: 8px; }
.skeleton-short { height: 12px; width: 40%; margin-bottom: 8px; }
.skeleton-pill { height: 22px; width: 90px; border-radius: 999px; }
.skeleton-chip { height: 22px; width: 64px; border-radius: 999px; display: inline-block; margin-right: 8px; }
@keyframes solutions-skeleton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (max-width: 991px) {
    .solutions-detail-layout { grid-template-columns: 1fr; }
    .solutions-related { position: static; }
}
@media (max-width: 575px) {
    .solutions-form-row { grid-template-columns: 1fr; }
    .solutions-comment-children { margin-left: 8px; padding-left: 12px; }
}
