@font-face {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url("./MaterialSymbolsOutlined.woff2") format("woff2");
}

.cg-preview {
    display: block;
    color: inherit;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.cg-preview:hover,
.cg-preview:focus,
.cg-preview:focus-visible {
    color: inherit;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.cg-preview a,
.cg-preview a:hover,
.cg-preview a:focus,
.cg-preview a:focus-visible {
    color: inherit;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.cg-preview:hover *,
.cg-preview:focus *,
.cg-preview:focus-visible *,
.cg-preview *:hover,
.cg-preview *:focus,
.cg-preview *:focus-visible {
    text-decoration: none !important;
}

.cg-row {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 14px;
}

.cg-row + .cg-row {
    margin-top: 14px;
}

.cg-row-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d8dee8 !important;
}

.cg-row-label {
    font-size: 12px;
    font-weight: 600;
    color: #003064;
}

.cg-row-count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: #6f7c8f;
}

.cg-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 4px 7px;
    text-transform: uppercase;
}

.cg-badge--row {
    background: #003064;
}

.cg-badge--num {
    background: #6f7c8f;
}

.cg-badge--img-l {
    background: #0d6efd;
}

.cg-badge--img-s {
    background: #6610f2;
}

.cg-badge--link {
    background: #1d5c4a;
}

.cg-badge--icon {
    background: rgba(255, 255, 255, 0.3);
}

.cg-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.cg-card-col {
    min-width: 0;
}

.cg-card {
    height: 100%;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 10px;
}

.cg-card--large {
    padding: 12px;
}

.cg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.cg-media {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 9px;
    width: 100%;
}

.cg-media--large {
    aspect-ratio: 16 / 10;
}

.cg-media--small {
    aspect-ratio: 1 / 1;
}

.cg-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cg-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    margin-bottom: 9px;
    font-size: 9px;
    font-weight: 700;
}

.cg-img-placeholder--small {
    aspect-ratio: 1 / 1;
}

.cg-img-placeholder--set {
    background: linear-gradient(135deg, #e6ebf2 0%, #c2ccdb 100%);
    color: #66758d;
}

.cg-img-placeholder--missing {
    background: #f8d7da;
    color: #842029;
}

.cg-title {
    margin: 0;
    color: #003064;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.cg-card--large .cg-title {
    font-size: 14px;
}

.cg-text {
    margin: 6px 0 0;
    color: #6f7c8f;
    font-size: 11px;
    line-height: 1.4;
}

.cg-card--icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    border: 0;
    padding: 16px 12px;
}

.cg-card--green {
    background: #1d5c4a;
}

.cg-card--wine {
    background: #7a3b4e;
}

.cg-card--blue,
.cg-card--navy {
    background: #003064;
}

.cg-icon-symbol {
    margin-bottom: 10px;
}

.cg-preview .material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: normal;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: "liga";
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
    -webkit-font-smoothing: antialiased;
}

.cg-card--icon .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.86);
}

.cg-title--light {
    color: #fff;
}

.cg-empty {
    border: 1px dashed #d8dee8;
    border-radius: 10px;
    background: #fff;
    padding: 18px;
    text-align: center;
}

.cg-empty p {
    margin: 0;
    font-size: 12px;
    color: #6f7c8f;
}

/* Layout modifiers — mirror frontend CSS Grid breakpoints */
@media (min-width: 576px) {
    .cg-cards.cg-cards--3,
    .cg-cards.cg-cards--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .cg-cards.cg-cards--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cg-cards.cg-cards--2-1 {
        grid-template-columns: 2fr 1fr;
    }

    .cg-cards.cg-cards--1-2 {
        grid-template-columns: 1fr 2fr;
    }

    .cg-cards.cg-cards--3-2 {
        grid-template-columns: 3fr 2fr;
    }

    .cg-cards.cg-cards--2-3 {
        grid-template-columns: 2fr 3fr;
    }
}

@media (min-width: 992px) {
    .cg-cards.cg-cards--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .cg-cards.cg-cards--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}
