/* SFORT – detail případové studie, pouze jednotlivé příspěvky v kategorii reference */

body.sfort-reference-single .title-content .title-text-heading {
    display: none !important;
}

body.sfort-reference-single #site-content {
    background: #f7f7f3;
}

.sfort-reference-detail,
.sfort-reference-detail * {
    box-sizing: border-box;
}

.sfort-reference-detail {
    margin: 0;
    padding: 0;
    color: #222;
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at 100% 8%, rgba(103, 30, 45, .035), transparent 28rem),
        #f7f7f3;
}

.sfort-reference-detail__inner {
    width: min(112rem, calc(100% - 4rem));
    margin: 0 auto;
    padding: 4.2rem 0 7rem;
}

.sfort-reference-detail__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin: 0 0 2.3rem;
    color: #777;
    font-size: 1.25rem;
    line-height: 1.5;
}

.sfort-reference-detail__breadcrumb a {
    color: #671e2d;
    text-decoration: none;
}

.sfort-reference-detail__breadcrumb a:hover,
.sfort-reference-detail__breadcrumb a:focus-visible {
    text-decoration: underline;
}

.sfort-reference-detail__header {
    margin: 0 0 2.8rem;
}

.sfort-reference-detail__title {
    max-width: 96rem;
    margin: 0;
    color: #671e2d;
    font-size: clamp(3.3rem, 5.3vw, 6.2rem);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -.025em;
}

.sfort-reference-detail__title-line {
    display: block;
    width: 5rem;
    height: .3rem;
    margin-top: 1.7rem;
    background: #671e2d;
}

.sfort-reference-detail__hero {
    position: relative;
    width: 100%;
    margin: 0 0 3.1rem;
    overflow: hidden;
    border-radius: 1.4rem;
    background: #e9e9e5;
    box-shadow: 0 1.4rem 4rem rgba(0,0,0,.08);
}

.sfort-reference-detail__hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7.1;
    object-fit: cover;
    margin: 0;
}

.sfort-reference-detail__badge {
    position: absolute;
    left: 2.2rem;
    bottom: 2.1rem;
    display: inline-flex;
    align-items: center;
    min-height: 3.2rem;
    padding: .6rem 1.5rem;
    border-radius: 999px;
    color: #fff;
    background: #7b1831;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 .5rem 1.3rem rgba(0,0,0,.16);
}

.sfort-reference-detail__intro {
    width: min(78rem, 100%);
    margin: 0 auto 3.8rem;
    padding: 0 !important;
    color: #333;
    font-size: 1.55rem;
    line-height: 1.68;
}

.sfort-reference-detail__intro > * {
    max-width: none !important;
    width: auto !important;
}

.sfort-reference-detail__intro p {
    margin: 0 0 1.5rem;
}

.sfort-reference-detail__intro p:last-child {
    margin-bottom: 0;
}

.sfort-reference-detail__sections {
    display: grid;
    gap: 1.6rem;
    width: 100%;
    margin: 0;
}

.sfort-reference-detail__section {
    position: relative;
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    min-height: 15rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(26, 26, 26, .04);
    border-radius: 1.5rem;
    background: rgba(255,255,255,.78);
    box-shadow: 0 1rem 3.2rem rgba(0,0,0,.045);
}

.sfort-reference-detail__marker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2.6rem;
}

.sfort-reference-detail__marker::after {
    content: '';
    position: absolute;
    top: 7.9rem;
    bottom: -2.2rem;
    left: 50%;
    border-left: 1px dashed rgba(123,24,49,.55);
    transform: translateX(-50%);
}

.sfort-reference-detail__section:last-child .sfort-reference-detail__marker::after {
    display: none;
}

.sfort-reference-detail__marker span {
    position: relative;
    z-index: 1;
    display: block;
    width: 6rem;
    height: 6rem;
    border: .5rem solid #fff;
    border-radius: 50%;
    background: #f3dfe2;
    box-shadow: 0 .6rem 1.7rem rgba(0,0,0,.08);
}

