/* ==========================================================================
   TSR redesign - shop homepage (/online)
   Depends on the tokens in tsr-theme.css.
   ========================================================================== */

/* Section wrappers (.tsr-section, __head, __aside, __foot) live in tsr-shop.css - shared by content pages */

/* Carousel arrows (used by hero + rails) */
.tsr-arrows {
    display: flex;
    gap: .5rem;
}

.tsr-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--tsr-ink);
    background: transparent;
    color: var(--tsr-ink);
    font-size: .8125rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.tsr-arrow-btn:hover {
    background: var(--tsr-ink);
    color: #fff;
}

.tsr-arrow-btn--light {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.tsr-arrow-btn--light:hover {
    background: #fff;
    color: var(--tsr-ink);
}

/* Hero ------------------------------------------------------------------- */

.tsr-hero {
    position: relative;
    background: var(--tsr-ink);
    color: #fff;
    overflow: hidden;
}

/* Each slide is a full panel: image on the right, copy on the left */
.tsr-hero__slide {
    position: relative;
    min-height: 40rem;
    background: var(--tsr-ink);
    isolation: isolate;
}

/* Every slide the same height: all slides share one grid cell, so the hero takes the height of the
   tallest slide instead of resizing (and moving the page) as each one fades in */
.tsr-hero .carousel-inner {
    display: grid;
}

.tsr-hero .carousel-item.tsr-hero__slide {
    display: flex;
    align-items: center;
    grid-area: 1 / 1;
    float: none;
    margin-right: 0;
}

/* Hidden slides stay in the layout for their height, but can't be seen or clicked */
.tsr-hero .carousel-item.tsr-hero__slide:not(.active):not(.carousel-item-next):not(.carousel-item-prev) {
    visibility: hidden;
}

/* As a flex item the container would shrink to the text and centre it;
   keep it full width so the copy lines up with the rest of the page */
.tsr-hero__slide > .container {
    width: 100%;
}


.tsr-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64%;
    z-index: -1;
}

.tsr-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsr-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, var(--tsr-ink) 0%, rgba(17, 17, 17, .55) 22%, rgba(17, 17, 17, 0) 55%);
    pointer-events: none;
}

.tsr-hero__content {
    position: relative;
    max-width: 32rem;
    padding: 5rem 0;
}

.tsr-hero .tsr-eyebrow {
    color: #fff;
    margin-bottom: 1.75rem;
}

.tsr-hero__title {
    margin: 0 0 1.75rem;
    font-family: var(--tsr-serif);
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 5.25rem);
    line-height: .98;
    letter-spacing: -0.025em;
}

.tsr-hero__title em {
    color: #eeeeee;
}

.tsr-hero__text {
    max-width: 29rem;
    margin: 0 0 2.25rem;
    color: #dddddd;
    font-size: 1rem;
    line-height: 1.75;
}

.tsr-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
}

.tsr-hero__ctas .tsr-link {
    color: #fff;
}

/* Bootstrap's fade carousel puts the active slide at z-index 1, so the controls and
   badge need to sit above it or clicks land on the slide image instead */
.tsr-hero__badge,
.tsr-hero__controls {
    z-index: 5;
}

.tsr-hero__badge {
    position: absolute;
    top: 2.5rem;
    right: clamp(1rem, 5vw, 4.5rem);
    padding-left: 1rem;
    border-left: 2px solid var(--tsr-red);
}

.tsr-hero__badge strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
}

.tsr-hero__badge span {
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Slide dots, centred along the bottom of the hero */
.tsr-hero__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsr-hero__count {
    font-size: .8125rem;
    color: #bbbbbb;
}

.tsr-hero__count strong {
    color: #fff;
}

.tsr-hero__dots {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tsr-hero__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    transition: width .2s ease, background-color .2s ease;
}

.tsr-hero__dots button.active {
    width: 1.75rem;
    background: var(--tsr-red);
}

/* Category tiles ---------------------------------------------------------- */

.tsr-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.tsr-cat {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 15.5rem;
    padding: 1.75rem;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.tsr-cat img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tsr-cat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 14, 16, .78) 0%, rgba(10, 14, 16, .35) 60%, rgba(10, 14, 16, .15) 100%);
}

.tsr-cat:hover img {
    transform: scale(1.04);
}

