.tt-amazon-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tt-music-card {
    border: 1px solid var(--tt-color-amazon-border);
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tt-music-card h5 { margin: 0 0 4px; font-size: 1.05rem; }
.tt-music-card h4 { margin: 8px 0 4px; font-weight: 500; opacity: .8; }
.tt-music-card__cover { min-height: 0; }
.tt-music-card__cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: 220px; }
.tt-music-card__cover-source { display: block; margin-top: 4px; font-size: .75em; line-height: 1.25; opacity: .75; }
.tt-music-card__cover-source a { color: inherit; }
.tt-music-card__meta { margin: 0 0 8px; }
.tt-music-actions { margin: 12px 0 0; }
.tt-music-actions__label { display: block; margin-bottom: 4px; font-size: .75em; line-height: 1.25; opacity: .75; }
.tt-music-actions__buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-music-button { display: inline-block; padding: .45em .7em; border: 1px solid currentColor; border-radius: 4px; font-size: .9em; line-height: 1.2; text-decoration: none; }
.tt-music-button--amazon { font-weight: 600; }
.tt-music-ad-label { display: block; margin-top: 4px; font-size: .75em; line-height: 1.25; opacity: .75; }
.tt-spotify-embed { margin: 12px 0 0; }
.tt-spotify-embed__load { padding: .45em .7em; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tt-spotify-embed__notice { margin: 4px 0 0; font-size: .75em; line-height: 1.25; opacity: .75; }
.tt-spotify-embed iframe { display: block; width: 100%; height: 152px; margin-top: 8px; border: 0; border-radius: 12px; }

.tt-music-card.img-missing .tt-music-card__cover::after {
    content: "Bild nicht verfügbar";
    display: inline-block;
    font-size: 12px;
    opacity: 0.8;
    margin-left: .25rem;
}

/* A lone title has enough horizontal space for a compact table-style layout.
 * Multi-title and explicit rows4/rows5 displays deliberately keep their cards. */
.tt-amazon-grid--single { grid-template-columns: minmax(0, 1fr); }
.tt-music-card--single {
    display: grid;
    grid-template-columns: minmax(7rem, .7fr) minmax(8rem, .9fr) minmax(13rem, 1.8fr) minmax(10rem, 1fr) minmax(7rem, .7fr);
    grid-template-areas: "cover recommendation details listening buying" "player player player player player";
    gap: .75rem;
    align-items: start;
}
.tt-music-card--single > * { min-width: 0; }
.tt-music-card--single .tt-music-card__cover { grid-area: cover; }
.tt-music-card--single .tt-music-card__cover img { max-width: 10rem; max-height: 10rem; }
.tt-music-card--single .tt-music-card__recommendation { grid-area: recommendation; }
.tt-music-card--single .tt-music-card__details { grid-area: details; }
.tt-music-card--single .tt-music-card__listening { grid-area: listening; }
.tt-music-card--single .tt-music-card__buying { grid-area: buying; }
.tt-music-card--single .tt-music-card__player { grid-area: player; }
.tt-music-card--single h4 { margin-top: 0; font-size: 1.1rem; opacity: 1; }
.tt-music-card--single h5 { margin: 0 0 4px; }
.tt-music-card--single .tt-music-actions { margin-top: 0; }
.tt-music-card--single .tt-spotify-embed { margin-top: 0; }
.tt-music-card--single .tt-music-card__player:empty { display: none; }

/* The editor preview lives in a narrow sidebar.  The public single-title
 * layout deliberately uses several columns, but that would place title and
 * actions outside the visible preview area. */
.tt-amazon-shortcode-preview .tt-music-card--single {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "cover"
        "recommendation"
        "details"
        "listening"
        "buying"
        "player";
}

@media (max-width: 1100px) {
    .tt-music-card--single {
        grid-template-columns: minmax(7rem, .8fr) minmax(12rem, 1.4fr) minmax(10rem, 1fr);
        grid-template-areas: "cover recommendation details" "listening buying buying" "player player player";
    }
}

@media (max-width: 700px) {
    .tt-music-card--single {
        grid-template-columns: 1fr;
        grid-template-areas: "cover" "recommendation" "details" "listening" "buying" "player";
    }
}

/* Shared public table foundation. Every colour comes from the active brand
 * profile, so Traumtänzer, Fanatix and Linedance stay in sync. */
.tt-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    color: var(--tt-color-text);
    background-color: var(--tt-color-surface);
}

