.tl-stories {
    --tl-teal: #0bb4aa;
    --tl-teal-dark: #076c65;
    --tl-ink: #1a1a1a;
    --tl-muted: #5e5e66;
    --tl-line: #e4e0d8;
    --tl-paper: #fffcf8;
    color: var(--tl-ink);
    margin: 1.5rem 0 2.5rem;
}

.tl-stories * {
    box-sizing: border-box;
}

.tl-search,
.tl-filters,
.tl-card,
.tl-empty {
    background: var(--tl-paper);
    border: 1px solid var(--tl-line);
    border-radius: 12px;
}

.tl-search,
.tl-filters {
    padding: 1rem;
}

.tl-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tl-stories input[type="search"],
.tl-stories input[type="date"] {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #d9d4cb;
    border-radius: 8px;
    background: #fff;
    color: var(--tl-ink);
    font: inherit;
}

.tl-search-row input[type="search"] {
    flex: 1 1 16rem;
}

.tl-stories button,
.tl-pager a,
.tl-pager span {
    font: inherit;
}

.tl-stories button {
    min-height: 44px;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--tl-teal);
    color: #fff;
    cursor: pointer;
}

.tl-stories button:hover,
.tl-stories button:focus-visible {
    background: var(--tl-teal-dark);
}

.tl-apply {
    margin-top: 0.75rem;
    background: transparent !important;
    color: var(--tl-teal-dark) !important;
    min-height: 0 !important;
    padding: 0 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tl-modes,
.tl-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.85rem;
}

.tl-modes label,
.tl-dates label,
.tl-facet label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--tl-ink);
    font-weight: 400;
}

.tl-stories input[type="checkbox"],
.tl-stories input[type="radio"] {
    accent-color: var(--tl-teal);
    width: 1rem;
    height: 1rem;
}

.tl-hint,
.tl-summary,
.tl-more,
.tl-page-count {
    color: var(--tl-muted);
    font-size: 0.92rem;
}

.tl-hint {
    margin: 0.85rem 0 0;
}

.tl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.tl-filters {
    position: sticky;
    top: 1.5rem;
}

.tl-filters-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.tl-filters h2,
.tl-card h3,
.tl-rows h3 {
    margin: 0;
    color: var(--tl-ink);
    font-size: 1.15rem;
    line-height: 1.35;
}

.tl-filters-head a,
.tl-more a,
.tl-read,
.tl-card h3 a:hover,
.tl-rows h3 a:hover,
.tl-arrow:hover {
    color: var(--tl-teal-dark);
}

.tl-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tl-rows li {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #d9d9d9;
}

.tl-rows time,
.tl-card time {
    color: var(--tl-muted);
    font-size: 0.92rem;
}

.tl-rows a,
.tl-card a {
    text-decoration: none;
}

.tl-arrow {
    color: var(--tl-ink);
}

.tl-arrow svg {
    display: block;
    width: 1.8rem;
    height: 1.8rem;
}

.tl-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tl-card {
    overflow: hidden;
}

.tl-card-media img,
.tl-card-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #d7efed;
}

.tl-card-fallback {
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: var(--tl-teal-dark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tl-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.tl-card h3 {
    font-size: 1.55rem;
}

.tl-card time,
.tl-card p {
    margin: 0.55rem 0 0;
}

.tl-card p {
    line-height: 1.7;
}

.tl-read {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
}

.tl-empty {
    padding: 2rem 1.25rem;
    text-align: center;
}

.tl-empty p {
    margin: 0.35rem 0;
}

.tl-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.tl-pager a,
.tl-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.55rem;
    border: 1px solid var(--tl-line);
    border-radius: 8px;
    background: var(--tl-paper);
    color: var(--tl-ink);
    text-decoration: none;
}

.tl-pager a:hover,
.tl-pager a:focus-visible {
    border-color: var(--tl-teal);
    color: var(--tl-teal-dark);
}

.tl-pager .is-current {
    background: var(--tl-teal);
    border-color: var(--tl-teal);
    color: #fff;
}

.tl-pager .is-disabled {
    opacity: 0.4;
}

.tl-pager .tl-gap,
.tl-pager .tl-page-count {
    border: 0;
    background: transparent;
    min-width: 0;
}

.tl-facet {
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
}

.tl-facet legend {
    color: var(--tl-teal-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tl-facet label {
    justify-content: space-between;
    margin-top: 0.55rem;
}

.tl-facet label span {
    flex: 1;
}

.tl-facet em {
    color: var(--tl-muted);
    font-style: normal;
    font-size: 0.8rem;
}

.tl-facet .is-disabled {
    opacity: 0.4;
}

.tl-fe {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tl-line);
}

.tl-fe h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 860px) {
    .tl-layout {
        grid-template-columns: 1fr;
    }

    .tl-filters {
        position: static;
        order: -1;
    }

    .tl-rows li {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tl-rows time {
        grid-column: 1 / -1;
    }
}
