:root {
    --mtd-bg: #030706;
    --mtd-panel: #0a100f;
    --mtd-border: rgba(255,255,255,.11);
    --mtd-text: #f8fafc;
    --mtd-muted: #aeb6c2;
    --mtd-accent: #1a9bbb;
    --mtd-radius: 14px;
}

.migoro-taxonomy-display-active,
.migoro-taxonomy-display-active #page,
.migoro-taxonomy-display-active .site {
    background: var(--mtd-bg);
}

.mtd-archive {
    min-height: 70vh;
    padding: 132px 0 80px;
    background: var(--mtd-bg);
    color: var(--mtd-text);
}

.mtd-shell {
    width: min(1540px, calc(100% - 72px));
    margin: 0 auto;
}

.mtd-header {
    max-width: 820px;
    margin: 0 0 38px;
}

.mtd-eyebrow {
    margin: 0 0 8px;
    color: var(--mtd-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.mtd-title {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 4.5vw, 62px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.mtd-description {
    margin-top: 14px;
    color: var(--mtd-muted);
    font-size: 16px;
    line-height: 1.65;
}

.mtd-description p:last-child {
    margin-bottom: 0;
}

.mtd-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 26px;
}

.mtd-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mtd-border);
    border-radius: var(--mtd-radius);
    background: var(--mtd-panel);
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.mtd-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.20);
    box-shadow: 0 20px 48px rgba(0,0,0,.28);
}

.mtd-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.mtd-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #1a252b, #090e0f 68%);
}

.mtd-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 18%;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(4,8,7,.16));
}

.mtd-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .38s ease;
}

.mtd-card:hover .mtd-card__media img {
    transform: scale(1.02);
}

.mtd-card__placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 68% 25%, rgba(26,155,187,.18), transparent 38%),
        linear-gradient(135deg, #172127, #090e0f 70%);
}

.mtd-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 146px;
    padding: 20px 22px 22px;
    text-align: center;
}

.mtd-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 1.45vw, 25px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mtd-card__subtitle {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 0;
    color: var(--mtd-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mtd-empty {
    padding: 80px 24px;
    border: 1px dashed var(--mtd-border);
    border-radius: var(--mtd-radius);
    text-align: center;
}

.mtd-empty h1 {
    margin: 0 0 12px;
    color: #fff;
}

.mtd-empty p {
    margin: 0;
    color: var(--mtd-muted);
}

@media (max-width: 1260px) {
    .mtd-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .mtd-archive {
        padding-top: 110px;
    }

    .mtd-shell {
        width: min(100% - 40px, 1540px);
    }

    .mtd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .mtd-archive {
        padding: 96px 0 56px;
    }

    .mtd-shell {
        width: min(100% - 28px, 1540px);
    }

    .mtd-header {
        margin-bottom: 28px;
    }

    .mtd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mtd-card__body {
        min-height: 128px;
        padding: 18px 18px 20px;
    }

    .mtd-card__title {
        font-size: 22px;
    }

    .mtd-card__subtitle {
        font-size: 14px;
    }
}
