header.longform-header {
    font-weight: 400;
    color: #000;
    line-height: 1.15;
}

header.longform-header a {
    color: inherit;
    text-decoration: none;
}

header.longform-header svg:not(:root) {
    overflow: hidden;
}

header.longform-header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid #ccc;
    background: #fff;
    z-index: 400;
}

header.longform-header .logo {
    position: relative;
    border-bottom: 1px solid #ccc;
}

header.longform-header .logo .container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 12px 20px;
    gap: 24px;
    transition: padding .3s ease;
}

@media (min-width: 768px) {
    header.longform-header .logo .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1024px) {
    header.longform-header .logo .container {
        max-width: 1004px;
        padding-top: 18px;
        padding-bottom: 17px;
    }
}

@media (min-width: 1400px) {
    header.longform-header .logo .container {
        max-width: 1330px;
        padding: 20px;
    }
}

header.longform-header .logo .container > a {
    display: block;
    font-size: 0;
    flex-shrink: 0;
}

header.longform-header .logo .container > a svg {
    display: block;
    height: 36px;
    width: auto;
    transition: height .3s ease;
}

@media (min-width: 768px) {
    header.longform-header .logo .container > a svg {
        height: 42px;
    }
}

@media (min-width: 1024px) {
    header.longform-header .logo .container > a svg {
        height: 48px;
    }
}

@media (min-width: 1400px) {
    header.longform-header .logo .container > a svg {
        height: 60px;
    }
}

#block-socialmedia {
    position: absolute;
    left: 20px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    transition: opacity .3s ease, bottom .3s ease;
}

@media (min-width: 1024px) {
    #block-socialmedia {
        bottom: 17px;
    }
}

@media (min-width: 1400px) {
    #block-socialmedia {
        bottom: 20px;
    }
}

.block-custom-social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
}

.block-custom-social-media a:hover path:not(.no-hover) {
    fill: red !important;
}

.block-custom-social-media a svg {
    width: 14px;
    height: 14px;
    max-height: 100%;
    fill: currentColor;
}

@media (min-width: 1400px) {
    .block-custom-social-media a svg {
        width: 16px;
        height: 16px;
    }
}

.rest-block-wrapper {
    position: absolute;
    right: 20px;
    bottom: 12px;
    z-index: 1;
    transition: opacity .3s ease, bottom .3s ease;
}

@media (min-width: 1024px) {
    .rest-block-wrapper {
        bottom: 17px;
    }
}

@media (min-width: 1400px) {
    .rest-block-wrapper {
        bottom: 20px;
    }
}

.font-family-main {
    font-family: "PFDin", Arial, "Times New Roman", Times, serif;
}

.rest-block-wrapper .datetime {
    font-family: inherit;
    font-size: 12px;
    line-height: 1em;
    color: #000;
    text-align: right;
}

.rest-block-wrapper .datetime > div {
    display: inline;
}

.rest-block-wrapper .datetime .time {
    margin-left: 10px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .rest-block-wrapper .datetime {
        font-size: 15px;
    }
}

@media (min-width: 1400px) {
    .rest-block-wrapper .datetime {
        font-size: 18px;
    }
}

.w-bold {
    font-weight: 500;
}

.container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1004px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1330px;
    }
}

/* Hide social + datetime on small screens to avoid overlap */
@media (max-width: 767px) {
    #block-socialmedia {
        display: none;
    }
    .rest-block-wrapper {
        display: none;
    }
}

/* ── Scrolled (sticky-shrink) state ──────────────────── */

header.longform-header.scrolled .logo .container {
    padding-top: 6px;
    padding-bottom: 6px;
}

header.longform-header.scrolled .logo .container > a svg {
    height: 18px;
}

header.longform-header.scrolled #block-socialmedia,
header.longform-header.scrolled .rest-block-wrapper {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    header.longform-header.scrolled .logo .container > a svg {
        height: 21px;
    }
}

@media (min-width: 1024px) {
    header.longform-header.scrolled .logo .container {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    header.longform-header.scrolled .logo .container > a svg {
        height: 24px;
    }
}

@media (min-width: 1400px) {
    header.longform-header.scrolled .logo .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    header.longform-header.scrolled .logo .container > a svg {
        height: 28px;
    }
}
