@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Archivo SemiCondensed";
    src: url("../assets/fonts/ArchivoSemiCondensed-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --nyk-ink: #102333;
    --nyk-deep-blue: #1f6e9f;
    --nyk-sky: #4fa3d1;
    --nyk-mist: #eaf1f6;
    --nyk-white: #fff;
    --nyk-muted: #617383;
    --nyk-line: #d5e1e9;
    --nyk-radius: 10px;
    --primary-blue: var(--nyk-deep-blue);
    --primary-red: var(--nyk-sky);
    --dark-gray: var(--nyk-ink);
    --medium-gray: var(--nyk-muted);
    --light-gray: var(--nyk-mist);
    --white: var(--nyk-white);
}

html {
    color-scheme: light;
}

body,
button,
input,
select,
textarea {
    font-family: "Inter", Arial, sans-serif;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--nyk-sky);
    outline-offset: 3px;
}

.nyk-weather-sprite {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}

header.site-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--nyk-line);
}

.header-container,
.mobile-container,
.footer-container {
    width: min(100% - 40px, 1310px);
    max-width: 1310px;
    margin-inline: auto;
    padding-inline: 0;
}

.top-bar {
    min-height: 44px;
    padding: 0;
    background: var(--nyk-mist);
    border-bottom: 1px solid var(--nyk-line);
}

.top-bar-content {
    min-height: 44px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    line-height: 1;
}

.top-bar-tools {
    justify-self: end;
}

.top-bar-content > .weather-info {
    justify-self: center;
}

.date-weather,
.top-bar-tools,
.weather-info,
.mobile-weather {
    display: flex;
    align-items: center;
}

.top-bar-tools {
    gap: 8px;
}

.weather-info,
.mobile-weather,
.sticky-weather {
    gap: 7px;
    position: static;
    color: var(--nyk-muted);
    text-decoration: none;
    white-space: nowrap;
}

.weather-info:hover,
.mobile-weather:hover,
.sticky-weather:hover {
    color: var(--nyk-deep-blue);
}

.current-date,
.mobile-date,
.weather-info [data-weather-text],
.mobile-weather [data-weather-text] {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    line-height: 20px;
}

.weather-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--nyk-sky);
}

.top-bar .dark-mode,
.mobile-top-bar .dark-mode,
.sticky-header .dark-mode,
.aeon-dark-mode-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.aeon-dm-toggle,
.aeon-dm-toggle-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--nyk-ink);
    cursor: pointer;
}

.aeon-dm-toggle-icon > span {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.aeon-dm-toggle-icon .aeon-dm-icon-sun {
    display: flex;
}

.aeon-dm-toggle-icon .aeon-dm-icon-moon {
    display: none;
}

.aeon-dm-toggle-icon i {
    display: block;
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

:is(html.aeon-dark-mode-active, body.dark-mode) .aeon-dm-toggle-icon .aeon-dm-icon-sun {
    display: none;
}

:is(html.aeon-dark-mode-active, body.dark-mode) .aeon-dm-toggle-icon .aeon-dm-icon-moon {
    display: flex;
}

.aeon-dm-toggle:hover {
    background: rgba(79, 163, 209, 0.14);
}

.main-header {
    position: relative;
    top: auto;
    z-index: 100;
    padding: 14px 0 12px;
    background: var(--nyk-white);
    box-shadow: none;
}

.header-content {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(330px, 430px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
}

.brand {
    min-width: 0;
    text-align: left;
}

.main-header .brand {
    display: flex;
    align-items: center;
}

.nyk-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    color: var(--nyk-ink);
    text-decoration: none;
}

.nyk-brand__mark {
    display: block;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
}

.nyk-brand__mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nyk-brand__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

.nyk-brand__wordmark {
    display: block;
    color: var(--nyk-ink);
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(34px, 2.85vw, 41px);
    font-weight: 780;
    line-height: 0.96;
    letter-spacing: -0.004em;
    white-space: nowrap;
}

.nyk-brand__tagline {
    display: block;
    margin: 0;
    color: var(--nyk-deep-blue);
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 520;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.main-nav {
    justify-self: end;
}

ul.nav-list {
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 10px 12px;
    color: var(--nyk-ink);
    font-size: 14px;
    font-weight: 650;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--nyk-deep-blue);
    background: var(--nyk-mist);
}

.header-actions,
.sticky-controls {
    display: flex;
    align-items: center;
}

.search-btn,
.menu-toggle,
.sticky-search-btn {
    width: 44px;
    height: 44px;
    padding: 10px;
    color: var(--nyk-ink);
}

.search-btn i,
.menu-toggle i,
.sticky-search-btn i {
    display: block;
    margin: 0;
    font-size: 20px;
    line-height: 1;
}

.menu-toggle i {
    font-size: 21px;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 22px;
    gap: 5px;
}

.hamburger span {
    height: 1.5px;
    border-radius: 999px;
}

.search-btn:hover,
.menu-toggle:hover,
.sticky-search-btn:hover {
    color: var(--nyk-deep-blue);
    background: var(--nyk-mist);
}

.mobile-top-bar {
    min-height: 44px;
    padding: 0;
    background: var(--nyk-mist);
    border-bottom: 1px solid var(--nyk-line);
}

.mobile-top-content {
    min-height: 44px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0;
}

.mobile-date {
    justify-self: start;
    text-align: left;
    color: var(--nyk-muted);
    font-size: 12px;
    font-weight: 600;
}

.mobile-weather {
    justify-self: end;
    text-align: right;
    font-size: 12px;
}

.off-canvas-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    background: rgba(16, 35, 51, 0.58);
    transition: opacity 180ms ease, visibility 180ms ease;
}

.off-canvas-overlay.active {
    visibility: visible;
    opacity: 1;
}

.off-canvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: min(390px, 92vw);
    height: 100vh;
    height: 100dvh;
    padding: 20px 24px 28px;
    overflow-y: auto;
    background: var(--nyk-white);
    box-shadow: -18px 0 48px rgba(16, 35, 51, 0.2);
    transform: translateX(100%);
    transition: transform 220ms ease;
}