.tt-table th,
.tt-table td {
    padding: .625rem .75rem;
    border-bottom: 1px solid var(--tt-color-border);
    text-align: start;
    vertical-align: top;
}

.tt-table th,
.tt-legacy-table tr[bgcolor] > td,
.tt-legacy-table--headed > tbody > tr:first-child > td {
    background-color: var(--tt-color-surface-muted);
    color: var(--tt-color-text);
    font-weight: 700;
}

.tt-table:not(.tt-course-list):not(.tt-group-list) tbody tr:nth-child(even) {
    background-color: var(--tt-color-table-row-even);
}

.tt-table:not(.tt-course-list):not(.tt-group-list) tbody tr:hover {
    background-color: var(--tt-color-table-row-hover);
}

/* Course and group rows are striped per record, not per physical table row.
 * This keeps headings and optional detail rows visually attached to their record. */
.tt-course-list__heading,
.tt-group-list__heading,
.tt-course-list__row--odd,
.tt-group-list__row--odd {
    background-color: var(--tt-color-surface);
}

.tt-course-list__row--even,
.tt-group-list__row--even {
    background-color: var(--tt-color-table-row-even);
}

/* Course and group lists use row colours instead of grid lines. Keep this
 * scoped reset stronger than legacy theme table rules. */
.tt-course-list,
.tt-course-list tr,
.tt-course-list td,
.tt-group-list,
.tt-group-list tr,
.tt-group-list td {
    border: 0 !important;
}

.tt-course-list__month-heading {
    background-color: var(--tt-color-surface-muted);
    font-weight: 700;
}

.tt-course-list__month-heading h5 {
    margin: 0 !important;
    font-weight: inherit;
    line-height: 1.25;
}

.tt-course-list__month-heading > td {
    padding: 14px 10px !important;
    vertical-align: middle;
}

.tt-course-list__heading > td,
.tt-group-list__heading > td {
    padding: 14px 10px !important;
    vertical-align: middle;
}

.tt-course-list__heading h4,
.tt-group-list__heading h3,
.tt-group-list__heading h4 {
    margin: 0 !important;
    line-height: 1.25;
}

.tt-group-list__heading > td > br:first-child {
    display: none;
}

.tt-course-list__month-heading > td,
.tt-course-list__weekday,
.tt-course-list__course-title,
.tt-group-appointments__weekday {
    padding-left: 10px !important;
}

.tt-group-list__heading > td,
.tt-group-list__row > td:first-child {
    padding-left: 10px !important;
}

.tt-course-list__course-info > td:last-child {
    text-align: left !important;
}

.tt-course-list .tt-course-list__course-info:not(.tt-course-list__course-info--first) > td {
    padding-top: 0 !important;
}

.tt-course-list__row > td {
    padding-top: .625rem !important;
    padding-bottom: .625rem !important;
    vertical-align: middle !important;
}

.tt-course-list .tt-course-list__signup {
    display: inline-flex !important;
    width: 100%;
    height: 2.625rem !important;
    min-height: 2.625rem !important;
    margin: 0 !important;
    padding: .5rem .75rem !important;
    line-height: 1.25 !important;
}

.tt-course-list tr:hover > td,
.tt-group-list tr:hover > td {
    background-color: transparent !important;
}

.tt-course-list__course-info--first > td {
    padding-left: 10px !important;
}

.tt-group-list__actions {
    display: grid;
    justify-items: start;
    gap: var(--tt-space-1);
}

.tt-group-list__actions .tt-button {
    white-space: nowrap;
}

.tt-group-list__action-note {
    font-size: .875rem;
}

/* Theme-independent component foundation. */
:root {
    --tt-color-brand: #851159;
    --tt-color-brand-contrast: #ffffff;
    --tt-color-accent: #fce008;
    --tt-color-text: #242124;
    --tt-color-surface: #ffffff;
    --tt-color-surface-muted: #f7f4f6;
    --tt-color-border: #d9d1d6;
    --tt-color-text-muted: #707070;
    --tt-color-warning: #8a4300;
    --tt-color-danger: #dc3545;
    --tt-color-danger-contrast: #ffffff;
    --tt-color-danger-surface: #f8d7da;
    --tt-color-success: #155724;
    --tt-color-success-surface: #d4edda;
    --tt-color-info: #0c5460;
    --tt-color-info-surface: #d1ecf1;
    --tt-color-amazon-border: #e6e6e6;
    --tt-color-table-border: #dddddd;
    --tt-color-table-row-hover: #f5f5f5;
    --tt-color-table-row-even: #fafafa;
    --tt-color-event-surface: #fdef6d;
    --tt-color-event-text: #333333;
    --tt-color-event-divider: rgba(51, 51, 51, .25);
    --tt-space-1: .5rem;
    --tt-space-2: 1rem;
    --tt-space-3: 1.5rem;
    --tt-space-4: 2rem;
    --tt-radius: .375rem;
    --tt-shadow: 0 .125rem .5rem rgba(36, 33, 36, .12);
}

