/* Shared header design system. Clock, schedule and account behavior live in JS. */
html[data-theme] body .pc-show-header {
  --head-bg:#041121; --head-input:#051526; --head-primary:#f3f6fc;
  --head-secondary:#a9b9ce; --head-label:#8da8c8; --head-accent:#2784f5;
  --head-line:#243c55; --head-hover:#10243b; --head-alert:#df4052;
  --sd-panel:var(--head-bg); --sd-text:var(--head-primary); --sd-muted:var(--head-secondary);
  --sd-faint:var(--head-label); --sd-border:var(--head-line); --sd-soft:var(--head-hover);
  --pc-text:var(--head-primary);
  box-sizing:border-box; position:sticky; top:0; z-index:12; display:grid;
  grid-template-columns:minmax(160px,1fr) 184px 144px 232px 168px 240px;
  align-items:center; gap:0; min-height:94px; height:94px; margin:0; padding:16px;
  background:var(--head-bg); color:var(--head-primary); color-scheme:dark;
  border:0; border-bottom:1px solid var(--head-line); border-radius:0; box-shadow:none;
  font:400 12px/16px "Segoe UI",Arial,sans-serif; letter-spacing:normal;
}
html[data-theme=light] body .pc-show-header {
  --head-bg:#f8fbff; --head-input:#fff; --head-primary:#172740;
  --head-secondary:#506580; --head-label:#526d8e; --head-accent:#176cdf;
  --head-line:#d3dfed; --head-hover:#eaf1fc; --head-alert:#c62e42; color-scheme:light;
}
html[data-theme] body .pc-show-header * {box-sizing:border-box;font-family:inherit}
html[data-theme] body .pc-show-header [hidden],
html[data-theme] body .pc-show-header :is(.sd-show-identity,#sd-local-zone,#show-status,#sd-show-date){display:none!important}
html[data-theme] body .pc-show-header :is(.header-local,.header-weather-section,.header-stat,.header-utilities){
  position:relative; min-width:0; height:56px; min-height:56px; margin:0; padding:0 16px;
  border:0; border-left:1px solid var(--head-line); background:none; border-radius:0; box-shadow:none;
}
html[data-theme] body .pc-show-header :is(.header-stat,.header-weather-section){
  display:grid;grid-template-rows:12px 24px 12px;row-gap:4px;align-content:start;align-items:start;justify-content:initial;
}
/* The local clock and forecast buttons keep their original popovers. */
html[data-theme] body .pc-show-header .header-local{display:grid;grid-template-rows:40px 12px;gap:4px}
html[data-theme] body .pc-show-header .header-local .header-stat{display:block;height:40px;min-height:40px;border:0;padding:0}
html[data-theme] body .pc-show-header .panelist-time-trigger{
  display:grid;grid-template-rows:12px 24px;gap:4px;height:40px;width:100%;padding:0;margin:0;
  border:0;background:none;text-align:left;cursor:pointer;color:var(--head-primary);
}
html[data-theme] body .pc-show-header :is(.header-stat>small,#header-local-date,.header-weather-title){
  display:block;font-size:9px;line-height:12px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--head-label);margin:0;white-space:nowrap;
}
html[data-theme] body .pc-show-header .youtube-live-button{
  display:inline-flex;align-items:center;margin-left:5px;padding:1px 6px;border-radius:4px;
  background:#e1192d;color:#fff;text-decoration:none;font-size:8px;line-height:12px;
  font-weight:800;letter-spacing:.06em;box-shadow:0 0 0 1px #ff5364 inset,0 0 12px #e1192d66;
}
html[data-theme] body .pc-show-header .youtube-live-button:hover{background:#f12a3d;color:#fff}
html[data-theme] body .pc-show-header :is(#local-time,#show-time,#weather-label){
  display:block;font-weight:600;font-size:19px;line-height:24px;letter-spacing:0;color:var(--head-primary);
  font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;
}
html[data-theme] body .pc-show-header #local-time{font-size:21px}
html[data-theme] body .pc-show-header #weather-label{font-size:18px}
html[data-theme] body .pc-show-header :is(#header-weather-city,#header-weather-condition,#header-show-meta){
  display:block;font-size:10px;line-height:12px;font-weight:400;color:var(--head-secondary);
  letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;
}
html[data-theme] body .pc-show-header .header-local-bottom{display:block;min-width:0;margin:0;padding:0}
html[data-theme] body .pc-show-header .header-weather-section{grid-template-rows:12px 40px}
html[data-theme] body .pc-show-header .weather-button{
  display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-end;gap:8px;
  height:40px;max-width:100%;padding:0;margin:0;border:0;background:none;cursor:pointer;
  color:var(--head-primary);font:inherit!important;
}
html[data-theme] body .pc-show-header .header-weather-copy{display:grid;grid-template-rows:24px 12px;gap:4px;min-width:0;align-items:start}
html[data-theme] body .pc-show-header .weather-button svg{width:18px;height:18px;flex-shrink:0;color:var(--head-accent);filter:none;opacity:.85}
.pc-show-header .weather-night-symbol{display:none}
html[data-theme=dark] .pc-show-header .weather-day-symbol{display:none}
html[data-theme=dark] .pc-show-header .weather-night-symbol{display:block}
/* A fixed-width digit strip lines up with the same primary/secondary baselines. */
html[data-theme] body .pc-show-header .header-countdown-line{display:block;grid-row:2/4;margin:0;line-height:24px;min-width:0}
html[data-theme] body .pc-show-header #air-countdown{
  font-size:19px;line-height:24px;font-weight:600;letter-spacing:0;color:var(--head-primary);font-variant-numeric:tabular-nums;
}
html[data-theme] body .pc-show-header #air-countdown.segmented-countdown{display:flex;align-items:start;gap:0}
html[data-theme] body .pc-show-header .count-unit{display:grid;grid-template-rows:24px 12px;row-gap:4px;justify-items:start;width:3ch;min-width:3ch;font:inherit}
html[data-theme] body .pc-show-header .count-unit::after{content:attr(data-unit);display:block;font-size:9px;line-height:12px;letter-spacing:.10em;font-weight:500;text-transform:uppercase;color:var(--head-secondary);margin:0}
html[data-theme] body .pc-show-header .count-colon{width:8px;flex-shrink:0;font-size:16px;line-height:24px;font-weight:400;color:var(--head-secondary);opacity:.65}
html[data-theme] body .pc-show-header #air-countdown::before{display:none}
html[data-theme] body .pc-show-header #air-countdown[data-status=Live]{color:var(--head-alert)}
.pc-show-header #header-live{padding:1px 6px;border-radius:4px;background:#e1192d;color:#fff;font-size:8px;font-weight:800;letter-spacing:.06em;line-height:12px}
/* Search stays directly editable without drawing a field around it. */
html[data-theme] body .pc-show-header .header-search{display:flex;align-items:center;gap:8px;min-width:0;height:40px;margin:0 16px 0 0;padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:text}
html[data-theme] body .pc-show-header .header-search svg{width:16px;height:16px;flex-shrink:0;color:var(--head-secondary)}
html[data-theme] body .pc-show-header .header-search input{min-width:0;width:100%;border:0;outline:0;padding:0;background:none;color:var(--head-primary);font:400 12px/22px "Segoe UI",Arial,sans-serif;box-shadow:none}
html[data-theme] body .pc-show-header .header-search input::placeholder{color:var(--head-secondary);opacity:1}
html[data-theme] body .pc-show-header .header-search:focus-within{border:0;background:transparent}
html[data-theme] body .pc-show-header .header-utilities{display:grid;grid-template-columns:repeat(3,1fr) 52px;gap:8px;align-items:center;padding-right:0}
html[data-theme] body .pc-show-header :is(.header-tool,.header-profile){display:flex;align-items:center;justify-content:center;gap:4px;margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--head-secondary);box-shadow:none;text-decoration:none;cursor:pointer;font:400 10px/12px "Segoe UI",Arial,sans-serif;position:relative}
html[data-theme] body .pc-show-header .header-tool{flex-direction:column;height:48px;gap:8px}
html[data-theme] body .pc-show-header .header-tool svg{width:18px;height:18px;flex-shrink:0}
html[data-theme] body .pc-show-header .header-tool span{font-size:10px;line-height:12px;font-weight:400}
html[data-theme] body .pc-show-header .header-profile{flex-direction:row;height:56px;border-left:1px solid var(--head-line);padding-left:8px}
html[data-theme] body .pc-show-header #header-profile-initials{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border:1px solid var(--head-accent);border-radius:50%;background:none;box-shadow:none;color:var(--head-primary);font-size:14px;line-height:20px;font-weight:500}
.pc-show-header #header-message-count{position:absolute;right:3px;top:0;min-width:14px;padding:0 3px;border-radius:8px;background:var(--head-alert);color:white;font-style:normal;font-size:9px;line-height:14px;text-align:center}
html[data-theme] body .pc-show-header :is(.header-tool,.header-profile):hover{color:var(--head-primary)}
.pc-show-header :is(a,button):focus-visible{outline:2px solid var(--head-accent);outline-offset:3px;border-radius:3px}
/* Original account, forecast and roster interactions. */
.pc-show-header .header-menu{position:absolute;right:16px;top:calc(100% + 8px);width:240px;padding:8px;background:var(--head-bg);color:var(--head-primary);border:1px solid var(--head-line);border-radius:8px;box-shadow:0 8px 24px #0003;z-index:140}
.pc-show-header .header-menu :is(a,button){display:block;text-align:left;width:100%;padding:8px;color:var(--head-primary);background:none;border:0;border-radius:4px;text-decoration:none;cursor:pointer;font:inherit}
.pc-show-header .header-menu :is(a,button):hover{background:var(--head-hover)}
.pc-show-header .header-menu p{font-size:12px;color:var(--head-secondary)}
.sd-show-header .weather-popover,.sd-show-header .panelist-times{position:absolute;top:calc(100% + 8px);right:0;background:var(--sd-panel);color:var(--sd-text);border:1px solid var(--sd-border);border-radius:8px;box-shadow:0 8px 24px #0003;padding:16px;z-index:120;max-height:min(620px,75vh);overflow:auto;text-align:left}
.sd-show-header .weather-popover{display:none}
.sd-show-header .weather-popover{left:0;right:auto;width:min(440px,calc(100vw - 32px))}.sd-show-header .panelist-times{width:320px}
.sd-show-header .weather-wrap:has(.weather-button[aria-expanded=true]):after,.sd-show-header .panelist-time-wrap:has(.panelist-time-trigger[aria-expanded=true]):after{content:'';position:absolute;left:0;right:0;height:8px;top:100%}
.sd-show-header .weather-popover h3{font-size:16px;margin:0 72px 16px 0}.sd-show-header .weather-edit{float:right;font-size:10px;border:0;background:transparent;color:var(--sd-muted);padding:0}
.sd-show-header .weather-popover p{font-size:12px;line-height:1.5;color:var(--sd-muted);margin:12px 0 0}.sd-show-header .weather-popover #weather-note:empty{display:none}
.sd-show-header .weather-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:16px}
.sd-show-header .weather-day{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:12px 4px;background:var(--sd-soft);border-radius:4px;font-size:11px}
.sd-show-header .weather-icon{font-size:26px;height:30px;line-height:30px}.sd-show-header .weather-day .condition{font-size:10px;min-height:26px;line-height:13px}.sd-show-header .weather-day small{font-size:10px;letter-spacing:0;white-space:nowrap}
.sd-show-header .panelist-times>strong{font-size:15px}.sd-show-header .panelist-times p{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;font-size:12px;margin:16px 0 0}.sd-show-header .panelist-times p>span{font-weight:700}.sd-show-header .panelist-times p small{display:block;white-space:normal;letter-spacing:0;font-size:10px;line-height:1.5;font-weight:400;margin-top:4px}.sd-show-header .panelist-times time{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--sd-muted)}
/* Keep the existing continuous logo/header strip and content below it. */
html[data-theme] body .sd-main{padding-top:0}
body.story-desk-page .sd-topbar .sd-utilities{display:none}
@media(min-width:801px){html[data-theme] body.story-desk-page>.sd-main>.pc-show-header{margin-left:-18px;margin-right:-24px;width:calc(100% + 42px)}}
@media(min-width:1700px){html[data-theme] body.story-desk-page>.sd-main>.pc-show-header{margin-left:-28px;margin-right:-30px;width:calc(100% + 58px)}}
@media(min-width:801px) and (max-width:1370px){html[data-theme] body.story-desk-page>.sd-main>.pc-show-header{margin-right:-18px;width:calc(100% + 36px)}}
@media(max-width:1400px){
 html[data-theme] body .pc-show-header{height:auto;grid-template-columns:repeat(3,minmax(0,1fr));row-gap:16px;padding:16px}
 .pc-show-header .header-search{grid-column:span 2}.pc-show-header .header-local{grid-column:3;grid-row:1}
 html[data-theme] body .pc-show-header .header-utilities{grid-column:1/-1;grid-template-columns:repeat(3,56px) 56px;justify-content:end}
 .pc-show-header .weather-popover{left:auto;right:0}
}
@media(max-width:1000px){
 html[data-theme] body .pc-show-header{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] body .pc-show-header .header-search{grid-column:1/-1;margin:0}
 .pc-show-header .header-local{grid-column:auto;grid-row:auto}
 .pc-show-header .panelist-times,.pc-show-header .weather-popover{position:fixed;left:16px;right:16px;top:96px;width:auto;max-height:calc(100dvh - 120px)}
}
@media(max-width:700px){
 html[data-theme] body .pc-show-header :is(.header-local,.header-stat,.header-weather-section){padding-left:8px;padding-right:8px}
 html[data-theme] body .pc-show-header #show-time{font-size:16px}
 html[data-theme] body .pc-show-header .header-utilities{justify-content:space-around;grid-template-columns:repeat(3,1fr) 52px;border-left:0;padding-left:0}
}