.tsr-cat__label {
    display: block;
    margin-bottom: .4rem;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.tsr-cat h3 {
    margin: 0 0 .4rem;
    font-family: var(--tsr-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
}

.tsr-cat p {
    margin: 0 0 1rem;
    color: #e5e5e5;
    font-size: .8125rem;
}

.tsr-cat .tsr-link {
    color: #fff;
    font-size: .625rem;
}

/* Product + brand rails --------------------------------------------------- */

.tsr-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * .75rem) / 3.25);
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: #8b9894 transparent;
}

.tsr-rail::-webkit-scrollbar {
    height: 6px;
}

.tsr-rail::-webkit-scrollbar-thumb {
    background: #8b9894;
    border-radius: 999px;
}

.tsr-rail > * {
    scroll-snap-align: start;
}

.tsr-rail--brands {
    grid-auto-columns: calc((100% - 6 * .5rem) / 7);
    gap: .5rem;
}

/* Product cards come from tsr-shop.css; the homepage rails show the badge top-left */
.tsr-rail .tsr-product__badge {
    left: .75rem;
    right: auto;
}

.tsr-rail .tsr-product__cta {
    justify-content: space-between;
}

.tsr-brand-tile {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid #dddddd;
    background: #fff;
    color: var(--tsr-ink);
    font-size: .75rem;
    font-weight: 600;
    transition: border-color .15s ease;
}

.tsr-brand-tile:hover {
    border-color: var(--tsr-ink);
}

.tsr-brand-tile__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.25rem;
}

.tsr-brand-tile__logo img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
}

.tsr-brand-tile__logo span {
    font-family: var(--tsr-serif);
    font-size: 1.125rem;
    font-weight: 400;
}

.tsr-brand-tile__name {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tsr-brand-tile__name i {
    color: var(--tsr-red);
}

/* Good advice split ------------------------------------------------------- */

.tsr-advice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.tsr-advice__media {
    position: relative;
}

.tsr-advice__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tsr-advice__caption {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    padding: .5rem .75rem;
    background: rgba(17, 17, 17, .55);
    color: #fff;
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tsr-advice__text {
    margin: 1.5rem 0 2rem;
    color: #515e5a;
    font-size: .9375rem;
    line-height: 1.8;
}

.tsr-advice__stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #c9d2cf;
}

.tsr-advice__stat strong {
    font-family: var(--tsr-serif);
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1;
}

.tsr-advice__stat strong span {
    color: var(--tsr-red);
}

.tsr-advice__stat small {
    color: #55625e;
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Harbour Life feature ---------------------------------------------------- */

.tsr-life {
    display: grid;
    grid-template-columns: 1.27fr 1fr;
    background: #fff;
}

.tsr-life__media {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 23rem;
    padding: 1.5rem;
    color: #fff;
    isolation: isolate;
}

.tsr-life__media img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsr-life__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 55%);
}

.tsr-life__media small {
    display: block;
    margin-bottom: .4rem;
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tsr-life__media h3 {
    margin: 0;
    font-family: var(--tsr-serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.1;
}

.tsr-life__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.tsr-life__body .tsr-eyebrow {
    font-size: .5625rem;
}

.tsr-life__body p {
    margin: 1.25rem 0 2rem;
    color: var(--tsr-text);
    font-size: .875rem;
    line-height: 1.75;
}

.tsr-life__body .tsr-btn {
    align-self: flex-start;
    padding: .95rem 1.1rem;
    font-size: .625rem;
}

.tsr-life-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: .75rem;
    border: 1px solid #dddddd;
    background: #faf9f5;
}

.tsr-life-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.25rem;
    border-left: 1px solid #dddddd;
    color: var(--tsr-ink);
}

.tsr-life-link:first-child {
    border-left: 0;
}

.tsr-life-link small {
    display: block;
    margin-bottom: .3rem;
    color: #626262;
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tsr-life-link strong {
    font-family: var(--tsr-serif);
    font-size: 1.125rem;
    font-weight: 400;
}

.tsr-life-link i {
    color: var(--tsr-red);
    font-size: .8125rem;
}

.tsr-life-link:hover strong {
    color: var(--tsr-red);
}

/* Social mosaic ----------------------------------------------------------- */

.tsr-social {
    display: grid;
    grid-template-columns: 1.38fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: .75rem;
    min-height: 32rem;
}

.tsr-social__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.tsr-social__tile--big {
    grid-row: 1 / span 2;
}

.tsr-social__tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tsr-social__tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 60%);
}

.tsr-social__tile:hover img {
    transform: scale(1.04);
}

.tsr-social__icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    background: #fff;
    color: var(--tsr-ink);
    font-size: .875rem;
}