/*
 * Brand profiles are activated through the "Farbprofil" option in the
 * TT Plugin backend. Traumtänzer is the default. The two other blocks
 * deliberately inherit it until their CI colors are confirmed; add or change
 * only variables here, never individual component rules.
 */
body.tt-brand-traumtaenzer {
    --tt-color-brand: #851159;
    --tt-color-accent: #fce008;
    --tt-color-surface-muted: #f7f4f6;
    --tt-color-border: #d9d1d6;
    --tt-color-text-muted: #707070;
    --tt-color-event-surface: #fdef6d;
    --tt-color-event-text: #333333;
    --tt-color-event-divider: rgba(51, 51, 51, .25);
}

body.tt-brand-fanatix {
    --tt-color-brand: #f1a61e;
    --tt-color-brand-contrast: #000000;
    --tt-color-accent: #f1a61e;
    --tt-color-text: #000000;
    --tt-color-surface: #ffffff;
    --tt-color-surface-muted: #e6e4e3;
    --tt-color-border: #bbbdc0;
    --tt-color-text-muted: #5a5a5a;
    --tt-color-warning: #8a4300;
    --tt-color-event-surface: #f1a61e;
    --tt-color-event-text: #000000;
    --tt-color-event-divider: rgba(0, 0, 0, .25);
    --tt-color-table-row-hover: #e6e4e3;
    --tt-color-table-row-even: #f5f5f5;
    --tt-color-table-border: #bbbdc0;
    --tt-color-amazon-border: #e6e4e3;
}

body.tt-brand-linedance {
    --tt-color-brand: #851159;
    --tt-color-brand-contrast: #ffffff;
    --tt-color-accent: #c14a08;
    --tt-color-text: #1e1a16;
    --tt-color-surface: #ffffff;
    --tt-color-surface-muted: #f9edd9;
    --tt-color-border: #e7dcd0;
    --tt-color-text-muted: #665f58;
    --tt-color-warning: #8a3506;
    --tt-color-event-surface: #fffec5;
    --tt-color-event-text: #1e1a16;
    --tt-color-event-divider: rgba(30, 26, 22, .25);
    --tt-color-table-row-hover: #f9edd9;
    --tt-color-table-row-even: #fef8ed;
    --tt-color-table-border: #e7dcd0;
    --tt-color-amazon-border: #ede4d8;
}

.tt-grid {
    display: grid;
    grid-template-columns: repeat(var(--tt-grid-columns, 1), minmax(0, 1fr));
    gap: var(--tt-grid-gap, var(--tt-space-3));
    margin-block: 0 var(--tt-space-3);
}

.tt-grid__column { min-width: 0; }
.tt-grid__column--span-2 { grid-column: span 2; }
.tt-grid__column--span-3 { grid-column: span 3; }
.tt-grid__column--span-4 { grid-column: span 4; }
.tt-grid__column--span-5 { grid-column: span 5; }
.tt-grid--2 { --tt-grid-columns: 2; }
.tt-grid--3 { --tt-grid-columns: 3; }
.tt-grid--4 { --tt-grid-columns: 4; }
.tt-grid--5 { --tt-grid-columns: 5; }

.tt-card {
    box-sizing: border-box;
    padding: var(--tt-space-3);
    border: 1px solid var(--tt-color-border);
    border-radius: var(--tt-radius);
    background: var(--tt-color-surface);
    color: var(--tt-color-text);
    box-shadow: var(--tt-shadow);
}

.tt-card--event { border-top: .25rem solid var(--tt-color-brand); }
.tt-card > :first-child { margin-top: 0; }
.tt-card > :last-child { margin-bottom: 0; }

