@font-face {
    font-family: 'Garet Heavy';
    src: url('fonts/Garet-Heavy.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hidalgo';
    src: url('fonts/Hidalgo.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.tbc-editorial-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    min-height: 280px;
    padding: 32px;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    container-type: inline-size;
    background: var(--block-bg, #BCC9C7);
}

.tbc-editorial-block .tbc-block-font-garet {
    --block-font: 'Garet Heavy', sans-serif;
    --block-weight: 900;
}

.tbc-editorial-block .tbc-block-font-latimer {
    --block-font: 'CSLatimer', serif;
    --block-weight: 400;
}

.tbc-editorial-block .tbc-block-font-mono {
    --block-font: 'IBM Plex Mono', monospace;
    --block-weight: 400;
}

.tbc-editorial-block .tbc-block-font-archivo {
    --block-font: 'Archivo Black', sans-serif;
    --block-weight: 400;
}

.tbc-editorial-block .tbc-block-font-hidalgo {
    --block-font: 'Hidalgo', sans-serif;
    --block-weight: 400;
}

.tbc-editorial-block .tbc-block-letter {
    position: absolute;
    top: -10%;
    left: -3%;
    z-index: 0;
    font-family: var(--block-font, 'Garet Heavy', sans-serif);
    font-weight: var(--block-weight, 900);
    font-size: 50cqw;
    line-height: 1;
    letter-spacing: -.075em;
    white-space: nowrap;
    color: var(--block-letter, #8F9E91);
    pointer-events: none;
    user-select: none;
}

.tbc-editorial-block.tbc-block-letter-auto .tbc-block-letter {
    color: var(--block-bg, #BCC9C7);
    filter: brightness(
        calc(100% - var(--block-letter-darkening, 31%))
    );
}

.tbc-editorial-block .tbc-block-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 16px;
}

.tbc-editorial-block .tbc-block-heading {
    margin: 0;
    padding: 0;
    font-family: var(--block-font, 'CSLatimer', serif);
    font-weight: var(--block-weight, 400);
    font-size: 32px;
    line-height: 1.15;
    color: var(--block-heading, #231F20);
    overflow-wrap: anywhere;
}

.tbc-editorial-block .tbc-block-body {
    font-family: var(--block-font, 'IBM Plex Mono', monospace);
    font-weight: var(--block-weight, 400);
    font-size: 15px;
    line-height: 1.65;
    color: var(--block-body, #231F20);
    overflow-wrap: anywhere;
}

.tbc-editorial-block .tbc-block-body p,
.tbc-editorial-block .tbc-block-body li {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.tbc-editorial-block .tbc-block-body p {
    margin: 0 0 1em;
}

.tbc-editorial-block .tbc-block-body > :last-child {
    margin-bottom: 0;
}

.tbc-editorial-block .tbc-block-body ul,
.tbc-editorial-block .tbc-block-body ol {
    padding-inline-start: 1.5em;
}

.tbc-editorial-block .tbc-block-body a {
    color: inherit;
    text-decoration: underline;
}

.tbc-editorial-block .tbc-block-body img {
    max-width: 100%;
    height: auto;
}

.tbc-editorial-block .tbc-block-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--block-cta-bg, #9B1D2C);
    color: var(--block-cta-text, #F5F5F4);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
}

.tbc-editorial-block .tbc-block-cta:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.tbc-editorial-block.tbc-block-motion {
    transition: transform 400ms cubic-bezier(.2,.8,.2,1),
                box-shadow 400ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .tbc-editorial-block.tbc-block-motion:hover {
        transform: translate(-5px, -5px);
        box-shadow: 5px 7px 16px rgba(108,117,107,.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tbc-editorial-block.tbc-block-motion {
        transition: none !important;
        transform: none !important;
    }
}

/* Preserve body color in emphasized text */
.tbc-editorial-block .tbc-block-body strong,
.tbc-editorial-block .tbc-block-body b,
.tbc-editorial-block .tbc-block-body em,
.tbc-editorial-block .tbc-block-body i {
    color: inherit !important;
}
