/* Nav — mega menu stile Guardian */
.nw-nav {
    position: sticky;
    top: 0;
    z-index: 1500;
    background: var(--blue-color);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nw-nav.is-mega-open {
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.22);
}
body.news-mega-open {
    overflow: hidden;
}
.nw-masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px 24px;
    min-height: 64px;
}
.nw-masthead-brand {
    justify-self: start;
    grid-column: 1;
}
.nw-masthead-links {
    justify-self: center;
    grid-column: 2;
}
body.news-body .nw-masthead .nw-wrap {
    padding-right: 20px;
}
body.news-body button.nw-mega-toggle {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 8px 12px 8px 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: var(--body-fonts);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.nw-mega-toggle {
    justify-self: end;
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: var(--body-fonts);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px 8px 18px;
    margin: 0;
    width: auto;
    height: auto;
    line-height: 1.2;
    flex-shrink: 0;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}
body.news-body .nw-mega-toggle:hover,
body.news-body .nw-nav.is-mega-open .nw-mega-toggle {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.nw-mega-toggle-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--yellow-color);
    flex-shrink: 0;
}
.nw-mega-toggle-icon::before,
.nw-mega-toggle-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--blue-color);
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.nw-mega-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.nw-nav.is-mega-open .nw-mega-toggle-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.nw-nav.is-mega-open .nw-mega-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.nw-mega-toggle-label {
    white-space: nowrap;
}
.nw-masthead-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.nw-masthead-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px 10px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: inset 0 -3px 0 transparent;
    transition: color 0.15s ease, box-shadow 0.15s ease;
}
.nw-masthead-links a:hover {
    color: #fff;
    text-decoration: none;
}
.nw-masthead-links a.is-active {
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--yellow-color);
}
.nw-masthead-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.nw-masthead-brand:hover {
    text-decoration: none;
    color: inherit;
}
.nw-nav-kicker {
    display: block;
    font-family: var(--body-fonts);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}