.tsr-social__tile--youtube .tsr-social__icon {
    color: var(--tsr-red);
}

.tsr-social__tile small {
    margin-bottom: .4rem;
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tsr-social__tile h3 {
    margin: 0 0 .75rem;
    font-family: var(--tsr-serif);
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 400;
}

.tsr-social__tile .tsr-link {
    color: #fff;
    font-size: .5625rem;
}

.tsr-social__note {
    margin: .75rem 0 0;
    color: #79817e;
    font-size: .6875rem;
}

/* Card hovers: whole-card links keep their text colour, the title turns red */
.tsr-cat:hover,
.tsr-social__tile:hover,
.tsr-life__media:hover {
    color: #fff;
}

.tsr-sector:hover,
.tsr-life-link:hover,
.tsr-brand-tile:hover {
    color: var(--tsr-ink);
}

.tsr-cat:hover h3,
.tsr-social__tile:hover h3,
.tsr-sector:hover h3,
.tsr-life-link:hover strong,
.tsr-brand-tile:hover .tsr-brand-tile__name {
    color: var(--tsr-red);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .tsr-rail--brands {
        grid-auto-columns: calc((100% - 4 * .5rem) / 5);
    }

    .tsr-advice {
        gap: 3rem;
    }
}

@media (max-width: 991.98px) {
    .tsr-hero__slide {
        min-height: 0;
    }

    .tsr-hero .carousel-item.tsr-hero__slide {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .tsr-hero__media {
        position: relative;
        width: 100%;
        height: 62vw;
        max-height: 26rem;
    }

    .tsr-hero__media::after {
        background: linear-gradient(0deg, var(--tsr-ink) 0%, rgba(17, 17, 17, 0) 45%);
    }

    .tsr-hero__content {
        max-width: none;
        padding: 1.75rem 0 3.5rem;
    }

    .tsr-hero__badge {
        top: 1.25rem;
        right: 1rem;
    }

    .tsr-hero__controls {
        top: calc(min(62vw, 26rem) - 2.25rem);
        bottom: auto;
    }

    .tsr-hero__controls .tsr-arrow-btn {
        width: 2.25rem;
        height: 2.25rem;
    }

    .tsr-rail {
        grid-auto-columns: calc((100% - .75rem) / 2.2);
    }

    .tsr-advice {
        grid-template-columns: 1fr;
    }

    .tsr-sector-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tsr-life {
        grid-template-columns: 1fr;
    }

    .tsr-life__body {
        padding: 2rem 1.5rem;
    }

    .tsr-life-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tsr-life-link:nth-child(3) {
        border-left: 0;
    }

    .tsr-life-link:nth-child(n+3) {
        border-top: 1px solid #dddddd;
    }
}

@media (max-width: 767.98px) {
    .tsr-section__head .tsr-arrows {
        display: none;
    }

    .tsr-hero__title {
        font-size: clamp(2.6rem, 12vw, 3.25rem);
    }

    .tsr-hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .tsr-hero__ctas .tsr-btn {
        justify-content: space-between;
    }

    .tsr-hero__ctas .tsr-link {
        align-self: flex-start;
    }

    .tsr-hero__badge {
        display: none;
    }

    .tsr-cat-grid {
        grid-template-columns: 1fr;
    }

    .tsr-cat {
        min-height: 12.5rem;
        padding: 1.25rem;
    }

    .tsr-rail {
        grid-auto-columns: 78%;
    }

    .tsr-rail--brands {
        grid-auto-columns: calc((100% - 2 * .5rem) / 2.6);
    }

    .tsr-sector-grid {
        grid-template-columns: 1fr;
    }

    .tsr-sector {
        min-height: 0;
    }

    .tsr-sector > i:last-child {
        margin-top: 1rem;
    }

    .tsr-life-links {
        grid-template-columns: 1fr;
    }

    .tsr-life-link {
        border-left: 0;
    }

    .tsr-life-link + .tsr-life-link {
        border-top: 1px solid #dddddd;
    }

    .tsr-social {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }

    .tsr-social__tile {
        min-height: 15rem;
    }

    .tsr-social__tile--big {
        grid-row: auto;
        min-height: 22rem;
    }

}

/* Brand logo on a hero slide (Bekina, Grundens, TSR) */
.tsr-hero__logo {
    display: block;
    margin-bottom: 1.5rem;
}

/* Logos are cropped to their edges: tall marks stop at the height, wide wordmarks at the width */
.tsr-hero__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 15rem;
    max-height: 4.5rem;
}

.tsr-hero__logo img.is-white {
    width: 15rem;
}

/* Dark logos (Grundens) shown white over the photo */
.tsr-hero__logo img.is-white {
    filter: brightness(0) invert(1);
}

@media (max-width: 767.98px) {
    .tsr-hero__logo img {
        max-width: 11rem;
        max-height: 3.5rem;
    }

    .tsr-hero__logo img.is-white {
        width: 11rem;
    }
}

/* Certification call to action (Class & MEG4) - builds on .tsr-cta-band */
.tsr-cert {
    padding: 4.5rem 0;
}

.tsr-cert h2 em {
    color: var(--tsr-red);
    font-style: italic;
}

.tsr-cert p {
    max-width: 38rem;
}

/* Copy on the left, photo on the right */
.tsr-cert__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 3.5rem;
    align-items: center;
}

