/* Home-only compact controls; every popover uses the same NEWWWZ visual language. */
:root{--home-pop-bg:#fff;--home-pop-text:#17131d;--home-pop-muted:#756d7f;--home-pop-line:#ddd9e5;--home-pop-hover:#eee4ff;--home-violet:#8b4dff;--home-pop-shadow:0 16px 44px rgba(18,10,28,.20)}
html[data-theme="dark"]{--home-pop-bg:#11151d;--home-pop-text:#f3f0f7;--home-pop-muted:#aaa3b5;--home-pop-line:#3d414d;--home-pop-hover:#2b2140;--home-pop-shadow:0 18px 50px rgba(0,0,0,.52)}
html[data-theme] .nw-topbar.nw-home-header{inset:8px 16px auto!important;height:52px!important;padding:7px 22px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;border:1px solid transparent!important;border-radius:10px!important;background:linear-gradient(#090c12,#090c12) padding-box,linear-gradient(110deg,#00cfff,#9361ff,#f329d8) border-box!important;color:#fff!important;box-shadow:0 5px 16px #0002!important;font-family:var(--ui-font)!important}
.nw-home-header *{box-sizing:border-box;font-family:var(--ui-font)!important}
.nw-home-header .home-edition-control,.nw-home-header .home-language-control{flex-shrink:0}
html[data-theme] .nw-home-header :is(.nw-chip,.nw-edition-chip,#account-link,#alert-mode-toggle,#saved-mode-toggle,#nw-date-prev,#nw-date-next,#nw-date-open){height:34px!important;width:auto!important;min-width:0!important;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;padding:4px 9px!important;color:#eeeef5!important;background:transparent!important;border:1px solid rgba(220,224,235,.24)!important;box-shadow:none!important;border-radius:9px!important;font:500 11px/1 var(--ui-font)!important;letter-spacing:.3px!important;white-space:nowrap;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease!important}
html[data-theme] .nw-home-header :is(.nw-chip,.nw-edition-chip,#account-link,#alert-mode-toggle,#saved-mode-toggle):is(:hover,.is-open,[aria-expanded="true"]){border-color:rgba(151,79,255,.72)!important;background:rgba(255,255,255,.055)!important;box-shadow:0 0 0 1px rgba(151,79,255,.10),0 0 12px rgba(151,79,255,.16)!important}
html[data-theme] .nw-home-header #nw-edition-toggle{padding:5px 10px!important}
html[data-theme] .nw-home-header .nw-edition-copy{font:inherit!important;color:inherit!important;letter-spacing:inherit!important}
.nw-home-header :is(.home-location-icon,.home-language-icon){width:17px;height:17px;flex-shrink:0}
.nw-home-header #nw-clock{font-variant-numeric:tabular-nums;min-width:142px!important}
.nw-home-header #nw-clock:before{content:'';width:6px;height:6px;border-radius:50%;background:#24d890}
.nw-home-header #nw-clock:after{content:'⌄';font-size:12px;margin-left:1px;transition:transform .18s ease}.nw-home-header #nw-clock[aria-expanded="true"]:after{transform:rotate(180deg)}
.nw-home-header .home-date-control,.nw-home-header .home-date-field{display:flex;align-items:center;gap:5px}
.nw-home-header .home-date-control{height:36px;padding:0 2px;gap:0;border:1px solid rgba(220,224,235,.24);border-radius:10px;transition:border-color .18s ease,box-shadow .18s ease}.nw-home-header .home-date-control:hover,.nw-home-header .home-date-control:has([aria-expanded="true"]){border-color:rgba(151,79,255,.72);box-shadow:0 0 12px rgba(151,79,255,.16)}
.nw-home-header .home-date-field{height:100%;padding:0 7px;border-left:1px solid #ffffff1f;border-right:1px solid #ffffff1f;cursor:pointer}
html[data-theme] .nw-home-header #date-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.nw-home-header .home-date-display{width:102px;text-align:center;color:#eeeef5;font:500 11px/1 var(--ui-font);font-variant-numeric:tabular-nums;white-space:nowrap}
.nw-home-header #date-input::-webkit-calendar-picker-indicator{display:none}
.nw-home-header .home-date-chevron{font-size:14px;cursor:pointer;color:#eee;transition:transform .18s ease}.nw-home-header .home-date-field.is-open .home-date-chevron{transform:rotate(180deg)}
.nw-home-header .nw-date-drop{display:none}
.nw-home-header #nw-date-prev,.nw-home-header #nw-date-next{height:30px!important;border:0!important;border-radius:7px!important;font-size:19px!important}.nw-home-header #nw-date-prev:hover,.nw-home-header #nw-date-next:hover{background:rgba(139,77,255,.19)!important;color:#cdb8ff!important}
html[data-theme] .nw-home-header .home-control-label{font:500 11px/1 var(--ui-font)!important;letter-spacing:.3px!important}
.nw-home-header :is(#account-link,#alert-mode-toggle,#saved-mode-toggle) svg{width:18px;height:18px;stroke:currentColor!important;flex-shrink:0}
.nw-home-header .home-header-menu{display:none;color:#fff;background:none;border:0;font-size:20px}
.nw-home-header :is(button,[role=button],a):focus-visible{outline:2px solid #b693ff!important;outline-offset:2px}
.nw-home-header img[hidden]{display:none!important}
.nw-home-header .nw-theme-toggle{width:72px !important;min-width:72px !important;height:36px !important;margin-left:-8px !important;border-radius:999px !important;border:1px solid rgba(210,220,240,.34) !important;background:#080b10 !important;position:relative !important;padding:0 !important;overflow:hidden !important;justify-self:start !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 0 20px rgba(139,77,255,.16) !important}
.nw-home-header .nw-theme-toggle:hover{border-color:rgba(139,77,255,.75) !important;box-shadow:0 0 18px rgba(139,77,255,.36),0 0 34px rgba(0,200,255,.16) !important}
.nw-home-header .nw-theme-knob{position:absolute !important;top:3px !important;left:3px !important;width:28px !important;height:28px !important;border-radius:50% !important;background:#fff !important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease !important;z-index:1 !important;box-shadow:0 0 14px rgba(255,255,255,.35) !important}
.nw-home-header .nw-theme-toggle:hover .nw-theme-knob{box-shadow:0 0 16px rgba(255,255,255,.62),0 0 28px rgba(139,77,255,.42) !important}
.nw-home-header .nw-theme-ico{position:absolute !important;top:50% !important;transform:translateY(-50%) !important;z-index:2 !important;font-size:19px !important;line-height:1 !important}
.nw-home-header .nw-theme-ico--sun{left:10px !important;color:#000 !important}
.nw-home-header .nw-theme-ico--moon{right:10px !important;color:#fff !important}
html[data-theme="dark"] .nw-home-header .nw-theme-knob{transform:translateX(36px) !important;background:#8b4dff !important;box-shadow:0 0 18px rgba(139,77,255,.85) !important}
html[data-theme="dark"] .nw-home-header .nw-theme-toggle{background:#f7f7fb!important;border-color:#ffffff88!important}

html[data-theme] .nw-home-header #nw-theme-toggle{display:block!important;flex-shrink:0;width:72px!important;min-width:72px!important;margin:0!important}
html[data-theme] .nw-home-header .nw-theme-ico{background:none!important;width:auto!important;height:auto!important;display:block!important;border-radius:0!important;opacity:1!important}
html[data-theme="light"] .nw-home-header .nw-theme-knob{transform:translateX(0)!important}
html[data-theme] .nw-home-header .nw-theme-ico--sun{color:#000!important}
html[data-theme] .nw-home-header .nw-theme-ico--moon{color:#fff!important}

.nw-home-header #nw-edition-panel,.nw-home-header #nw-lang-panel{position:fixed!important;transform:none!important;width:230px!important;min-width:0!important;padding:10px!important;border:1px solid var(--home-pop-line)!important;border-radius:14px!important;background:var(--home-pop-bg)!important;color:var(--home-pop-text)!important;box-shadow:var(--home-pop-shadow)!important;overflow:visible!important}
.nw-home-header .country-section-title{color:#777080!important;font-size:10px!important;letter-spacing:1.5px;padding:10px!important}
.nw-home-header #nw-edition-panel .edition-group-head{display:flex!important;align-items:center;gap:12px!important;padding:9px 10px!important;min-height:48px;border:0!important;border-radius:10px!important;background:var(--home-pop-bg)!important;color:var(--home-pop-text)!important}
.nw-home-header .edition-group-name{flex:1;font-size:11px!important;letter-spacing:1px}
.nw-home-header #nw-edition-panel .home-active-group>.edition-group-head{background:#7945c7!important;color:white!important}
.nw-home-header .home-continent{width:30px;height:30px;object-fit:contain;mix-blend-mode:multiply}
.nw-home-header .home-active-group>.edition-group-head .home-continent{filter:invert(1);mix-blend-mode:screen}
.nw-home-header #nw-edition-panel .edition-flyout{display:none!important;position:fixed!important;transform:none!important;width:300px!important;min-width:0!important;padding:10px 14px 10px 10px!important;margin:0!important;border:1px solid var(--home-pop-line)!important;border-radius:14px!important;overflow-y:scroll!important;scrollbar-gutter:stable;background:var(--home-pop-bg)!important;color:var(--home-pop-text)!important;box-shadow:var(--home-pop-shadow)!important;scrollbar-width:thin;scrollbar-color:var(--home-violet) color-mix(in srgb,var(--home-pop-line) 55%,transparent)}
.nw-home-header #nw-edition-panel .edition-flyout::-webkit-scrollbar,.home-option-list::-webkit-scrollbar,.home-choice-menu::-webkit-scrollbar{width:7px}.nw-home-header #nw-edition-panel .edition-flyout::-webkit-scrollbar-track,.home-option-list::-webkit-scrollbar-track,.home-choice-menu::-webkit-scrollbar-track{background:color-mix(in srgb,var(--home-pop-line) 55%,transparent);border-radius:999px}.nw-home-header #nw-edition-panel .edition-flyout::-webkit-scrollbar-thumb,.home-option-list::-webkit-scrollbar-thumb,.home-choice-menu::-webkit-scrollbar-thumb{background:var(--home-violet);border-radius:999px}
.nw-home-header #nw-edition-panel .home-active-group>.edition-flyout{display:block!important}
.nw-home-header #nw-edition-panel .country-row,.nw-home-header #nw-lang-panel .country-row{display:grid!important;grid-template-columns:24px 36px 1fr 12px!important;align-items:center;gap:9px!important;min-height:40px!important;padding:8px!important;border-radius:8px!important;background:var(--home-pop-bg)!important;color:var(--home-pop-text)!important;cursor:pointer}
.nw-home-header #nw-edition-panel .country-row[data-edition=WORLD]{grid-template-columns:24px 48px 1fr 12px!important}
.nw-home-header .country-name{font-size:11px!important;color:inherit!important;white-space:normal!important}
.nw-home-header .country-code{font-size:11px!important;color:inherit!important}
.nw-home-header #nw-edition-panel .country-row:hover,.nw-home-header #nw-lang-panel .country-row:hover,.nw-home-header #nw-edition-panel .home-selected-edition,.nw-home-header #nw-lang-panel .home-selected-language{background:#eee4ff!important;color:#60329b!important}
.nw-home-header .home-circular-flag{width:24px;height:24px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px #0001}
.nw-home-header .home-world-symbol{font-size:26px;line-height:24px}
.nw-home-header img[hidden]{display:none!important}
.nw-home-header .home-edition-check{color:#7945c7;font-weight:bold}

@media(max-width:1150px){.nw-home-header .home-control-label{display:none!important}html[data-theme] .nw-topbar.nw-home-header{gap:10px!important;padding:7px 12px!important}.nw-home-header .home-date-control{padding:0 10px}}
@media(max-width:1050px){.nw-home-header .home-secondary,html[data-theme] .nw-home-header:not(.home-menu-open) :is(#nw-clock,#nw-theme-toggle,#alert-mode-toggle,#saved-mode-toggle){display:none!important}.nw-home-header .home-header-menu{display:block}html[data-theme] .nw-topbar.nw-home-header.home-menu-open{height:auto!important;flex-wrap:wrap}.nw-home-header.home-menu-open .home-secondary{display:inline-flex!important;order:10}.nw-home-header.home-menu-open .home-control-label{display:inline!important}}
@media(max-width:700px){html[data-theme] .nw-topbar.nw-home-header{inset:8px 8px auto!important;gap:6px!important}.nw-home-header .home-date-control{display:none}.nw-home-header.home-menu-open .home-date-control{display:flex;order:9;flex-basis:100%;justify-content:center;border:0}.nw-home-header #nw-edition-panel,.nw-home-header #nw-lang-panel{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 110px)!important;overflow-y:auto!important}.nw-home-header #nw-edition-panel .edition-flyout{position:static!important;width:100%!important;max-height:240px!important;box-shadow:none!important;margin:5px 0!important}}
.nw-shared-popover{position:fixed;z-index:300000;padding:12px;border:1px solid var(--home-pop-line);border-radius:14px;background:var(--home-pop-bg);color:var(--home-pop-text);box-shadow:var(--home-pop-shadow);font:11px var(--ui-font);animation:homePopoverIn .16s ease both}
.nw-shared-popover[hidden],.home-choice-menu[hidden]{display:none!important}.nw-shared-popover *{box-sizing:border-box;font-family:var(--ui-font)}
@keyframes homePopoverIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.home-popover-title{padding:3px 4px 10px;color:var(--home-pop-muted);font-size:10px;font-weight:800;letter-spacing:.14em}
.home-popover-search{width:100%;height:34px;margin-bottom:8px;padding:0 10px;border:1px solid var(--home-pop-line);border-radius:9px;outline:0;background:color-mix(in srgb,var(--home-pop-bg) 92%,var(--home-violet));color:var(--home-pop-text);font-size:11px}.home-popover-search:focus{border-color:var(--home-violet);box-shadow:0 0 0 2px rgba(139,77,255,.15)}
.home-option-list{max-height:292px;overflow-y:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:var(--home-violet) transparent}
.nw-shared-option{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 9px;border:0;border-radius:8px;background:transparent;color:var(--home-pop-text);text-align:left;text-decoration:none;cursor:pointer;font:600 11px/1.15 var(--ui-font);transition:background .15s ease,color .15s ease}.nw-shared-option:hover,.nw-shared-option:focus-visible,.nw-shared-option[aria-selected="true"]{outline:0;background:var(--home-pop-hover);color:#7d3de0}.nw-shared-option strong,.nw-shared-option small{display:block}.nw-shared-option small{margin-top:4px;color:var(--home-pop-muted);font-size:9px;font-weight:500}.home-option-meta{flex:none;color:var(--home-pop-muted);font-size:9px}
.home-timezone-panel{width:320px}.home-account-panel{width:224px}.home-account-panel .nw-shared-option{min-height:36px}
.home-calendar{width:308px;padding:14px}
.home-calendar-head{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 82px 34px;align-items:center;gap:7px;margin-bottom:12px}
.home-calendar button{color:inherit;cursor:pointer}.home-calendar button:focus-visible{outline:2px solid var(--home-violet);outline-offset:1px}.home-calendar button:disabled{opacity:.25;cursor:default}
.home-calendar-nav{width:34px;height:34px;display:grid;place-items:center;padding:0;border:1px solid var(--home-pop-line);border-radius:9px;background:transparent}.home-calendar-nav:hover{border-color:var(--home-violet);background:var(--home-pop-hover);color:var(--home-violet)}
.home-chevron-icon{width:15px;height:15px;display:inline-grid;place-items:center;flex:none}.home-chevron-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-choice{position:relative;min-width:0}.home-choice-trigger{width:100%;height:34px;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 9px;border:1px solid var(--home-pop-line);border-radius:9px;background:transparent;color:var(--home-pop-text);font-size:11px;text-transform:capitalize}.home-choice-trigger:hover,.home-choice.is-open .home-choice-trigger{border-color:var(--home-violet);background:var(--home-pop-hover);box-shadow:0 0 10px rgba(139,77,255,.12)}.home-choice.is-open .home-choice-trigger .home-chevron-icon{transform:rotate(180deg)}
.home-choice-menu{position:absolute;z-index:4;top:39px;left:0;width:100%;max-height:232px;overflow-y:auto;padding:5px;border:1px solid var(--home-pop-line);border-radius:10px;background:var(--home-pop-bg);box-shadow:var(--home-pop-shadow);scrollbar-width:thin;scrollbar-color:var(--home-violet) transparent}.home-choice--year .home-choice-menu{left:auto;right:0}.home-choice-option{width:100%;height:30px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:var(--home-pop-text);text-align:left;font-size:11px;cursor:pointer}.home-choice-option:hover,.home-choice-option:focus-visible,.home-choice-option[aria-selected="true"]{outline:0;background:var(--home-pop-hover);color:#7d3de0;font-weight:800}
.home-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}.home-calendar-weekday{padding:5px 0;color:var(--home-pop-muted);font-size:9px;font-weight:700}.home-calendar-day{width:34px;height:32px;padding:0;border:0;border-radius:7px;background:transparent;font-size:11px}.home-calendar-day:hover:not(:disabled){background:var(--home-pop-hover);color:var(--home-violet)}.home-calendar-day[aria-pressed="true"]{color:#fff!important;background:var(--home-violet)!important;box-shadow:0 0 0 1px #fff3,0 0 14px rgba(139,77,255,.42)}
html[data-theme="dark"] .nw-home-header .home-continent{filter:invert(1);mix-blend-mode:screen}html[data-theme="dark"] .nw-home-header #nw-edition-panel .country-row:hover,html[data-theme="dark"] .nw-home-header #nw-lang-panel .country-row:hover,html[data-theme="dark"] .nw-home-header #nw-edition-panel .home-selected-edition,html[data-theme="dark"] .nw-home-header #nw-lang-panel .home-selected-language{background:var(--home-pop-hover)!important;color:#c9a8ff!important}
@media(max-width:700px){.nw-shared-popover{max-width:calc(100vw - 16px)}.home-timezone-panel{width:calc(100vw - 16px)}.home-calendar{width:308px}}

/* Final three-zone header: the calendar owns the geometric centre. */
html[data-theme] .nw-topbar.nw-home-header{
  position:fixed!important;top:8px!important;right:16px!important;bottom:auto!important;left:16px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  align-items:center!important;gap:14px!important;padding:7px 18px!important;
}
.nw-home-header .home-header-left,.nw-home-header .home-header-right,.nw-home-header .home-header-actions{display:flex;align-items:center;min-width:0}
.nw-home-header .home-header-left{justify-self:start;gap:10px}
.nw-home-header .home-header-right{justify-self:end;gap:12px}
.nw-home-header .home-header-actions{gap:7px;padding-left:12px;border-left:1px solid rgba(220,224,235,.24)}
.nw-home-header .home-date-control{justify-self:center;width:238px;height:38px;display:grid;grid-template-columns:34px 154px 34px;align-items:center;gap:4px;padding:2px 4px}
.nw-home-header .home-date-field{width:154px;min-width:0;height:32px;display:grid;grid-template-columns:20px minmax(0,1fr) 14px;align-items:center;gap:4px;padding:0 6px}
html[data-theme] .nw-home-header #nw-date-open{width:20px!important;height:28px!important;padding:0!important;border:0!important}
.nw-home-header .home-date-display{width:auto;min-width:0;text-align:center}
.nw-home-header #nw-date-prev,.nw-home-header #nw-date-next{width:30px!important;min-width:30px!important;height:30px!important;padding:0!important}
.nw-home-header .home-date-nav-icon{width:16px;height:16px;display:block;stroke-width:2.1}
.nw-home-header #nw-date-prev:disabled,.nw-home-header #nw-date-next:disabled{opacity:.42!important}
.nw-home-header .edition-group-name::after{content:attr(data-count);float:right;margin-left:8px;color:var(--home-pop-muted);font-size:8px;font-weight:600;letter-spacing:0}
.nw-home-header #nw-edition-panel .edition-flyout .country-row{display:grid!important;visibility:visible!important}

/* Dark mode deliberately reverses the bar while its popovers stay dark. */
html[data-theme="dark"] .nw-topbar.nw-home-header{background:linear-gradient(#f4f5f8,#f4f5f8) padding-box,linear-gradient(110deg,#00cfff,#9361ff,#f329d8) border-box!important;color:#11141b!important;box-shadow:0 5px 18px #0006!important}
html[data-theme="dark"] .nw-home-header :is(.nw-chip,.nw-edition-chip,#account-link,#alert-mode-toggle,#saved-mode-toggle,#nw-date-prev,#nw-date-next,#nw-date-open){color:#11141b!important;border-color:rgba(17,20,27,.23)!important}
html[data-theme="dark"] .nw-home-header :is(.nw-chip,.nw-edition-chip,#account-link,#alert-mode-toggle,#saved-mode-toggle):is(:hover,.is-open,[aria-expanded="true"]){background:rgba(139,77,255,.09)!important}
html[data-theme="dark"] .nw-home-header .home-date-control{border-color:rgba(17,20,27,.23)}
html[data-theme="dark"] .nw-home-header .home-date-field{border-color:rgba(17,20,27,.16)}
html[data-theme="dark"] .nw-home-header :is(.home-date-display,.home-date-chevron,.home-header-menu){color:#11141b!important}
html[data-theme="dark"] .nw-home-header .home-header-actions{border-color:rgba(17,20,27,.2)}
html[data-theme="dark"] .nw-home-header .nw-theme-toggle{background:#e7e8ed!important;border-color:#b8bcc7!important}

@media(max-width:1150px){
  html[data-theme] .nw-topbar.nw-home-header{gap:8px!important;padding:7px 10px!important}
  .nw-home-header .home-header-left,.nw-home-header .home-header-right{gap:7px}
  .nw-home-header .home-header-actions{gap:3px;padding-left:7px}
  .nw-home-header #nw-clock{min-width:112px!important}
}
@media(max-width:1050px){
  html[data-theme] .nw-topbar.nw-home-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}
  .nw-home-header .home-header-menu{display:block}
  .nw-home-header.home-menu-open .home-header-left,.nw-home-header.home-menu-open .home-header-right{flex-wrap:wrap}
}
@media(max-width:700px){
  html[data-theme] .nw-topbar.nw-home-header{right:8px!important;left:8px!important;grid-template-columns:1fr auto!important}
  .nw-home-header .home-header-right{grid-column:2}.nw-home-header .home-header-left{grid-column:1}
  .nw-home-header .home-date-control{display:none}.nw-home-header.home-menu-open .home-date-control{display:grid;grid-column:1/-1;grid-row:2;width:238px;justify-self:center}
}

/* The modules strip follows the page palette in dark mode. */
html[data-theme="dark"] .nw-module-bar{background:rgba(16,19,27,.94)!important;color:#f5f5f7!important;border-color:rgba(255,255,255,.14)!important;box-shadow:0 10px 28px #0007,inset 0 1px 0 rgba(255,255,255,.07)!important}
html[data-theme="dark"] .nw-module-card{color:#f5f5f7!important;border-right-color:rgba(255,255,255,.12)!important}
html[data-theme="dark"] .nw-module-card :is(.nw-module-main,.nw-module-icon,.nw-module-copy){color:inherit!important}
html[data-theme="dark"] .nw-module-drop{color:#f5f5f7!important;border-color:rgba(255,255,255,.24)!important;background:#151923!important}
html[data-theme="dark"] .nw-module-card:is(:hover,.is-active,.is-open){color:#c7a6ff!important;background:rgba(139,77,255,.13)!important}

/* Dark header controls use the same violet as the shared dropdown system. */
html[data-theme="dark"] .nw-home-header :is(#nw-edition-toggle,#nw-lang-toggle,#nw-clock,#alert-mode-toggle,#saved-mode-toggle,#account-link){background:#7440c4!important;color:#fff!important;border-color:#9d72df!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16)!important}
html[data-theme="dark"] .nw-home-header :is(#nw-edition-toggle,#nw-lang-toggle,#nw-clock,#alert-mode-toggle,#saved-mode-toggle,#account-link):is(:hover,.is-open,[aria-expanded="true"]){background:#8650d6!important;color:#fff!important;border-color:#b58ef1!important;box-shadow:0 0 14px rgba(139,77,255,.3),inset 0 1px 0 rgba(255,255,255,.18)!important}

/* Compact date selector: filled side triangles and one centred date box. */
.nw-home-header .home-date-control{width:224px;grid-template-columns:28px 160px 28px;gap:4px;padding:0;border:0;box-shadow:none}
.nw-home-header .home-date-control:hover,.nw-home-header .home-date-control:has([aria-expanded="true"]){border:0;box-shadow:none}
.nw-home-header .home-date-field{width:160px;height:34px;display:grid;grid-template-columns:minmax(0,1fr) 16px;gap:2px;padding:0 8px 0 12px;border:1px solid rgba(220,224,235,.28)!important;border-radius:9px;cursor:pointer}
.nw-home-header .home-date-display{font-weight:650;letter-spacing:.25px}
html[data-theme] .nw-home-header #nw-date-open{width:16px!important;min-width:16px!important;height:24px!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important}
.nw-home-header .home-date-nav-icon{width:13px;height:13px;fill:currentColor;stroke:none}
.nw-home-header .home-date-drop-icon{width:10px;height:10px;fill:currentColor;stroke:none;transition:transform .16s ease}
.nw-home-header .home-date-field.is-open .home-date-drop-icon{transform:rotate(180deg)}
html[data-theme] .nw-home-header :is(#nw-date-prev,#nw-date-next){width:28px!important;min-width:28px!important;height:28px!important;padding:0!important;border:0!important;background:transparent!important;border-radius:7px!important;color:inherit!important;box-shadow:none!important}
.nw-home-header #nw-date-prev:hover,.nw-home-header #nw-date-next:hover{background:rgba(139,77,255,.18)!important;color:#a875ff!important}
html[data-theme="dark"] .nw-home-header .home-date-field{background:#7440c4!important;color:#fff!important;border-color:#9d72df!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16)!important}
html[data-theme="dark"] .nw-home-header .home-date-display{color:#fff!important}
html[data-theme="dark"] .nw-home-header :is(#nw-date-prev,#nw-date-next){color:#7440c4!important}
html[data-theme="dark"] .nw-home-header :is(#nw-date-prev,#nw-date-next):hover{background:#7440c4!important;color:#fff!important}

/* Desktop edition flyouts show every country at once; Europe is 18 rows over two columns. */
@media(min-width:701px){
  .nw-home-header #nw-edition-panel .edition-flyout{width:480px!important;max-height:calc(100dvh - 96px)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px 14px!important;overflow:visible!important;padding:10px 14px!important}
  .nw-home-header #nw-edition-panel .home-active-group>.edition-flyout{display:grid!important}
  .nw-home-header #nw-edition-panel .edition-flyout>.country-section-title{grid-column:1/-1}
  .nw-home-header #nw-edition-panel .edition-flyout .country-row{min-height:34px!important;padding:5px 8px!important}
}
@media(max-width:700px){.nw-home-header #nw-edition-panel .edition-flyout{grid-template-columns:1fr!important;overflow-y:auto!important}}

/* The legacy five-city clock stays available in the codebase, but is paused on the homepage. */
html:not(.show-world-time) #nw-world-time,html:not(.show-world-time) #wt-manager,html:not(.show-world-time) #wt-expand{display:none!important}
.home-timezone-option{display:grid!important;grid-template-columns:22px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important}
.home-timezone-flag{width:20px;height:14px;display:block;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(127,127,127,.24)}
.home-timezone-place{min-width:0}.home-timezone-place strong,.home-timezone-place small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-timezone-option:not(:has(.home-timezone-flag)) .home-timezone-place{grid-column:1/3;padding-left:2px}
.home-timezone-option .home-option-meta{font-variant-numeric:tabular-nums;white-space:nowrap}
.home-timezone-explore{height:35px;margin:7px 6px 2px;display:flex;align-items:center;justify-content:center;border:1px solid var(--home-violet);border-radius:8px;color:var(--home-violet);font-size:9px;font-weight:900;letter-spacing:.08em;text-decoration:none}.home-timezone-explore:hover,.home-timezone-explore:focus-visible{background:var(--home-pop-hover);box-shadow:0 0 12px rgba(139,77,255,.18)}

/* Dark header: black controls and bar; violet is reserved for the moon. */
html[data-theme="dark"] .nw-topbar.nw-home-header{background:linear-gradient(#090c12,#090c12) padding-box,linear-gradient(110deg,#00cfff,#9361ff,#f329d8) border-box!important;color:#f5f5f7!important}
html[data-theme="dark"] .nw-home-header :is(#nw-edition-toggle,#nw-lang-toggle,#nw-clock,#alert-mode-toggle,#saved-mode-toggle,#account-link){background:#090c12!important;color:#f5f5f7!important;border-color:rgba(220,224,235,.27)!important;box-shadow:none!important}
html[data-theme="dark"] .nw-home-header :is(#nw-edition-toggle,#nw-lang-toggle,#nw-clock,#alert-mode-toggle,#saved-mode-toggle,#account-link):is(:hover,.is-open,[aria-expanded="true"]){background:#111620!important;color:#fff!important;border-color:rgba(220,224,235,.48)!important;box-shadow:none!important}
html[data-theme="dark"] .nw-home-header .home-date-field{background:#090c12!important;color:#fff!important;border-color:rgba(220,224,235,.27)!important;box-shadow:none!important}
html[data-theme="dark"] .nw-home-header :is(.home-date-display,.home-date-chevron,.home-header-menu,#nw-date-prev,#nw-date-next){color:#f5f5f7!important}
html[data-theme="dark"] .nw-home-header :is(#nw-date-prev,#nw-date-next):hover{background:#171d29!important;color:#fff!important}
html[data-theme="dark"] .nw-home-header .home-header-actions{border-color:rgba(255,255,255,.2)}
html[data-theme="dark"] .nw-home-header .nw-theme-toggle{background:#090c12!important;border-color:rgba(220,224,235,.27)!important}
html[data-theme="dark"] .nw-home-header .nw-theme-ico--moon{color:#a875ff!important;filter:drop-shadow(0 0 6px rgba(139,77,255,.7))}