.sfort-reference-detail__marker span::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: #8b1538;
    transform: translate(-50%, -50%);
}

.sfort-reference-detail__section-content {
    padding: 2.7rem 3.4rem 3rem 0 !important;
    color: #333;
    font-size: 1.5rem;
    line-height: 1.65;
}

.sfort-reference-detail__section-content > * {
    max-width: none !important;
    width: auto !important;
}

.sfort-reference-detail__section-content h2 {
    margin: 0 0 1.15rem !important;
    padding: 0 !important;
    color: #671e2d;
    font-size: clamp(2rem, 2.4vw, 2.6rem) !important;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
}

.sfort-reference-detail__section-content p {
    margin: 0 0 1.35rem;
}

.sfort-reference-detail__section-content p:last-child,
.sfort-reference-detail__section-content > *:last-child {
    margin-bottom: 0;
}

.sfort-reference-detail__section-content ul,
.sfort-reference-detail__section-content ol {
    margin: 1.2rem 0 1.4rem 2rem;
}

.sfort-reference-detail__section-content img {
    max-width: 100%;
    height: auto;
}

.sfort-reference-detail__edit {
    margin-top: 2.2rem;
    text-align: center;
    font-size: 1.3rem;
}

.sfort-reference-detail__edit a {
    color: #671e2d;
}

@media (max-width: 900px) {
    .sfort-reference-detail__inner {
        width: min(100% - 3rem, 112rem);
        padding-top: 3.2rem;
    }

    .sfort-reference-detail__hero-image {
        aspect-ratio: 16 / 9;
    }

    .sfort-reference-detail__section {
        grid-template-columns: 7.4rem minmax(0, 1fr);
    }

    .sfort-reference-detail__marker span {
        width: 5rem;
        height: 5rem;
    }

    .sfort-reference-detail__marker::after {
        top: 6.9rem;
    }

    .sfort-reference-detail__section-content {
        padding-right: 2.5rem !important;
    }
}

@media (max-width: 620px) {
    .sfort-reference-detail__inner {
        width: calc(100% - 2.4rem);
        padding: 2.3rem 0 4.5rem;
    }

    .sfort-reference-detail__breadcrumb {
        margin-bottom: 1.6rem;
        font-size: 1.1rem;
    }

    .sfort-reference-detail__header {
        margin-bottom: 2rem;
    }

    .sfort-reference-detail__title {
        font-size: clamp(3rem, 10vw, 4.2rem);
    }

    .sfort-reference-detail__title-line {
        margin-top: 1.2rem;
    }

    .sfort-reference-detail__hero {
        margin-bottom: 2.4rem;
        border-radius: 1rem;
    }

    .sfort-reference-detail__hero-image {
        aspect-ratio: 4 / 3;
    }

    .sfort-reference-detail__badge {
        left: 1.3rem;
        bottom: 1.3rem;
        min-height: 2.8rem;
        padding: .5rem 1.1rem;
        font-size: 1rem;
    }

    .sfort-reference-detail__intro {
        margin-bottom: 2.6rem;
        font-size: 1.4rem;
        line-height: 1.62;
    }

    .sfort-reference-detail__sections {
        gap: 1.3rem;
    }

    .sfort-reference-detail__section {
        display: block;
        min-height: 0;
        border-radius: 1.2rem;
    }

    .sfort-reference-detail__marker {
        position: absolute;
        top: 1.6rem;
        left: 1.6rem;
        display: block;
        padding: 0;
    }

    .sfort-reference-detail__marker span {
        width: 3.8rem;
        height: 3.8rem;
        border-width: .35rem;
    }

    .sfort-reference-detail__marker span::after {
        width: 1rem;
        height: 1rem;
    }

    .sfort-reference-detail__marker::after {
        display: none;
    }

    .sfort-reference-detail__section-content {
        padding: 2.1rem 1.8rem 2.2rem 6.8rem !important;
        font-size: 1.36rem;
        line-height: 1.6;
    }

    .sfort-reference-detail__section-content h2 {
        margin-bottom: 1rem !important;
        font-size: 1.9rem !important;
    }
}