.tsr-cert__body .tsr-cta-band__actions {
    margin-top: 2rem;
}

.tsr-cert__media {
    position: relative;
    aspect-ratio: 9 / 7;
    overflow: hidden;
}

.tsr-cert__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Red accent line down the photo's left edge, matching the eyebrow rules */
.tsr-cert__media::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 4px;
    background: var(--tsr-red);
}

.tsr-cert__points {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tsr-cert__points i {
    margin-right: .5rem;
    color: var(--tsr-red);
}

@media (max-width: 991.98px) {
    .tsr-cert__layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    .tsr-cert {
        padding: 3.25rem 0;
    }
}

/* Social cards - styled like a post from each account (Instagram, TikTok, YouTube) */
.tsr-social-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.tsr-social-card {
    --tsr-social: var(--tsr-ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--tsr-line);
    background: #fff;
    color: var(--tsr-ink);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.tsr-social-card:hover {
    color: var(--tsr-ink);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45);
}

.tsr-social-card--instagram { --tsr-social: linear-gradient(45deg, #f9a43b 0%, #e1306c 50%, #833ab4 100%); }
.tsr-social-card--tiktok { --tsr-social: #111; }
.tsr-social-card--facebook { --tsr-social: #1877f2; }

.tsr-social-card__head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
}

.tsr-social-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.6rem;
    height: 2.6rem;
    padding: 2px;
    border-radius: 50%;
    background: var(--tsr-social);
}

.tsr-social-card__avatar img {
    width: 100%;
    height: 100%;
    padding: .3rem;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.tsr-social-card__who {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.tsr-social-card__who strong {
    overflow: hidden;
    font-size: .875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tsr-social-card__who small {
    color: var(--tsr-muted);
    font-size: .75rem;
}

.tsr-social-card__platform {
    font-size: 1.35rem;
}

.tsr-social-card--instagram .tsr-social-card__platform { color: #e1306c; }
.tsr-social-card--tiktok .tsr-social-card__platform { color: #111; text-shadow: 1.5px 1.5px 0 #ff0050, -1.5px -1.5px 0 #00f2ea; }
.tsr-social-card--facebook .tsr-social-card__platform { color: #1877f2; }

.tsr-social-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--tsr-bg-stone);
}

.tsr-social-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.tsr-social-card:hover .tsr-social-card__media img {
    transform: scale(1.04);
}

/* Play button on the video platforms */
.tsr-social-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--tsr-ink);
    font-size: 1.1rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.tsr-social-card__play i {
    margin-left: 3px;
}

.tsr-social-card__foot {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1rem 1.15rem;
}

.tsr-social-card__caption {
    color: var(--tsr-text);
    font-size: .875rem;
    line-height: 1.55;
}

.tsr-social-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: auto;
    padding: .8rem 1rem;
    background: var(--tsr-social);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .tsr-social-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones: swipe through the cards */
@media (max-width: 575.98px) {
    .tsr-social-cards {
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: .5rem;
    }

    .tsr-social-card {
        scroll-snap-align: start;
    }

    .tsr-social-card:hover {
        transform: none;
    }
}

/* Long hero headlines (e.g. the TSR slide): wider column, smaller type - about three lines on desktop */
.tsr-hero__content--long {
    max-width: 38rem;
}

.tsr-hero__content--long .tsr-hero__title {
    font-size: clamp(2.4rem, 3.9vw, 3.75rem);
    line-height: 1.04;
}

@media (max-width: 767.98px) {
    .tsr-hero__content--long .tsr-hero__title {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }
}

/* Hashtag under the social section heading */
.tsr-social__tag {
    margin: .9rem 0 0;
    color: var(--tsr-red);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
}
