/* blog-table-of-contents.css — brutalist redesign of the blog table of contents page */

.toc-page {
    margin-top: var(--header-height-mobile);
    padding: 40px 6% 70px 6%;
    box-sizing: border-box;
}

.toc-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--as-black);
    margin: 0;
}

.toc-header h1 mark {
    background-color: var(--as-yellow);
    color: var(--as-black);
    padding: 0 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.toc-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--as-grey);
    line-height: 1.6;
    max-width: 62ch;
    margin: 16px 0 0 0;
}

.toc-section {
    margin-top: 46px;
}

.toc-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--as-grey);
    text-transform: uppercase;
}

.toc-icon {
    display: inline-flex;
    font-size: 13px;
    line-height: 1;
}

.toc-divider {
    border: none;
    border-top: 1px solid #e2e2e2;
    margin: 12px 0 0 0;
}

.toc-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.toc-card {
    display: block;
    text-decoration: none;
    border: 2px solid var(--as-black);
    background-color: #fff;
    padding: 20px;
    transition: box-shadow .12s ease, transform .12s ease;
}

.toc-card:hover {
    box-shadow: 6px 6px 0 var(--as-yellow);
    transform: translateY(-2px);
}

.toc-card-grid-grey .toc-card {
    border: none;
    background-color: #f5f5f5;
}

.toc-card-grid-grey .toc-card:hover {
    box-shadow: none;
    transform: none;
    background-color: #eee;
}

.toc-card h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--as-black);
    margin: 0 0 8px 0;
}

.toc-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--as-grey);
    line-height: 1.5;
    margin: 0;
}

/* Latest video section */

.toc-video-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.toc-video-embed {
    position: relative;
    border: 2px solid var(--as-black);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--as-black);
}

.toc-video-embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .85;
}

.toc-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--as-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--as-black);
}

/* 7 Czech Cases box */

.toc-cases-box {
    border: 3px solid var(--as-black);
    box-shadow: 10px 10px 0 var(--as-yellow);
    background-color: #fdf6e3;
    padding: 26px;
}

.toc-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
}

.toc-case-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--as-black);
    background-color: #fff;
    color: var(--as-black);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 16px 12px;
    transition: background-color .12s ease, color .12s ease;
}

.toc-case-pill:hover {
    background-color: var(--as-yellow);
}

.toc-case-pill-dark {
    background-color: var(--as-black);
    color: #fff;
    border-color: var(--as-black);
}

.toc-case-pill-dark:hover {
    background-color: var(--as-yellow);
    color: var(--as-black);
}

/* Life in Prague & more */

.toc-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.toc-image-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    border: 1px solid #e2e2e2;
    padding: 14px;
    transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease;
}

.toc-image-card:hover {
    box-shadow: 6px 6px 0 var(--as-yellow);
    border-color: var(--as-black);
    transform: translateY(-2px);
}

.toc-image-card-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.toc-image-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    display: block;
    transition: filter .12s ease;
}

.toc-image-card:hover .toc-image-card-thumb img {
    filter: grayscale(0);
}

.toc-image-card h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--as-black);
    margin: 0 0 6px 0;
}

.toc-image-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--as-grey);
    line-height: 1.5;
    margin: 0;
}

/* ==== Desktop (min-width: 1001px) ==== */
@media (min-width: 1001px) {

.toc-page {
    margin-top: var(--header-height);
    padding: 60px 8% 90px 8%;
}

.toc-header h1 {
    font-size: 38px;
}

.toc-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.toc-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.toc-video-row {
    flex-direction: row;
    align-items: stretch;
}

.toc-video-row .toc-card-grid {
    flex: 0 0 32%;
    margin-top: 0;
    align-content: start;
}

.toc-video-embed {
    flex: 1;
    aspect-ratio: auto;
}

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

.toc-image-grid {
    grid-template-columns: repeat(2, 1fr);
}

}