.off-canvas-menu.active {
    right: 0;
    transform: translateX(0);
}

.off-canvas-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--nyk-line);
}

.nyk-brand--menu {
    width: 245px;
    gap: 10px;
}

.nyk-brand--menu .nyk-brand__mark {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
}

.nyk-brand--menu .nyk-brand__wordmark {
    font-size: 26px;
}

.nyk-brand--menu .nyk-brand__tagline {
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
}

.off-canvas-menu .nav-close {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    color: var(--nyk-ink);
    background: transparent;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.off-canvas-menu .nav-close i {
    transition: color 180ms ease, transform 180ms ease;
}

.off-canvas-menu .nav-close:is(:hover, :focus-visible) {
    background-color: var(--nyk-soft);
}

.off-canvas-nav {
    padding-top: 18px;
}

.off-canvas-menu .site-navigation {
    margin: 0;
}

.off-canvas-menu .nav-footer {
    color: var(--nyk-muted);
}

body.nyk-menu-open {
    overflow: hidden;
}

/* Curated rail images must follow the fluid rail, not the 300 px WP thumbnail. */
.nyk-curated-category-posts .post-thumbnail,
.nyk-curated-category-posts .post-thumbnail > a,
.nyk-curated-category-posts .post-thumbnail img {
    display: block;
    width: 100%;
}

.nyk-curated-category-posts .post-thumbnail img {
    height: auto;
}

.sticky-header {
    height: 48px;
    border-color: var(--nyk-line);
    background: var(--nyk-white);
}

.sticky-header .header-container {
    display: grid;
    grid-template-columns: minmax(310px, 1fr) auto minmax(160px, 1fr);
    align-items: center;
    height: 100%;
}

.sticky-header--mobile {
    display: none;
}

.sticky-meta,
.sticky-weather {
    display: flex;
    align-items: center;
}

.sticky-meta {
    min-width: 0;
    gap: 18px;
}

.sticky-weather {
    gap: 6px;
    color: var(--nyk-muted);
    font-size: 12px;
}

.sticky-weather .weather-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.sticky-brand {
    display: flex;
    height: 100%;
    align-items: center;
    width: auto;
    max-width: none;
    justify-self: center;
}

.nyk-brand--sticky {
    align-self: center;
    gap: 7px;
    transform: translateY(0);
}

.nyk-brand--sticky .nyk-brand__mark {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
}

.nyk-brand--sticky .nyk-brand__wordmark {
    font-size: 24px;
    line-height: 1;
}

.nyk-brand--sticky .nyk-brand__tagline {
    display: none;
}

/* Archive headings follow the active site palette instead of the parent's
 * historic debate-blue constant. */
body.archive h3.debatt,
body.archive h3.insandare {
    border-top-color: var(--nyk-sky) !important;
    border-bottom-color: var(--nyk-line) !important;
}

.sticky-header .sticky-current-date {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.sticky-controls {
    justify-self: end;
}

/* Keep the sticky brand centred while distributing its utility controls across
 * the remaining desktop space. Mobile uses a separate sticky header below. */
@media (min-width: 1025px) {
    .nyk-brand--header {
        gap: 12px;
    }

    .nyk-brand--header .nyk-brand__mark {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .nyk-brand--header .nyk-brand__wordmark {
        font-size: clamp(31px, 2.57vw, 37px);
    }

    .nyk-brand--header .nyk-brand__tagline {
        font-size: 11px;
    }

    .sticky-header--desktop > .header-container {
        width: min(100% - 40px, 1310px);
        max-width: 1310px;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .sticky-header--desktop .sticky-meta {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 0;
    }

    .sticky-header--desktop .sticky-weather {
        justify-self: center;
    }

    .sticky-header--desktop .sticky-brand,
    .sticky-header--desktop .sticky-controls,
    .sticky-header--desktop .sticky-dark-mode {
        align-self: center;
    }

    .sticky-header--desktop .sticky-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 38px 38px;
        align-items: center;
        justify-self: stretch;
        width: 100%;
    }

    .sticky-header--desktop .sticky-dark-mode {
        justify-self: center;
    }

    .sticky-header--desktop :is(.sticky-search-btn, .sticky-menu-toggle) {
        justify-self: end;
    }
}

.sticky-header :is(.sticky-search-btn, .sticky-menu-toggle, .aeon-dm-toggle, .aeon-dm-toggle-icon) {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 8px;
}

.sticky-header .aeon-dm-toggle-icon > span {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.sticky-header .aeon-dm-toggle-icon .aeon-dm-icon-moon,
:is(html.aeon-dark-mode-active, body.dark-mode) .sticky-header .aeon-dm-toggle-icon .aeon-dm-icon-sun {
    display: none !important;
}

:is(html.aeon-dark-mode-active, body.dark-mode) .sticky-header .aeon-dm-toggle-icon .aeon-dm-icon-moon {
    display: flex !important;
}

.sticky-header .aeon-dm-toggle-icon i {
    display: block;
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    transform: translateY(1px);
}

.sticky-header .sticky-dark-mode,
.sticky-header .aeon-dark-mode-toggle-wrapper {
    min-width: 38px;
    min-height: 38px;
}

.sticky-header .sticky-menu-toggle {
    display: flex;
}

.sticky-controls {
    justify-self: end;
}

.sticky-current-date {
    color: var(--nyk-muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 40px;
    color: var(--nyk-ink);
    background: var(--nyk-white);
}

.newsroom-cta {
    padding: 42px 0;
    color: var(--nyk-white);
    background: var(--nyk-deep-blue);
}

.newsroom-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
}

.newsroom-cta__eyebrow {
    margin: 0 0 8px;
    color: #bfe4f7;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.newsroom-cta h2 {
    margin: 0 0 8px;
    color: var(--nyk-white);
    font-family: "Archivo SemiCondensed", "Inter", sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
}

.newsroom-cta p:not(.newsroom-cta__eyebrow) {
    margin: 0;
    color: #d9edf8;
    font-size: 16px;
}

.newsroom-cta__button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 2px solid var(--nyk-white);
    border-radius: 999px;
    color: var(--nyk-white);
    font-weight: 750;
    text-decoration: none;
}

.newsroom-cta__button:hover {
    color: var(--nyk-ink);
    background: var(--nyk-white);
}

.footer-main {
    padding: 50px 0 42px;
    color: var(--nyk-ink);
    background: var(--nyk-white);
    border-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(120px, 1fr));
    gap: clamp(24px, 3vw, 42px);
}

.footer-about {
    padding-right: 20px;
}

.nyk-brand--footer {
    width: min(100%, 290px);
}

.nyk-brand--footer .nyk-brand__mark {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
}

.nyk-brand--footer .nyk-brand__wordmark {
    font-size: 30px;
}

.nyk-brand--footer .nyk-brand__tagline {
    font-size: 10px;
}

.footer-description {
    max-width: 310px;
    margin: 20px 0;
    color: var(--nyk-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-column h4 {
    margin-bottom: 16px;
    color: var(--nyk-ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-widget li {
    margin-bottom: 9px;
}

.footer-widget a {
    color: var(--nyk-muted);
    font-size: 14px;
}

.footer-widget a:hover {
    color: var(--nyk-deep-blue);
}

.footer-social {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.footer-social a {
    min-width: 40px;
    padding-inline: 10px;
    border-radius: 999px;
    color: var(--nyk-deep-blue);
    background: var(--nyk-mist);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.footer-bottom {
    padding: 20px 0;
    background: var(--nyk-ink);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-bottom-content > p {
    margin: 0;
    color: #aebdca;
    font-size: 13px;
}

/* The child footer deliberately has no configurable sidebar columns. */
.footer-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand {
    flex: 0 1 290px;
}

.footer-brand > p {
    margin: 16px 0 0;
    color: var(--nyk-muted);
    font-size: 14px;
    line-height: 1.55;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: clamp(22px, 4vw, 56px);
    flex: 1;
}

.footer-nav h2 {
    margin: 0 0 12px;
    color: var(--nyk-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--nyk-muted);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--nyk-deep-blue);
}

/* Article and category labels need a visible resting surface as well as their
 * existing hover treatment. Keep each label content-sized in article headers. */
body :is(a.article-topic, .article-topic-link, .article-category, .column1-category) {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    box-sizing: border-box;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--nyk-deep-blue);
    background: var(--nyk-mist);
    font-weight: 700;
    line-height: 1.15;
}

body .article-category a {
    color: inherit;
}

body .article-category,
body .article-topic-link {
    padding-left: 14px;
}

body .article-category::before,
body .article-topic-link::before {
    left: 0;
    width: 5px;
    border-radius: 999px 0 0 999px;
}

/* The single-article title keeps the parent's clean category treatment: a
 * blue rule and text, without the homepage label pill. */
body.single .single-title-area-rht .article-category {
    min-height: 0;
    padding: 0 0 0 5px;
    border-radius: 0;
    background: transparent;
    line-height: 0.8;
}

body.single .single-title-area-rht .article-category::before {
    top: 0;
    left: -7px;
    width: 7px;
    height: 100%;
    border-radius: 0;
    transform: none;
}

body #first_col .column1-category {
    /* The parent dot is absolutely positioned; reserve a full clear gap for
     * it before the label text instead of letting it sit under the first glyph. */
    padding-right: 12px;
    padding-left: 30px;
}

body #first_col .column1-category::before {
    left: 11px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
}

body .article-topic {
    border-left: 4px solid var(--nyk-sky);
}

body .article-topic .arrow {
    color: currentColor;
}

body :is(a.article-topic, .article-topic-link, .article-category a):is(:hover, :focus-visible) {
    color: var(--nyk-ink);
    background: #d9e8f1;
}

.nyk-drawer-group + .nyk-drawer-group {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--nyk-line);
}

.nyk-drawer-group h2 {
    margin: 0 0 8px;
    color: var(--nyk-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nyk-drawer-group ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nyk-drawer-group a {
    display: block;
    padding: 9px 0;
    color: var(--nyk-ink);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.nyk-drawer-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    min-height: 69px;
    padding: 12px 0;
    box-sizing: border-box;
    border-top: 1px solid var(--nyk-line);
    color: var(--nyk-muted);
    font-size: 13px;
    font-weight: 700;
}

.nyk-sticky-rail {
    position: relative;
}

.nyk-sticky-topic-group {
    display: flow-root;
    width: 100%;
}

.nyk-sticky-placeholder {
    display: none;
    width: 100%;
    height: 0;
    pointer-events: none;
    visibility: hidden;
}

.nyk-sticky-topic-group--fixed,
.nyk-sticky-topic-group--stopped {
    z-index: 20;
    /* The normal 36 px rail rhythm belongs to the in-flow wrapper. Once the
     * group is fixed, that margin must not shift its measured footer stop. */
    margin-top: 0 !important;
}

/* Parent 4.10.1.11 preserves the article-title gap when an ad wrapper is
 * collapsed, but not when the empty above-article placement is omitted from
 * the markup altogether. Mirror the subsequent parent fix until that release
 * is deployed here. This applies only to the canonical first article; later
 * continuous-reading articles retain their separate 45 px hand-off. */
body.single .single-view .related-item:first-of-type .single:not(:has(> .wrapper-top-post-widget, > .non-repeat-top-post-widget)) > .single-title-area,
body.single .single-view .related-item:first-of-type .single:not(:has(> .wrapper-top-post-widget, > .non-repeat-top-post-widget)) > .full-single-title-area {
    margin-top: 30px;
}

@media (max-width: 767px) {
    body.single .single-view .related-item:first-of-type .single:not(:has(> .wrapper-top-post-widget, > .non-repeat-top-post-widget)) > .single-title-area,
    body.single .single-view .related-item:first-of-type .single:not(:has(> .wrapper-top-post-widget, > .non-repeat-top-post-widget)) > .full-single-title-area {
        margin-top: 15px;
    }
}

/* Give the two editorial rails the calmer vertical rhythm used by the
 * Nykysuomi front-page modules. The sticky wrapper keeps the same gap after
 * its two widgets are grouped by the child controller. */
:where(.second-col, .third-col3aeon-news) > .widget + .widget,
:where(.second-col, .third-col3aeon-news) > .nyk-sticky-placeholder + .nyk-sticky-topic-group,
:where(.second-col, .third-col3aeon-news) > .aeon-responsive-sidebar--desktop > .widget + .widget,
:where(.second-col, .third-col3aeon-news) > .aeon-responsive-sidebar--desktop > .nyk-sticky-placeholder + .nyk-sticky-topic-group,
.nyk-sticky-topic-group > .widget + .widget {
    margin-top: 36px;
}

.legal-links {
    margin: 0;
    padding: 0;
}

.legal-links a {
    color: #c9d5df;
    font-size: 13px;
}

/* Editorial hierarchy: compact standard news cards. */
#first_col .news-item-right-thumb .entry-title.bold-4 {
    margin-top: 0;
    font-size: clamp(26px, 2.35vw, 34px) !important;
    line-height: 1.05 !important;
}

#first_col .news-item-right-thumb .float-right-thumb {
    width: 34%;
    margin: 4px 0 10px 18px;
    border-radius: 6px;
}

#first_col .news-item-right-thumb .entry-content {
    font-size: 16px;
}

@media (max-width: 1180px) {
    .header-content {
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) auto;
        gap: 18px;
    }

    .nav-link {
        padding-inline: 9px;
        font-size: 13px;
    }

    .nyk-nav-optional {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .sticky-header--desktop.desktop-only {
        display: none !important;
    }

    .sticky-header--mobile.mobile-only {
        display: flex !important;
        height: 48px;
    }

    .sticky-header--mobile .header-container {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 10px;
    }

    .sticky-header--mobile .sticky-brand {
        min-width: 0;
        justify-self: center;
    }

    .nyk-brand--mobile-sticky {
        width: auto;
        max-width: 205px;
        justify-content: center;
        gap: 6px;
    }

    .nyk-brand--mobile-sticky .nyk-brand__mark {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

    .nyk-brand--mobile-sticky .nyk-brand__wordmark {
        font-size: 21px;
        line-height: 1;
    }

    .nyk-brand--mobile-sticky .nyk-brand__tagline {
        display: none;
    }

    .sticky-header--mobile :is(.sticky-search-btn, .sticky-menu-toggle) {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
    }

    .brand {
        width: min(430px, calc(100% - 112px));
    }

    .off-canvas-menu {
        display: flex;
        width: min(360px, 92vw);
        padding: 18px 20px 28px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .footer-minimal {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        justify-content: flex-start;
    }

    .footer-brand {
        flex: none;
        width: min(100%, 490px);
    }

    .footer-nav {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .header-container,
    .mobile-container,
    .footer-container {
        width: min(100% - 28px, 1310px);
    }

    header.site-header {
        margin-bottom: 0;
    }

    .mobile-top-content {
        min-height: 38px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0;
    }

    .mobile-top-bar {
        min-height: 38px;
    }

    .mobile-weather [data-weather-text] {
        max-width: 105px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-date {
        min-width: 0;
        font-size: 10.5px;
        white-space: nowrap;
    }

    .main-header {
        padding: 8px 0;
    }

    .header-content {
        min-height: 52px;
    }

    .brand {
        width: min(236px, calc(100% - 92px));
    }

    .main-header .brand {
        align-self: stretch;
        display: flex;
        align-items: center;
    }

    .nyk-brand--header .nyk-brand__mark {
        transform: none;
    }

    .ticker-area.front-page-mb {
        margin-top: 8px !important;
    }

    .nyk-brand__tagline {
        font-size: 8.5px;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .nyk-brand {
        gap: 8px;
    }

    .nyk-brand__mark {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .nyk-brand__wordmark {
        font-size: clamp(23px, 7vw, 27px);
        line-height: 0.96;
        letter-spacing: -0.004em;
    }

    .nyk-brand__copy {
        gap: 1px;
    }

    .header-actions {
        gap: 0;
    }

    .search-btn,
    .menu-toggle {
        margin: 0;
    }

    .newsroom-cta {
        padding: 34px 0;
    }

    .newsroom-cta__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: left;
    }

    .newsroom-cta__button {
        justify-self: start;
    }

    .footer-main {
        padding: 38px 0 30px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .footer-about {
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .legal-links {
        justify-content: flex-start;
    }

    #first_col .news-item-right-thumb .entry-title.bold-4 {
        font-size: 21px !important;
        line-height: 1.08 !important;
    }

    #first_col .news-item-right-thumb .float-right-thumb {
        width: 36%;
        margin: 3px 0 8px 12px;
    }

    #first_col .news-item-right-thumb .entry-content {
        font-size: 15px;
    }
}