/* Compact LineDance group facts, rendered by [tt_LDGruppenInfo]. */
.tt-ld-group-info { margin-block: 0 var(--tt-space-3); }
.tt-ld-group-info__title { margin: 0 0 var(--tt-space-2); color: var(--tt-color-brand); }
.tt-ld-group-info__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tt-space-2); margin: 0; }
.tt-ld-group-info__fact { min-width: 0; }
.tt-ld-group-info__fact dt { font-weight: 700; }
.tt-ld-group-info__fact dd { margin: .125rem 0 0; }
.tt-ld-group-info__note { margin-top: var(--tt-space-2); padding-top: var(--tt-space-2); border-top: 1px solid var(--tt-color-border); }
.tt-ld-group-info__textbin { margin-top: var(--tt-space-2); padding-top: var(--tt-space-2); border-top: 1px solid var(--tt-color-border); }

/* Filter controls permanently shown by [tt_LDgruppenliste]. */
.tt-ld-group-list { margin-block: 0 var(--tt-space-3); }
.tt-ld-group-list__title { margin: 0 0 var(--tt-space-2); color: var(--tt-color-brand); }
.tt-ld-group-list__filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--tt-space-2); margin-bottom: var(--tt-space-3); padding: var(--tt-space-3); border: 1px solid var(--tt-color-border); border-radius: var(--tt-radius); background: var(--tt-color-surface-muted); }
.tt-ld-group-list__filter { display: grid; gap: .25rem; min-width: 10rem; font-weight: 700; }
.tt-ld-group-list__filter select { width: 100%; margin: 0; }
.tt-ld-group-list__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tt-space-2); }
.tt-ld-group-list__actions .tt-button { margin: 0; }
.tt-ld-group-list__reset { font-size: .9em; }

@media (max-width: 40rem) {
    .tt-ld-group-info__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-ld-group-list__filter { flex: 1 1 10rem; }
}

@media (max-width: 28rem) {
    .tt-ld-group-info__facts { grid-template-columns: 1fr; }
}

.tt-page-list__item { display: flex; flex-direction: column; gap: var(--tt-space-2); }
.tt-page-list__image-link { display: block; }
.tt-page-list__image { display: block; width: 100%; height: auto; border-radius: calc(var(--tt-radius) / 2); }
.tt-page-list__title { margin: 0; }
.tt-page-list__title a { color: inherit; }
.tt-page-list__excerpt { margin: 0; }
.tt-page-list__item .tt-button { align-self: flex-start; margin-top: auto; }
.tt-page-list__pagination .page-numbers { display: flex; flex-wrap: wrap; gap: var(--tt-space-1); padding: 0; list-style: none; }
.tt-page-list__pagination a,
.tt-page-list__pagination span { display: inline-block; padding: .375rem .625rem; border: 1px solid var(--tt-color-border); border-radius: var(--tt-radius); }
.tt-page-list__pagination .current { border-color: var(--tt-color-brand); background: var(--tt-color-brand); color: var(--tt-color-brand-contrast); }

/* Compact alphabetical index for dance-description pages. */
.tt-dance-list { --tt-dance-list-columns: 3; }
.tt-dance-list--columns-1 { --tt-dance-list-columns: 1; }
.tt-dance-list--columns-2 { --tt-dance-list-columns: 2; }
.tt-dance-list--columns-3 { --tt-dance-list-columns: 3; }
.tt-dance-list--columns-4 { --tt-dance-list-columns: 4; }
.tt-dance-list__alphabet { display: flex; flex-wrap: wrap; gap: .375rem; margin-block: 0 var(--tt-space-3); }
.tt-dance-list__alphabet a { min-width: 2.25rem; padding: .375rem .5rem; border: 1px solid var(--tt-color-border); border-radius: var(--tt-radius); color: var(--tt-color-brand); font-weight: 700; line-height: 1; text-align: center; text-decoration: none; }
.tt-dance-list__alphabet a:hover, .tt-dance-list__alphabet a:focus { border-color: var(--tt-color-brand); background: var(--tt-color-brand); color: var(--tt-color-brand-contrast); }
.tt-dance-list__group { scroll-margin-top: 1.5rem; margin-block: 0 var(--tt-space-4); }
.tt-dance-list__letter { margin: 0 0 var(--tt-space-2); padding-block-end: .375rem; border-block-end: 2px solid var(--tt-color-brand); color: var(--tt-color-brand); }
.tt-dance-list__items { display: grid; grid-template-columns: repeat(var(--tt-dance-list-columns), minmax(0, 1fr)); gap: .25rem var(--tt-space-3); margin: 0; padding: 0; list-style: none; }
.tt-dance-list__item { min-width: 0; }
.tt-dance-list__item a { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; color: inherit; text-decoration: none; }
.tt-dance-list__item a:hover, .tt-dance-list__item a:focus { color: var(--tt-color-brand); text-decoration: underline; }
.tt-dance-list__image { width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: calc(var(--tt-radius) / 2); object-fit: cover; }

