#search-bg > .s-search { margin-left: 0; margin-right: 0; }
.home-search-switcher {
    position: relative;
    display: grid;
    width: 100%;
    margin: 0 auto;
    isolation: isolate;
}
.home-search-switcher > #search,
.home-search-news { grid-area: 1 / 1; min-width: 0; }
.header-big .home-search-switcher > #search { width: 100%; }
#search-bg.is-news-view { background: linear-gradient(110deg, #30254A, #5F3F82) !important; }
.home-news-hex { display: block; visibility: hidden; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.is-news-view > .home-news-hex { visibility: visible; }
#search-bg.is-news-view > .s-search { position: relative; }
.home-news-hex-pattern { opacity: .55; mask-image: linear-gradient(90deg, #0008, #000b 55%, #000); }
.home-news-bg-start { animation-name: news-theme-start; }
.home-news-bg-end { animation-name: news-theme-end; }
.home-news-hex-grid, .home-news-hex-layer, .home-search-news-controls { color: #B68AF7; animation-name: news-theme-accent; }
.home-news-hex-grid { opacity: .3; }
.home-news-hex-layer-a { opacity: .85; }
.home-news-hex-layer-b { opacity: .3; }
#homeSearchNews .home-search-news-controls button { animation-name: news-theme-focus; }
.home-news-bg-start, .home-news-bg-end, .home-news-hex-grid, .home-news-hex-layer,
.home-search-news-controls, #homeSearchNews .home-search-news-controls button {
    animation-duration: 288s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
}
.is-news-view:not(.news-background-paused) .home-news-bg-start,
.is-news-view:not(.news-background-paused) .home-news-bg-end,
.is-news-view:not(.news-background-paused) .home-news-hex-grid,
.is-news-view:not(.news-background-paused) .home-news-hex-layer,
.is-news-view:not(.news-background-paused) .home-search-news-controls,
#search-bg.is-news-view:not(.news-background-paused) #homeSearchNews .home-search-news-controls button { animation-play-state: running; }
@keyframes news-theme-start {
    0.000000%, 2.777778% { stop-color: #30254A; }
    4.166667%, 6.944444% { stop-color: #14304D; }
    8.333333%, 11.111111% { stop-color: #113A41; }
    12.500000%, 15.277778% { stop-color: #1A3C2F; }
    16.666667%, 19.444444% { stop-color: #333B21; }
    20.833333%, 23.611111% { stop-color: #413919; }
    25.000000%, 27.777778% { stop-color: #40321C; }
    29.166667%, 31.944444% { stop-color: #3F232D; }
    33.333333%, 36.111111% { stop-color: #342C4D; }
    37.500000%, 40.277778% { stop-color: #173D4B; }
    41.666667%, 44.444444% { stop-color: #153D3A; }
    45.833333%, 48.611111% { stop-color: #153E2D; }
    50.000000%, 52.777778% { stop-color: #353E1B; }
    54.166667%, 56.944444% { stop-color: #3E361E; }
    58.333333%, 61.111111% { stop-color: #402D1D; }
    62.500000%, 65.277778% { stop-color: #3F2436; }
    66.666667%, 69.444444% { stop-color: #272C4A; }
    70.833333%, 73.611111% { stop-color: #14374B; }
    75.000000%, 77.777778% { stop-color: #1B3F39; }
    79.166667%, 81.944444% { stop-color: #1F4700; }
    83.333333%, 86.111111% { stop-color: #3E3A1B; }
    87.500000%, 90.277778% { stop-color: #42331A; }
    91.666667%, 94.444444% { stop-color: #412823; }
    95.833333%, 98.611111% { stop-color: #3C2541; }
    100% { stop-color: #30254A; }
}
@keyframes news-theme-end {
    0.000000%, 2.777778% { stop-color: #5F3F82; }
    4.166667%, 6.944444% { stop-color: #1B5784; }
    8.333333%, 11.111111% { stop-color: #196B76; }
    12.500000%, 15.277778% { stop-color: #2C6A4A; }
    16.666667%, 19.444444% { stop-color: #596832; }
    20.833333%, 23.611111% { stop-color: #786421; }
    25.000000%, 27.777778% { stop-color: #7D5A25; }
    29.166667%, 31.944444% { stop-color: #78384B; }
    33.333333%, 36.111111% { stop-color: #5F4D82; }
    37.500000%, 40.277778% { stop-color: #2B6581; }
    41.666667%, 44.444444% { stop-color: #206E64; }
    45.833333%, 48.611111% { stop-color: #1A6E47; }
    50.000000%, 52.777778% { stop-color: #616A28; }
    54.166667%, 56.944444% { stop-color: #725D2A; }
    58.333333%, 61.111111% { stop-color: #7F4F24; }
    62.500000%, 65.277778% { stop-color: #773C58; }
    66.666667%, 69.444444% { stop-color: #455089; }
    70.833333%, 73.611111% { stop-color: #1D6681; }
    75.000000%, 77.777778% { stop-color: #346959; }
    79.166667%, 81.944444% { stop-color: #446C25; }
    83.333333%, 86.111111% { stop-color: #706725; }
    87.500000%, 90.277778% { stop-color: #7F5C24; }
    91.666667%, 94.444444% { stop-color: #7D4539; }
    95.833333%, 98.611111% { stop-color: #6F3F77; }
    100% { stop-color: #5F3F82; }
}
@keyframes news-theme-accent {
    0.000000%, 2.777778% { color: #B68AF7; }
    4.166667%, 6.944444% { color: #39AAFF; }
    8.333333%, 11.111111% { color: #36D7DB; }
    12.500000%, 15.277778% { color: #58D6A0; }
    16.666667%, 19.444444% { color: #BAD775; }
    20.833333%, 23.611111% { color: #FFE45C; }
    25.000000%, 27.777778% { color: #F0BA62; }
    29.166667%, 31.944444% { color: #F26C7C; }
    33.333333%, 36.111111% { color: #C2A4FF; }
    37.500000%, 40.277778% { color: #8ADFFF; }
    41.666667%, 44.444444% { color: #4DD6BF; }
    45.833333%, 48.611111% { color: #39D98A; }
    50.000000%, 52.777778% { color: #D1E66A; }
    54.166667%, 56.944444% { color: #E4C76B; }
    58.333333%, 61.111111% { color: #F4AC63; }
    62.500000%, 65.277778% { color: #F389B6; }
    66.666667%, 69.444444% { color: #98ACFF; }
    70.833333%, 73.611111% { color: #52C7ED; }
    75.000000%, 77.777778% { color: #8BE0BC; }
    79.166667%, 81.944444% { color: #9FE870; }
    83.333333%, 86.111111% { color: #F1ED6A; }
    87.500000%, 90.277778% { color: #FFC55C; }
    91.666667%, 94.444444% { color: #F6957E; }
    95.833333%, 98.611111% { color: #DD91DF; }
    100% { color: #B68AF7; }
}
@keyframes news-theme-focus {
    0.000000%, 2.777778% { outline-color: #B68AF7; }
    4.166667%, 6.944444% { outline-color: #39AAFF; }
    8.333333%, 11.111111% { outline-color: #36D7DB; }
    12.500000%, 15.277778% { outline-color: #58D6A0; }
    16.666667%, 19.444444% { outline-color: #BAD775; }
    20.833333%, 23.611111% { outline-color: #FFE45C; }
    25.000000%, 27.777778% { outline-color: #F0BA62; }
    29.166667%, 31.944444% { outline-color: #F26C7C; }
    33.333333%, 36.111111% { outline-color: #C2A4FF; }
    37.500000%, 40.277778% { outline-color: #8ADFFF; }
    41.666667%, 44.444444% { outline-color: #4DD6BF; }
    45.833333%, 48.611111% { outline-color: #39D98A; }
    50.000000%, 52.777778% { outline-color: #D1E66A; }
    54.166667%, 56.944444% { outline-color: #E4C76B; }
    58.333333%, 61.111111% { outline-color: #F4AC63; }
    62.500000%, 65.277778% { outline-color: #F389B6; }
    66.666667%, 69.444444% { outline-color: #98ACFF; }
    70.833333%, 73.611111% { outline-color: #52C7ED; }
    75.000000%, 77.777778% { outline-color: #8BE0BC; }
    79.166667%, 81.944444% { outline-color: #9FE870; }
    83.333333%, 86.111111% { outline-color: #F1ED6A; }
    87.500000%, 90.277778% { outline-color: #FFC55C; }
    91.666667%, 94.444444% { outline-color: #F6957E; }
    95.833333%, 98.611111% { outline-color: #DD91DF; }
    100% { outline-color: #B68AF7; }
}
@media (prefers-reduced-motion: reduce) {
    .home-news-bg-start, .home-news-bg-end, .home-news-hex-grid, .home-news-hex-layer,
    .home-search-news-controls, #homeSearchNews .home-search-news-controls button { animation: none; }
    .home-news-bg-start { stop-color: #30254A; }
    .home-news-bg-end { stop-color: #5F3F82; }
    .home-news-hex-grid, .home-news-hex-layer, .home-search-news-controls { color: #B68AF7; }
}
/* Apply the dark hero navigation only before the scrolled header takes over. */
body.home-search-news-view .big-header-banner:not(.header-bg) #header .navbar-menu a:not(.dropdown-item),
body.home-search-news-view .big-header-banner:not(.header-bg) #header .navbar-nav > li > a,
body.home-search-news-view .big-header-banner:not(.header-bg) #header .mobile-brand-plan .top-plan-short-link { color: #f2f5f8; }
body.home-search-news-view .big-header-banner:not(.header-bg) #header .header-mini-btn path { stroke: #f2f5f8; }
body.home-search-news-view .big-header-banner:not(.header-bg) #header .mobile-brand-plan .logo-light { display: none !important; }
body.home-search-news-view .big-header-banner:not(.header-bg) #header .mobile-brand-plan .logo-dark { display: inline-block !important; }
.home-search-switcher[data-view="news"] > #search,
.home-search-switcher[data-view="menu"] > .home-search-news { visibility: hidden; opacity: 0; pointer-events: none; }
/* Keep the original menu usable when the news script is still loading or fails. */
.home-search-switcher:not([data-news-ready="true"]) > #search { visibility: visible; opacity: 1; pointer-events: auto; }
.home-search-switcher:not([data-news-ready="true"]) > .home-search-news,
.home-search-switcher:not([data-news-ready="true"]) > .home-search-view-toggle { display: none; }
.home-search-news {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 16px 48px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f2f5f8;
}
.home-search-news-viewport { display: grid; overflow: hidden; min-width: 0; width: 100%; max-width: 800px; margin: 0 auto; touch-action: pan-y pinch-zoom; }
.home-news-carousel-ad {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 90px;
    overflow: hidden;
}
.home-news-carousel-ad .adsbygoogle {
    display: inline-block;
    width: min(728px, 100%);
    height: 90px;
}
.home-search-news-slide { grid-area: 1 / 1; min-width: 0; visibility: hidden; pointer-events: none; }
.home-search-switcher[data-view="news"] .home-search-news-slide.is-active,
.home-search-switcher[data-view="news"] .home-search-news-slide.is-leaving { visibility: visible; }
.home-search-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; font-size: 16px; line-height: 1.6; }
.home-search-news-meta > i { width: 18px; flex: 0 0 18px; text-align: center; }
.home-search-news-meta > .home-search-news-ai-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    background-color: currentColor;
    -webkit-mask: url('../images/logos/si.svg?v=20261031-canva-exact-2') center / contain no-repeat;
    mask: url('../images/logos/si.svg?v=20261031-canva-exact-2') center / contain no-repeat;
}
.home-search-news h2 { margin: 12px 0 0; color: inherit; font-size: 20px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; letter-spacing: 0; }
.home-search-news-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.home-search-news-controls button,
.home-search-view-toggle { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #d4e0dc; background: #fff; color: #303236; cursor: pointer; }
.home-search-news-controls > button { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 4px; font-size: 12px; }
.home-search-news-dots { display: flex; align-items: center; gap: 0; }
.home-search-news-dots button { width: 24px; height: 28px; border: 0; background: transparent; }
.home-search-news-dots button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #b8c0c4; }
.home-search-news-dots button[aria-current="true"]::before { background: #2874a6; }
.home-search-view-toggle { position: absolute; z-index: 2; top: 50%; right: 0; width: 24px; height: 52px; flex-direction: column; padding: 4px 0; border: 0; border-radius: 0; background: #272727; color: #f5f5f5; font-size: 14px; line-height: 20px; box-shadow: none; transform: translateY(-50%); }
.home-search-news-controls button:hover { background: #edf3f1; }
.home-search-news-controls button:focus-visible { outline: 2px solid #2874a6; outline-offset: 2px; }
.home-search-view-toggle:hover,
.home-search-view-toggle:active,
.home-search-view-toggle:focus { background: #272727; color: #f5f5f5; outline: none; box-shadow: none; }
.home-search-view-toggle:focus-visible { outline: 1px solid #f5f5f5; outline-offset: -3px; }
.home-search-news-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.io-black-mode .home-search-news { background: transparent; color: #f2f5f8; }
body.io-black-mode .home-search-news-controls > button { border-color: #405156; background: #242628; color: #f4f8f6; }
body.io-black-mode .home-search-view-toggle { border: 0; background: #272727; color: #f5f5f5; }
body.io-black-mode .home-search-news-controls button:hover { background: #343a3d; }
body.io-black-mode .home-search-news-dots button[aria-current="true"]::before { background: #83bbdf; }
@media (min-width: 992px) {
    .home-search-news-meta { font-size: 16px; }
    .home-search-news h2 { margin-top: 20px; }
    .home-search-view-toggle { top: calc(50% - 15px); }
}
@media (min-width: 768px) {
    .home-search-news-controls { transform: translateY(var(--home-news-controls-offset, 0px)); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .home-search-news h2 { margin-top: 20px; }
}
@media (max-width: 640px) {
    .home-search-news { padding: 10.67px 48px 10.67px 16px; }
    .home-search-news h2 { font-size: 18px; }
}
@media (min-width: 500px) and (max-width: 799.98px) {
    .home-news-carousel-ad { min-height: 60px; }
    .home-news-carousel-ad .adsbygoogle { width: min(468px, 100%); height: 60px; }
}
@media (max-width: 499.98px) {
    .home-news-carousel-ad { min-height: 100px; }
    .home-news-carousel-ad .adsbygoogle { width: min(320px, 100%); height: 100px; }
}
@media (max-width: 991.98px) {
    /* Move the former outer margin inside the panels; keep the toggle flush. */
    .home-search-news { padding-left: 63px; padding-right: 63px; }
    .header-big .home-search-switcher > #search { box-sizing: border-box; padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 640px) {
    .home-search-news { padding-left: 31px; }
}
@media (max-width: 767.98px) {
    /* Restore the original mobile menu flow without the hidden news row height. */
    .home-search-switcher[data-view="menu"] > .home-search-news { display: none; }
    .home-search-switcher[data-view="menu"] > #search { align-self: start; }
    #homeSearchSwitcher #search-list-menu { min-height: 61px; }
    .home-search-view-toggle { top: calc(50% - 50px); height: 46px; padding: 2px 0; }
    .home-search-switcher[data-view="news"] > .home-search-view-toggle { top: var(--home-menu-toggle-top, calc(50% - 50px)); }
    .home-search-switcher[data-view="menu"] > .home-search-view-toggle { top: var(--home-news-toggle-top, calc(50% - 43px)); }
    #search-bg.mobile-height-synced { box-sizing: border-box; min-height: var(--home-news-min-height, 0px); }
    .mobile-height-synced .home-search-switcher[data-view="menu"] > #search { transform: translateY(var(--home-menu-offset, 0px)); }
    #search-bg.mobile-news-centered {
        box-sizing: border-box;
        padding-top: var(--home-news-header-height, 74px);
        padding-bottom: 0;
        min-height: var(--home-news-min-height, 0px);
    }
    .mobile-news-centered .home-search-switcher {
        min-height: max(0px, calc(var(--home-news-min-height, 0px) - var(--home-news-header-height, 74px)));
    }
    .mobile-news-centered .home-search-switcher[data-view="news"] > #search { display: none; }
    /* The existing banner starts 1px above the document origin. */
    .mobile-news-centered .home-search-news { padding: 13px 20px; gap: 14px; }
    .mobile-news-centered .home-search-news-meta { justify-content: center; gap: 6px; font-size: 15px; line-height: 1.5; }
    .mobile-news-centered .home-search-news-source {
        max-width: calc(100% - 22px - 2em - 10ch - 18px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .mobile-news-centered .home-search-news-viewport,
    .mobile-news-centered .home-search-news-controls { position: relative; top: -20px; }
    /* Reveal the shifted title's last line without moving adjacent content. */
    .mobile-news-centered .home-search-news-viewport { padding-bottom: 10px; margin-bottom: -10px; }
    .mobile-news-centered .home-search-news h2 {
        position: relative;
        top: 10px;
        margin-top: 8px;
        margin-left: 5px;
        margin-right: 5px;
        text-align: justify;
        text-align-last: start;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.5;
        /* A shared four-line slot keeps the carousel controls from jumping. */
        height: 6em;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }
    .mobile-news-centered .home-search-news-controls { top: 0; }
    .mobile-news-centered .home-search-news-controls > button { width: 28px; height: 28px; flex-basis: 28px; font-size: 10px; }
    .mobile-news-centered .home-search-news-dots button::before { width: 5px; height: 5px; }
}

@media (max-width: 499.98px) {
    .mobile-news-centered .home-search-news { gap: 15px; transform: translateY(-5px); }
    .mobile-news-centered .home-search-news-viewport {
        position: static;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .mobile-news-centered .home-search-news h2 {
        position: static;
        margin-top: 15px;
        /* Reserve three lines so changing headlines does not move the ad. */
        height: 4.5em;
        -webkit-line-clamp: 3;
    }
    .mobile-news-centered .home-news-carousel-ad { margin-top: 0; }
}

.home-search-news-meta { color: #E0E7EE; }
#homeSearchNews .home-search-news-controls > button { background: #0b1724b3; border-color: #657d8c; color: #f2f5f8; }
#homeSearchNews .home-search-news-controls > button:hover { background: #1a3445; }
#homeSearchNews .home-search-news-controls button:focus-visible { outline-color: #B68AF7; }
#homeSearchNews .home-search-news-dots button::before { background: #7a94a4; }
#homeSearchNews .home-search-news-dots button { color: inherit; }
#homeSearchNews .home-search-news-dots button[aria-current="true"]::before { background: currentColor; }

/* Date stays visually identical to the original metadata text. */
#homeSearchNews .home-news-date {
    all: unset;
    font: inherit;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
#homeSearchNews .home-news-date:focus { outline: none; box-shadow: none; }
#homeSearchNews .home-news-date:focus-visible { outline: 1px solid #91999f; outline-offset: 2px; }
.home-news-history {
    position: fixed;
    z-index: 1200;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border: 1px solid #d4dadd;
    border-radius: 6px;
    background: #fff;
    color: #343a40;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    scrollbar-width: thin;
}
.home-news-history[hidden] { display: none; }
.home-news-history:focus { outline: none; }
.home-news-history p { margin: 4px 8px 8px; font-size: 13px; line-height: 1.5; color: #6c757d; }
.home-news-history button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.home-news-history button:hover, .home-news-history button[aria-current="date"] { background: #edf0f2; }
.home-news-history button:focus { outline: none; box-shadow: none; }
.home-news-history button:focus-visible { outline: 1px solid #91999f; outline-offset: -2px; }
html[data-theme="dark"] .home-news-history { background: #26292c; border-color: #454b50; color: #e0e4e7; }
html[data-theme="dark"] .home-news-history p { color: #aeb8c0; }
html[data-theme="dark"] .home-news-history button:hover,
html[data-theme="dark"] .home-news-history button[aria-current="date"] { background: #363c41; }