.nw-masthead-brand strong {
    font-family: var(--body-fonts-2);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.nw-mega {
    background: var(--blue-color);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 58px);
    overflow: auto;
}
.nw-mega-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 32px;
}
.nw-mega-columns {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(128px, 1fr);
    gap: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.nw-mega-col {
    --channel-color: var(--news-color);
    position: relative;
    min-width: 128px;
    padding: 10px 16px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.nw-mega-col:last-child {
    border-right: 0;
}
.nw-mega-col-mark {
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--channel-color);
    opacity: 0.45;
    transform-origin: left center;
    transition: width 0.22s ease, opacity 0.2s ease;
}
.nw-mega-col:hover .nw-mega-col-mark,
.nw-mega-col.is-active .nw-mega-col-mark,
.nw-mega-col-title.is-active .nw-mega-col-mark {
    width: 100%;
    opacity: 1;
}
.nw-mega-col-title {
    margin: 0 0 12px;
    font-family: var(--body-fonts-2);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    padding-bottom: 0;
    border-bottom: 0;
    list-style: none;
    cursor: default;
}
.nw-mega-col-title::-webkit-details-marker {
    display: none;
}
.nw-mega-details > summary.nw-mega-col-title {
    display: block;
    margin-bottom: 12px;
}
.nw-mega-details > summary .nw-mega-col-mark {
    display: block;
}
.nw-mega-col-channel {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nw-mega-accordion-icon {
    display: none;
}
.nw-mega-col-title.is-active .nw-mega-col-channel {
    color: var(--channel-color);
}
.nw-mega-col:hover .nw-mega-col-title .nw-mega-col-channel {
    color: var(--channel-color);
}
.nw-mega-col-title .nw-mega-col-channel:hover {
    color: var(--channel-color);
    text-decoration: none;
}
.nw-mega-col-title.is-active a {
    color: var(--channel-color);
}
.nw-mega-col:hover .nw-mega-col-title a {
    color: var(--channel-color);
}
.nw-mega-col-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nw-mega-col-title a:hover {
    color: var(--channel-color);
    text-decoration: none;
}
.nw-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nw-mega-list li {
    margin: 0 0 8px;
}
.nw-mega-list a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
.nw-mega-list a:hover {
    color: var(--channel-color);
    text-decoration: none;
}
.nw-mega-list a.is-highlight {
    color: var(--channel-color);
    font-weight: 700;
}
.nw-mega-aside {
    padding-left: 8px;
}
.nw-mega-brand {
    margin-bottom: 18px;
}
.nw-mega-brand-kicker {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
}
.nw-mega-brand strong {
    display: block;
    font-family: var(--body-fonts-2);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
}
.nw-mega-aside-links {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
}
.nw-mega-aside-links li {
    margin: 0 0 10px;
}
.nw-mega-aside-links a {
    font-family: var(--body-fonts-2);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
}
.nw-mega-aside-links a.is-accent {
    color: var(--yellow-color);
}
.nw-mega-aside-links a:hover {
    color: var(--yellow-color);
    text-decoration: none;
}
.nw-mega-aside-links a.is-accent:hover {
    color: #fff;
}

@media (min-width: 901px) {
    .nw-mega-details:not([open]) > .nw-mega-list {
        display: block;
    }
    .nw-mega-details > summary.nw-mega-col-title {
        display: block;
    }
    .nw-mega-details > summary .nw-mega-col-mark {
        display: block;
        width: 28px;
        margin-bottom: 10px;
    }
    .nw-mega-details > summary .nw-mega-col-channel {
        display: inline;
    }
    .nw-mega-details > summary .nw-mega-accordion-icon {
        display: none;
    }
    .nw-mega-details > summary.nw-mega-col-title {
        pointer-events: none;
    }
    .nw-mega-details > summary .nw-mega-col-channel {
        pointer-events: auto;
    }
}

@media (max-width: 900px) {
    .nw-masthead-links {
        display: none;
    }
    .nw-mega-inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 0;
        padding-bottom: 28px;
    }
    .nw-mega-columns {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: visible;
        padding-bottom: 0;
    }
    .nw-mega-col {
        border-right: 0;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nw-mega-col:last-child {
        border-bottom: 0;
    }
    .nw-mega-details:not([open]) > .nw-mega-list,
    .nw-mega-details > .nw-mega-list {
        display: none !important;
    }
    .nw-mega-accordion-icon {
        display: none !important;
    }
    .nw-mega-details > summary.nw-mega-col-title {
        display: grid;
        grid-template-columns: 3px minmax(0, 1fr);
        align-items: stretch;
        gap: 14px;
        margin: 0;
        padding: 0;
        min-height: 56px;
        box-sizing: border-box;
        cursor: default;
        pointer-events: auto;
    }
    .nw-mega-details > summary .nw-mega-col-mark {
        width: 3px;
        min-height: 100%;
        height: auto;
        margin: 0;
        opacity: 0.72;
        align-self: stretch;
        justify-self: start;
        border-radius: 0;
    }
    .nw-mega-col:hover .nw-mega-col-mark,
    .nw-mega-col.is-active .nw-mega-col-mark {
        width: 3px;
        opacity: 1;
    }
    .nw-mega-details > summary .nw-mega-col-channel {
        font-family: var(--body-fonts-2);
        font-size: 22px;
        font-weight: 700;
        line-height: 1.15;
        color: #fff;
        align-self: center;
        padding: 17px 0;
        cursor: pointer;
    }
    .nw-mega-col.is-active .nw-mega-col-channel {
        color: var(--channel-color);
    }
    .nw-mega-accordion-icon {
        display: block;
        width: 9px;
        height: 9px;
        border-right: 2px solid rgba(255, 255, 255, 0.72);
        border-bottom: 2px solid rgba(255, 255, 255, 0.72);
        transform: rotate(45deg);
        transition: transform 0.18s ease;
        justify-self: end;
        align-self: center;
        margin-top: -3px;
        margin-right: 10px;
    }
    .nw-mega-details[open] > summary .nw-mega-accordion-icon {
        transform: rotate(-135deg);
        margin-top: 2px;
    }
    .nw-mega-details > .nw-mega-list a {
        font-size: 17px;
        line-height: 1.5;
    }
    .nw-mega-details > .nw-mega-list {
        margin: 0;
        padding: 0 0 12px 17px;
        border-left: 3px solid var(--channel-color);
    }
    .nw-mega-details > .nw-mega-list li {
        margin: 0 0 10px;
    }
    .nw-mega-details > .nw-mega-list li:last-child {
        margin-bottom: 0;
    }
    .nw-mega-details[open] > summary.nw-mega-col-title {
        min-height: 56px;
    }
    body.news-body.news-mega-open .nw-nav {
        position: fixed;
        inset: 0;
        z-index: 3000;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    body.news-body.news-mega-open .nw-masthead {
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    body.news-body.news-mega-open .nw-mega {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .nw-mega-aside {
        padding: 0;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nw-mega-aside-links {
        border-top: 0;
        padding-top: 0;
    }
    .nw-mega-aside-links li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
    }
    .nw-mega-aside-links li:last-child {
        border-bottom: 0;
    }
    .nw-mega-aside-links a {
        display: grid;
        grid-template-columns: 3px minmax(0, 1fr);
        align-items: stretch;
        gap: 14px;
        flex: 1;
        min-height: 56px;
        padding: 0;
        font-family: var(--body-fonts-2);
        font-size: 22px;
        font-weight: 700;
        line-height: 1.15;
        color: #fff;
        text-decoration: none;
        transition: color 0.15s ease;
    }
    .nw-mega-link-mark {
        display: block;
        width: 3px;
        min-height: 100%;
        height: auto;
        border-radius: 0;
        background: var(--yellow-color);
        opacity: 0.72;
        align-self: stretch;
        transition: opacity 0.15s ease;
    }
    .nw-mega-link-label {
        align-self: center;
        padding: 17px 0;
    }
    .nw-mega-aside-links a.is-accent .nw-mega-link-mark,
    .nw-mega-aside-links a.is-highlight .nw-mega-link-mark {
        opacity: 1;
    }
    .nw-mega-aside-links a:hover .nw-mega-link-mark {
        opacity: 1;
    }
    .nw-mega-brand {
        display: none;
    }
}

@media (max-width: 900px) {
    body.news-body .nw-masthead-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 10px 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    body.news-body .nw-masthead-brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }
    body.news-body .nw-masthead-brand strong {
        font-size: 20px;
    }
    body.news-body .nw-nav-kicker {
        font-size: 12px;
    }
    body.news-body .nw-mega-toggle {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        padding-right: 0;
        font-size: 16px;
    }
}

@media only screen and (max-width: 780px) {
    body.news-body .nw-wrap,
    body.news-body .nw-front {
        padding-left: var(--nw-mobile-gutter, 20px);
        padding-right: var(--nw-mobile-gutter, 20px);
    }
    body.news-body .nw-masthead .nw-wrap {
        padding-left: var(--nw-mobile-gutter, 20px);
        padding-right: var(--nw-mobile-gutter, 20px);
    }
    body.news-body .nw-ad-leaderboard,
    body.news-body .nw-ad-billboard,
    body.news-body .nw-ad-mobile-top {
        padding-left: var(--nw-mobile-gutter, 20px);
        padding-right: var(--nw-mobile-gutter, 20px);
    }
    body.news-body .nw-macro-head-row--center {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    body.news-body .nw-home-channel .nw-home-channel-head {
        padding-bottom: 12px;
    }
    body.news-body .nw-macro-head-row--center .nw-home-channel-name,
    body.news-body .nw-macro-head-row--center .nw-archive-title,
    body.news-body .nw-macro-head-row--center .nw-topics-title {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    body.news-body .nw-macro-head-row--center .nw-page-share {
        grid-column: auto;
        grid-row: auto;
        justify-content: center;
        width: 100%;
    }
    body.news-body .header-search-form {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    body.news-body .header-search-submit {
        display: none;
    }
}
@media (max-width: 640px) {
    .nw-mega-toggle-label { display: inline; }
}
