.scftl,
.scftl * {
    box-sizing: border-box;
}

.scftl {
    --scftl-accent: #2563eb;
    --scftl-line: #cbd5e1;
    --scftl-border: #e2e8f0;
    --scftl-muted: #64748b;
    --scftl-text: #1e293b;
    width: min(1100px, 100%);
    margin: 0 auto;
    color: var(--scftl-text);
    font-family: Arial, Helvetica, sans-serif;
}

.scftl__edit-event {
    float: right;
    margin: 0 0 0.75rem 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    background: #005eb8;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.scftl__edit-event:hover,
.scftl__edit-event:focus {
    background: #003d78;
    color: #fff;
    text-decoration: underline;
}

.scftl__title {
    margin: 0 0 10px;
    color: inherit;
    font-size: 30px;
    line-height: 1.2;
}

.scftl__intro {
    margin: 0 0 32px;
    color: var(--scftl-muted);
    line-height: 1.7;
}

.scftl__intro > :first-child,
.scftl__description > :first-child {
    margin-top: 0;
}

.scftl__intro > :last-child,
.scftl__description > :last-child {
    margin-bottom: 0;
}

.scftl__events {
    position: relative;
}

.scftl__order {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0 0 24px;
}

.scftl__order-label {
    margin-right: 3px;
    color: var(--scftl-muted);
    font-size: 14px;
    font-weight: 700;
}

.scftl__order-button {
    appearance: none;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--scftl-border);
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.scftl__order-button:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.scftl__order-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.scftl__order-button.is-active,
.scftl__order-button[aria-pressed="true"] {
    border-color: var(--scftl-accent);
    background: var(--scftl-accent);
    color: #ffffff;
}

.scftl__events::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 188px;
    width: 2px;
    background: var(--scftl-line);
    content: "";
}

.scftl__event {
    position: relative;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 58px;
    margin: 0 0 34px;
}

.scftl__event:last-child {
    margin-bottom: 0;
}

.scftl__marker {
    position: absolute;
    top: 22px;
    left: 181px;
    z-index: 2;
    width: 16px;
    height: 16px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--scftl-accent);
    box-shadow: 0 0 0 2px var(--scftl-accent);
}

.scftl__date-time {
    padding-top: 12px;
    text-align: right;
}

.scftl__date,
.scftl__time {
    display: block;
}

.scftl__date {
    color: var(--scftl-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.scftl__time {
    margin-top: 4px;
    color: var(--scftl-muted);
    font-size: 14px;
}

.scftl__card {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--scftl-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
}

.scftl__event-title {
    margin: 0 0 10px;
    color: var(--scftl-text);
    font-size: 21px;
    line-height: 1.3;
}

.scftl__description {
    color: #475569;
    line-height: 1.7;
}
.scftl__image-details > summary {
    cursor: pointer;
    font-weight: 700;
}

.scftl__image-container {
    margin-top: 1rem;
}

.scftl__image-container .scftl__image {
    display: block;
    width: 100%;
    height: auto;
}
.scftl__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.scftl__tag {
    margin: 0;
    padding: 5px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.scftl__embedded-shortcode {
    margin-top: 20px;
}

.scftl__embedded-shortcode .scfrt {
    width: 100%;
}

.scftl__embedded-error {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-left: 4px solid #b91c1c;
    background: #fef2f2;
    color: #7f1d1d;
}

.scftl__media {
    margin-top: 20px;
}

.scftl__attachments > .scftl__media + .scftl__media {
    margin-top: 16px;
}

.scftl__attachment-label {
    margin: 0 0 8px;
    color: var(--scftl-text);
    font-size: 14px;
    font-weight: 700;
}

.scftl__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.scftl__media--pdf {
    overflow: hidden;
    border: 1px solid var(--scftl-border);
    border-radius: 10px;
    background: #f8fafc;
}

.scftl__pdf-details > summary {
    padding: 13px 16px;
    color: var(--scftl-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.scftl__pdf-details > summary:hover {
    color: var(--scftl-accent);
}

.scftl__pdf-details[open] > summary {
    border-bottom: 1px solid var(--scftl-border);
}

.scftl__pdf {
    display: block;
    width: 100%;
    height: 640px;
    border: 0;
    background: #ffffff;
}

.scftl__pdf-link {
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--scftl-border);
    font-size: 14px;
}

.scftl__pdf-link a {
    color: var(--scftl-accent);
    font-weight: 700;
}

.scftl__sources {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--scftl-border);
}

.scftl__sources-title {
    margin: 0 0 8px;
    color: var(--scftl-text);
    font-size: 15px;
    line-height: 1.4;
}

.scftl__sources-list {
    margin: 0;
    padding-left: 20px;
}

.scftl__sources-list li + li {
    margin-top: 6px;
}

.scftl__sources-list a {
    color: var(--scftl-accent);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.scftl .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.scftl__empty {
    padding: 18px;
    border: 1px dashed var(--scftl-border);
    border-radius: 10px;
    color: var(--scftl-muted);
    text-align: center;
}

.scftl-error {
    padding: 12px 16px;
    border-left: 4px solid #b91c1c;
    background: #fef2f2;
    color: #7f1d1d;
}

@media (max-width: 720px) {
    .scftl__title {
        font-size: 24px;
    }

    .scftl__events::before {
        left: 8px;
    }

    .scftl__order {
        justify-content: flex-start;
    }

    .scftl__event {
        display: block;
        padding-left: 34px;
    }

    .scftl__marker {
        top: 7px;
        left: 1px;
    }

    .scftl__date-time {
        padding: 0 0 10px;
        text-align: left;
    }

    .scftl__date,
    .scftl__time {
        display: inline;
    }

    .scftl__time::before {
        content: " · ";
    }

    .scftl__card {
        padding: 18px;
    }

    .scftl__pdf {
        height: 500px;
    }
}