@media (max-width: 700px) {
    .tt-dance-list__items { grid-template-columns: 1fr; }
}

.tt-heading { color: inherit; }
.tt-heading--eyebrow { margin: 0 0 var(--tt-space-1); font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.tt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    min-height: 2.375rem;
    box-sizing: border-box;
    padding: .4375rem .75rem;
    border: 1px solid transparent;
    border-radius: var(--tt-radius);
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.tt-button--primary { background: var(--tt-color-brand); color: var(--tt-color-brand-contrast); }
.tt-button--secondary,
.tt-button--text { border-color: var(--tt-color-brand); background: var(--tt-color-surface); color: var(--tt-color-brand); }
.tt-button:hover { filter: brightness(.92); text-decoration: none; }

.tt-notice {
    box-sizing: border-box;
    margin-block: 0 var(--tt-space-3);
    padding: var(--tt-space-2) var(--tt-space-3);
    border-inline-start: .25rem solid var(--tt-color-brand);
    background: var(--tt-color-surface-muted);
    color: var(--tt-color-text);
}

.tt-notice--warning { border-inline-start-color: var(--tt-color-warning); }
.tt-notice--alert { border-inline-start-color: var(--tt-color-danger); background: var(--tt-color-danger); color: var(--tt-color-danger-contrast); }
.tt-testimonials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--tt-space-2);
}
.tt-testimonials + .tt-rating { margin-top: 10px; }
.tt-testimonial-archive { margin-block: 0 var(--tt-space-4); }
.tt-testimonial-archive__title { margin: 0 0 var(--tt-space-2); }
.tt-testimonial-archive__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tt-space-2);
}
.tt-testimonial {
    box-sizing: border-box;
    padding: var(--tt-space-2);
    border: 1px solid var(--tt-color-border);
    border-radius: var(--tt-radius);
    background: var(--tt-color-surface);
    color: var(--tt-color-text);
}
.tt-testimonial--featured { grid-column: span 2; }
.tt-testimonial__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--tt-space-2);
    margin-bottom: var(--tt-space-2);
}
.tt-testimonial__name,
.tt-testimonial__course {
    margin: 0;
    color: inherit;
    font-size: .875rem !important;
    font-weight: 700;
    line-height: 1.35 !important;
}
.tt-testimonial__name { font-size: 1rem !important; }
.tt-testimonial__course { font-weight: 400; }
.tt-testimonial__rating { flex: 0 0 auto; line-height: 1; }
.tt-testimonial__rating:empty { display: none; }
.tt-testimonial__rating img { display: block; width: 5.5rem; height: auto; }
.tt-testimonial__quote {
    margin: 0;
    padding-inline-start: .75rem;
    border-inline-start: .25rem solid var(--tt-color-accent);
    font-family: inherit;
    font-size: .875rem !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}
.tt-testimonial__quote > :first-child { margin-top: 0; }
.tt-testimonial__quote > :last-child { margin-bottom: 0; }
.tt-testimonial__quote p {
    font: inherit !important;
    margin-block: 0 .75rem;
}
.tt-testimonial__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem var(--tt-space-2);
    margin-top: var(--tt-space-2);
    padding-top: var(--tt-space-1);
    border-top: 1px solid var(--tt-color-border);
    font-size: .8125rem !important;
    line-height: 1.35;
}
.tt-quote { margin: 0; padding-inline-start: var(--tt-space-2); border-inline-start: .25rem solid var(--tt-color-accent); }
.tt-event-meta { display: grid; gap: var(--tt-space-1); }
.tt-stack { display: grid; gap: var(--tt-space-2); }
.tt-spacer { height: var(--tt-space-4); }

