html, body {
    margin: 0;
    font-weight: 400;
    color: #000;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.15;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

svg:not(:root) {
    overflow: hidden;
}

header.longform-header {
    position: relative;
    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;
}

@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;
}

@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: 56px;
    }
}

#block-socialmedia {
    position: absolute;
    left: 20px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

@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;
}

@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;
    }
}
