/* Compliance timeline (/timeline). Loads after site.css and home.css. */

.tl-head {
    padding-top: 56px;
    padding-bottom: 24px;
}

.tl-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font: 500 12px var(--font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.tl-h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 700;
    text-wrap: balance;
}

.tl-lede {
    margin: 20px 0 0;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    text-wrap: pretty;
}

.tl-main {
    padding-top: 8px;
    padding-bottom: 64px;
}

/* Filters and legend */
.tl-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 28px;
}

.tl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tl-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    color: var(--ink-2);
    font: 500 13px var(--font-sans);
    white-space: nowrap;
    cursor: pointer;
}

.tl-chip:hover,
.tl-chip:focus-visible {
    border-color: var(--ink-2);
}

.tl-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.tl-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.tl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font: 500 12px var(--font-mono);
    color: var(--muted);
}

.tl-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tl-legend-dot {
    width: 10px;
    height: 10px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--card);
}

.tl-legend-dot.is-filled {
    background: var(--ink);
}

/* Year timeline: year, spine with a dot, entries */
.tl-years {
    display: flex;
    flex-direction: column;
}

.tl-year {
    display: grid;
    grid-template-columns: minmax(64px, 120px) 24px minmax(0, 1fr);
    gap: 0 16px;
}

.tl-year[hidden] {
    display: none;
}

.tl-yr {
    padding-top: 6px;
    font: 700 clamp(28px, 3vw, 38px)/1 var(--font-mono);
    letter-spacing: -.03em;
    color: var(--ink);
}

.tl-year.is-past .tl-yr {
    color: var(--faint);
}

.tl-spine {
    position: relative;
    display: flex;
    justify-content: center;
}

.tl-spine::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.tl-year.is-past .tl-spine::before {
    background: var(--ink);
}

.tl-dot {
    position: relative;
    width: 12px;
    height: 12px;
    margin-top: 12px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--card);
}

.tl-dot.is-filled {
    background: var(--ink);
}

.tl-items {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-bottom: 36px;
}

.tl-today {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 10px;
    font: 600 11px var(--font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tl-today::after {
    content: '';
    flex: 1;
    border-top: 2px dashed var(--ink);
}

.tl-item {
    display: grid;
    gap: 4px;
    padding: 12px 0 12px 14px;
    border-top: 1px solid var(--line);
    border-left: 3px solid var(--j);
}

.tl-item[hidden] {
    display: none;
}

.tl-item.is-in-effect {
    opacity: .72;
}

.tl-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.tl-flag {
    min-width: 34px;
    padding: 3px 8px;
    border-radius: 4px;
    background: color-mix(in oklab, var(--j) 10%, white);
    color: var(--j);
    font: 600 12px var(--font-mono);
    letter-spacing: .04em;
    text-align: center;
}

.tl-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--j);
}

.tl-month {
    font: 500 12px var(--font-mono);
    color: var(--faint);
}

.tl-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font: 600 10px var(--font-mono);
    letter-spacing: .06em;
}

.tl-tag-effect {
    background: var(--ink);
    color: #fff;
}

.tl-tag-vendor {
    background: var(--neutral-bg);
    color: var(--muted);
}

.tl-text {
    max-width: 720px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-2);
}

.tl-bridge {
    margin-top: 8px;
}

/* Framework tables */
.tl-tables-section {
    border-top: 1px solid var(--line);
}

.tl-tables {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 24px;
}

.tl-h2 {
    margin: 0 0 16px;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
}

.tl-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.tl-scroll {
    overflow-x: auto;
}

.tl-grid {
    min-width: var(--min);
}

.tl-row {
    display: grid;
    grid-template-columns: var(--cols);
    gap: 16px;
    align-items: baseline;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line-3);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-2);
}

.tl-row:last-child {
    border-bottom: 0;
}

.tl-row-head {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    background: #faf9f6;
    font: 500 11px var(--font-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.tl-cell-date {
    font: 600 13px var(--font-mono);
    color: var(--ink);
}

.tl-cell-mono {
    font: 500 13px var(--font-mono);
}

.tl-cell-bold,
.tl-cell-country {
    font-weight: 600;
    color: var(--ink);
}

.tl-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--action);
    text-decoration: none;
}

.tl-cta:hover,
.tl-cta:focus-visible {
    color: var(--ink);
}

/* Sources and closing card */
.tl-sources {
    padding-top: 24px;
    padding-bottom: 64px;
}

.tl-sources-h {
    margin: 0 0 14px;
    font: 500 12px var(--font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.tl-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 8px 32px;
}

.tl-sources-grid a {
    padding: 6px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
    color: var(--action);
    text-decoration: none;
}

.tl-sources-grid a:hover,
.tl-sources-grid a:focus-visible {
    color: var(--ink);
}

.tl-close {
    border-top: 1px solid var(--line);
}

.tl-close > .home-wrap {
    padding-top: 48px;
    padding-bottom: 48px;
}

.tl-cta-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px;
}

.tl-cta-card h2 {
    font-size: 22px;
    line-height: 1.25;
}

.tl-cta-card p {
    max-width: 560px;
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .tl-head {
        padding-top: 40px;
    }

    .tl-year {
        grid-template-columns: 56px 16px minmax(0, 1fr);
        gap: 0 10px;
    }

    .tl-yr {
        font-size: 20px;
    }
}

.tl-bridge a {
    color: var(--action);
    text-decoration: none;
}

.tl-bridge a:hover,
.tl-bridge a:focus-visible {
    color: var(--ink);
}