.tt-table-scroll,
.tt_table { overflow-x: auto; margin-block: var(--tt-space-2) var(--tt-space-4); }
.tt-legacy-table { height: auto !important; }
.tt-form { display: grid; justify-items: center; gap: var(--tt-space-2); max-width: 32rem; margin: var(--tt-space-2) auto; }
.tt-form__field { display: grid; gap: .25rem; width: min(100%, 20rem); }
.tt-form select { width: 100%; min-height: 2.75rem; padding: .5rem; border: 1px solid var(--tt-color-border); border-radius: var(--tt-radius); font: inherit; }

.tt-icon { width: 1.125em; height: 1.125em; flex: 0 0 auto; vertical-align: -.15em; }
.tt-button:focus-visible,
.tt-calendar-link:focus-visible { outline: .1875rem solid var(--tt-color-accent); outline-offset: .1875rem; }

/* Theme-independent event views. */
.tt-event-list { align-items: start; }
.tt-card--event {
    padding: .875rem;
    border: 0;
    border-radius: 0;
    background: var(--tt-color-event-surface);
    color: var(--tt-color-event-text);
    box-shadow: none;
}
.tt-event-card { display: grid; gap: .75rem; margin-block: 0 .75rem; }
.tt-event-card__header,
.tt-event-detail__header,
.tt-event-card__footer { display: grid; gap: .75rem; }
.tt-event-card__header,
.tt-event-detail__header { grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); }
.tt-event-card__footer { grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); padding-top: .75rem; border-top: 1px solid var(--tt-color-event-divider); }
.tt-event-card .tt-heading { margin: 0; color: inherit; font-weight: 700; line-height: 1.25; }
.tt-event-card:not(.tt-event-card--compact):not(.tt-event-card--table) h2 { font-size: 1.25rem; }
.tt-event-card:not(.tt-event-card--compact):not(.tt-event-card--table) h3 { font-size: 1.125rem; }
.tt-event-card:not(.tt-event-card--compact):not(.tt-event-card--table) h4 { font-size: 1rem; }
.tt-event-card--compact h2 { font-size: 1rem; }
.tt-event-card--compact h3 { font-size: .875rem; }
.tt-event-card--compact h4 { font-size: .75rem; }
.tt-event-card--cancelled { background: var(--tt-color-surface); }
.tt-event-card--cancelled-table {
    grid-template-columns: minmax(7rem, .8fr) minmax(10rem, 1.2fr) minmax(8rem, 1fr) minmax(10rem, 1fr);
}
.tt-event-card__info > :first-child { margin-top: 0; }
.tt-event-card__info > :last-child { margin-bottom: 0; }
.tt-event-image { display: block; width: 100%; height: auto; border-radius: calc(var(--tt-radius) / 2); }
.tt-event-meta__item { display: inline-flex; align-items: center; gap: .375rem; }
.tt-event-location { display: grid; gap: .25rem; font-style: normal; }
.tt-event-location span { display: block; }
.tt-event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.tt-event-actions .tt-event-meta__item { flex-basis: 100%; }

/* The legacy table view is an event-card collection, not a data table. */
.tt-event-card--table {
    display: grid;
    grid-template-columns: minmax(7rem, .8fr) minmax(10rem, 1.2fr) minmax(7rem, .8fr) minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(10rem, 1fr) auto;
    gap: .75rem;
    align-items: start;
    margin-block: 0 .75rem;
}
.tt-event-card--table .tt-event-card__column { min-width: 0; }
.tt-event-card--table .tt-event-card__column--date-image { display: grid; gap: var(--tt-space-1); }
.tt-event-card--table .tt-event-card__column--date-image .tt-event-image { max-width: 10rem; }
.tt-event-card--table h2 { font-size: 1rem; }
.tt-event-card--table h3 { font-size: .875rem; }
.tt-event-card--table h4 { font-size: .75rem; }
.tt-event-card--table .tt-event-card__column--ics { justify-self: end; }

@media (max-width: 1100px) {
    .tt-event-card--table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-event-card--table .tt-event-card__column--ics { justify-self: start; }
}

