/* GC Sidebar Tools — frontend v1.3.1 */

/* === Wrapper === */
.gcst-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .gcst-wrapper {
        position: sticky;
        top: 100px;
    }
}

@media (max-width: 1023px) {
    .gcst-wrapper {
        margin-top: 32px;
    }
}

/* === Top + Related blocks === */
.gcst-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.gcst-block__title {
    display: block;
    margin: 0;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none;
}

.gcst-top .gcst-block__title {
    background: #27ae60;
}

.gcst-related .gcst-block__title {
    background: #1e293b;
}

.gcst-block__list {
    list-style: none;
    margin: 0;
    padding: 0 18px;
}

.gcst-block__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
}

.gcst-block__item:last-child {
    border-bottom: none;
}

.gcst-block__link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 0;
    text-decoration: none;
    color: #1f2937;
    transition: color 0.15s ease;
}

.gcst-block__link:hover,
.gcst-block__link:focus {
    color: #27ae60;
    text-decoration: none;
}

.gcst-block__name {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
}

.gcst-block__cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* === Disclaimer base === */
.gcst-disc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    line-height: 1.55;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gcst-disc__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none;
}

.gcst-disc__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.gcst-disc__body {
    padding: 16px 18px;
}

.gcst-disc__body p {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: #374151;
}

.gcst-disc__body p:last-child {
    margin-bottom: 0;
}

.gcst-disc__body a {
    color: #27ae60;
    text-decoration: underline;
}

.gcst-disc__body a:hover,
.gcst-disc__body a:focus {
    color: #219a52;
}

.gcst-disc__updated {
    margin-top: 12px;
    color: #6b7280;
    font-size: 0.78rem !important;
    font-style: italic;
}

.gcst-disc__lead {
    margin-top: 0 !important;
}

/* === Sidebar disclaimer variants === */
.gcst-disc--sidebar.gcst-disc--rg .gcst-disc__title {
    background: #d97706;
}

.gcst-disc--sidebar.gcst-disc--legal .gcst-disc__title {
    background: #475569;
}

/* === Inline disclaimers === */
.gcst-disc--inline {
    margin: 24px 0;
    box-shadow: none;
    padding: 16px 18px;
}

.gcst-disc--inline .gcst-disc__title {
    color: inherit;
    background: transparent;
    padding: 0 0 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.gcst-disc--inline .gcst-disc__body {
    padding: 0;
}

.gcst-disc--inline.gcst-disc--calc {
    border-left: 3px solid #475569;
    background: #f8f9fa;
}

.gcst-disc--inline.gcst-disc--aff {
    border-left: 3px solid #d97706;
    background: #fffbeb;
    padding: 12px 16px;
}

.gcst-disc--inline.gcst-disc--aff p {
    margin: 0;
    font-size: 0.85rem;
}

@media (max-width: 520px) {
    .gcst-block__title,
    .gcst-disc__title {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
    .gcst-block__list {
        padding: 0 14px;
    }
    .gcst-disc__body {
        padding: 14px;
    }
}