/* Table view 2 keeps the event details in a full-width row below the main grid. */
.tt-event-card--table2 {
    display: grid;
    gap: .75rem;
    margin-block: 0 .75rem;
}
.tt-event-card2__main {
    display: grid;
    grid-template-columns: minmax(7rem, .8fr) minmax(10rem, 1.2fr) minmax(7rem, .8fr) minmax(8rem, 1fr) minmax(10rem, 1fr);
    gap: .75rem;
    align-items: start;
}
.tt-event-card2__main .tt-event-card__column { min-width: 0; }
.tt-event-card2__main .tt-event-card__column--date-image { display: grid; gap: var(--tt-space-1); }
.tt-event-card2__main .tt-event-card__column--date-image .tt-event-image { max-width: 10rem; }
.tt-event-card--table2 h2 { font-size: 1rem; }
.tt-event-card--table2 h3 { font-size: .875rem; }
.tt-event-card--table2 h4 { font-size: .75rem; }
.tt-event-card--table2 .tt-event-location span,
.tt-event-card2__info { font-size: .875rem; }
.tt-event-card2__info {
    padding-top: .75rem;
    border-top: 1px solid var(--tt-color-event-divider);
    color: var(--tt-color-event-text);
}
.tt-event-card2__info:empty { display: none; }
.tt-event-card2__info > :first-child { margin-top: 0; }
.tt-event-card2__info > :last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
    .tt-event-card2__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-testimonial-archive__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .tt-event-card2__main { grid-template-columns: 1fr; }
    .tt-testimonials { grid-template-columns: 1fr; }
    .tt-testimonial-archive__items { grid-template-columns: 1fr; }
    .tt-testimonial--featured { grid-column: auto; }
}

@media (max-width: 700px) {
    .tt-grid--2,
    .tt-grid--3,
    .tt-grid--4,
    .tt-grid--5 { --tt-grid-columns: 1; }

    .tt-grid__column[class*="tt-grid__column--span-"] { grid-column: span 1; }

    .tt-event-card__header,
    .tt-event-detail__header,
    .tt-event-card__footer,
    .tt-event-card--table { grid-template-columns: 1fr; }

    .tt-event-card--table .tt-event-card__column--ics { justify-self: start; }
    .tt-testimonial__heading { grid-column: auto; }
}

/* Temporary fallback for legacy shortcodes. */
.tt-theme-generic .tt-gdlr-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0 0 1.25rem;
}

.tt-theme-generic .tt-gdlr-column {
    box-sizing: border-box;
    flex: 1 1 100%;
    min-width: 0;
}

.tt-theme-generic .tt-gdlr-column[data-size="1/2"] { flex-basis: calc(50% - .625rem); }
.tt-theme-generic .tt-gdlr-column[data-size="1/3"] { flex-basis: calc(33.333% - .834rem); }
.tt-theme-generic .tt-gdlr-column[data-size="2/3"] { flex-basis: calc(66.667% - .417rem); }
.tt-theme-generic .tt-gdlr-column[data-size="1/4"] { flex-basis: calc(25% - .938rem); }
.tt-theme-generic .tt-gdlr-column[data-size="1/5"] { flex-basis: calc(20% - 1rem); }

.tt-theme-generic .tt-gdlr-styled_box,
.tt-theme-generic .tt-gdlr-notification {
    box-sizing: border-box;
    margin: 0 0 1.25rem;
    padding: 1.25rem;
    border-radius: 4px;
}

.tt-theme-generic .tt-gdlr-notification { border-left: 4px solid currentColor; }
.tt-theme-generic .tt-gdlr-button {
    display: inline-block;
    padding: .65rem 1rem;
    border-radius: 4px;
    background: var(--tt-color-brand);
    color: var(--tt-color-brand-contrast);
    text-decoration: none;
}
.tt-theme-generic .tt-gdlr-testimonial { display: grid; gap: 1rem; }
.tt-theme-generic .tt-gdlr-tab { padding: 1rem; border: 1px solid var(--tt-color-table-border); }
.tt-theme-generic .tt-gdlr-icon { margin-right: .25rem; }

/* Theme-independent content divider: [tt_divider type="solid" size="50%"]. */
.tt-divider {
    box-sizing: border-box;
    display: block;
    max-width: 100%;
    height: 0;
    margin: 1.5rem auto;
    border: 0;
    border-top: 1px solid var(--tt-color-table-border);
}
.tt-divider--dashed { border-top-style: dashed; }
.tt-divider--dotted { border-top-style: dotted; }
.tt-divider--double { border-top-style: double; border-top-width: 3px; }

/* Theme-independent vertical whitespace: [tt_space height="40px"]. */
.tt-space { display: block; }

@media (max-width: 640px) {
    .tt-theme-generic .tt-gdlr-column[data-size] { flex-basis: 100%; }
}
