/* Chiku Auto – top bar with city, time and weather. Follows the site's dark / light theme tokens. */
.ck-top {
  --ck-accent: var(--t-accent, #2F54EB);
  position: relative; z-index: 100000; /* above the sticky header, so the city panel is visible */
  font: 500 12.5px/1 Poppins, system-ui, sans-serif;
  color: var(--t-text, #4A4A5E);
  background: color-mix(in srgb, var(--t-surface, #fff) 82%, transparent);
  border-bottom: 1px solid var(--t-border, rgba(26, 26, 46, .08));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ck-top *, .ck-top *::before, .ck-top *::after { box-sizing: border-box; }
.ck-top-in {
  max-width: 1280px; margin: 0 auto; min-height: 34px;
  padding: 5px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap;
}
.ck-top .ck-top-city, .ck-top .ck-top-city:focus, .ck-top .ck-top-city:active {
  display: inline-flex !important; align-items: center; gap: 6px;
  font: 600 12.5px/1 Poppins, system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
  color: var(--t-heading, #1A1A2E) !important; background: color-mix(in srgb, var(--ck-accent) 9%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--ck-accent) 25%, transparent) !important; border-radius: 999px !important;
  padding: 5px 10px !important; margin: 0 !important; cursor: pointer; box-shadow: none !important;
}
.ck-top .ck-top-city:hover, .ck-top.is-open .ck-top-city { border-color: var(--ck-accent) !important; color: var(--ck-accent) !important; }
.ck-top-city svg { width: 14px; height: 14px; fill: none; stroke: var(--ck-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ck-top-caret { font-size: 10px; opacity: .7; }
.ck-top-wx { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ck-top-temp { color: var(--t-heading, #1A1A2E); font-weight: 700; }
.ck-top-sep { width: 1px; height: 14px; background: var(--t-border, rgba(26, 26, 46, .15)); }
.ck-top-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-top-clock { color: var(--t-heading, #1A1A2E); font-weight: 700; display: inline-block; min-width: 82px; }
.ck-top-form {
  position: absolute; right: clamp(16px, 4vw, 40px); top: calc(100% + 6px); z-index: 70;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: min(340px, calc(100vw - 32px));
  padding: 10px; border-radius: 12px;
  background: var(--t-surface, #fff); border: 1px solid var(--t-border, rgba(26, 26, 46, .12));
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .45);
}
.ck-top-form[hidden] { display: none; }
.ck-top-form input {
  flex: 1 1 160px; min-width: 0; height: 36px; padding: 0 12px; border-radius: 9px;
  font: 500 13.5px/1 Poppins, system-ui, sans-serif; color: var(--t-heading, #1A1A2E);
  background: color-mix(in srgb, var(--t-heading, #1A1A2E) 5%, transparent); border: 1px solid var(--t-border, rgba(26, 26, 46, .15));
}
.ck-top-form input:focus { outline: 2px solid var(--ck-accent); outline-offset: 1px; }
.ck-top .ck-top-ok, .ck-top .ck-top-ok:focus {
  width: 36px; height: 36px; padding: 0 !important; margin: 0 !important; border-radius: 9px !important; cursor: pointer;
  font: 700 16px/1 system-ui, sans-serif !important; color: #fff !important; border: 0 !important;
  background: linear-gradient(135deg, var(--ck-accent), color-mix(in srgb, var(--ck-accent) 60%, var(--t-accent-2, #7D74C3))) !important;
}
.ck-top .ck-top-reset, .ck-top .ck-top-reset:focus {
  height: 36px; padding: 0 10px !important; margin: 0 !important; border-radius: 9px !important; cursor: pointer;
  font: 500 12.5px/1 Poppins, system-ui, sans-serif !important; text-transform: none !important;
  color: var(--t-text, #4A4A5E) !important; background: transparent !important; border: 1px solid var(--t-border, rgba(26, 26, 46, .15)) !important;
}
.ck-top-stats { margin-right: auto; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.ck-top-stats[hidden] { display: none; }
.ck-top-stats b { color: var(--t-heading, #1A1A2E); font-weight: 700; font-variant-numeric: tabular-nums; }
.ck-top-online { display: inline-flex; align-items: center; gap: 6px; }
.ck-top-online i { width: 7px; height: 7px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 3px color-mix(in srgb, #12B76A 25%, transparent); animation: ck-top-pulse 2s ease-out infinite; }
@keyframes ck-top-pulse { 0% { box-shadow: 0 0 0 0 rgb(18 183 106 / .5); } 80%, 100% { box-shadow: 0 0 0 7px rgb(18 183 106 / 0); } }
.ck-top-units { display: inline-flex; gap: 4px; }
.ck-top .ck-top-unit, .ck-top .ck-top-unit:focus {
  height: 30px; min-width: 42px; padding: 0 10px !important; margin: 0 !important; border-radius: 8px !important; cursor: pointer;
  font: 600 12.5px/1 Poppins, system-ui, sans-serif !important; text-transform: none !important;
  color: var(--t-heading, #1A1A2E) !important; background: transparent !important; border: 1px solid var(--t-border, rgba(26, 26, 46, .15)) !important; box-shadow: none !important;
}
.ck-top .ck-top-unit.is-on { color: #fff !important; background: var(--ck-accent) !important; border-color: var(--ck-accent) !important; }
.ck-top-sug { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.ck-top-sug:empty { display: none; }
.ck-top .ck-top-sugi, .ck-top .ck-top-sugi:focus {
  display: flex !important; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left;
  padding: 8px 10px !important; margin: 0 !important; border-radius: 8px !important; cursor: pointer;
  font: 600 13px/1.2 Poppins, system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
  color: var(--t-heading, #1A1A2E) !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
}
.ck-top .ck-top-sugi small { font: 500 11.5px/1.2 Poppins, system-ui, sans-serif; color: var(--t-muted, #8E8E9E); }
.ck-top .ck-top-sugi:hover, .ck-top .ck-top-sugi:focus-visible { background: color-mix(in srgb, var(--ck-accent) 12%, transparent) !important; outline: none; }
.ck-top.has-sug .ck-top-list, .ck-top.has-sug .ck-top-list-h { display: none; }
.ck-top-list { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; max-height: 190px; overflow-y: auto; }
.ck-top-list-h { flex-basis: 100%; margin: 4px 0 0; font: 600 11px/1 Poppins, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted, #8E8E9E); }
.ck-top .ck-top-pick, .ck-top .ck-top-pick:focus {
  padding: 7px 10px !important; margin: 0 !important; border-radius: 999px !important; cursor: pointer;
  font: 500 12.5px/1 Poppins, system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
  color: var(--t-heading, #1A1A2E) !important; background: color-mix(in srgb, var(--t-heading, #1A1A2E) 5%, transparent) !important;
  border: 1px solid var(--t-border, rgba(26, 26, 46, .15)) !important; box-shadow: none !important;
}
.ck-top .ck-top-pick:hover, .ck-top .ck-top-pick.is-on { color: #fff !important; background: var(--ck-accent) !important; border-color: var(--ck-accent) !important; }
.ck-top-msg { flex-basis: 100%; font-size: 12px; color: var(--t-muted, #8E8E9E); min-height: 0; }
.ck-top-msg:empty { display: none; }
.ck-top .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Social icons + search button */
.ck-top-soc { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; border-left: 1px solid var(--t-border, rgba(26, 26, 46, .15)); }
.ck-top-soc a { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 6px; color: var(--t-text, #4A4A5E); }
.ck-top-soc a:hover, .ck-top-soc a:focus-visible { color: var(--ck-accent); background: color-mix(in srgb, var(--ck-accent) 12%, transparent); outline: none; }
.ck-top-soc svg { width: 15px; height: 15px; fill: currentColor; }
.ck-top .ck-top-search, .ck-top .ck-top-search:focus {
  display: inline-flex !important; align-items: center; justify-content: center; width: 30px; height: 26px;
  padding: 0 !important; margin: 0 !important; cursor: pointer; border-radius: 8px !important; box-shadow: none !important;
  color: var(--t-heading, #1A1A2E) !important; background: color-mix(in srgb, var(--ck-accent) 9%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--ck-accent) 25%, transparent) !important;
}
.ck-top .ck-top-search:hover, .ck-top .ck-top-search:focus-visible { border-color: var(--ck-accent) !important; color: var(--ck-accent) !important; }
.ck-top-search svg, .ck-search-in svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* Search overlay – fixed in the top layer, always above the sticky header and the admin bar */
.ck-search {
  position: fixed; inset: 0; z-index: 2147483000; padding: calc(var(--wp-admin--admin-bar--height, 0px) + 14px) 16px 16px;
  background: rgb(5 6 20 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ck-search[hidden] { display: none; }
.ck-search-in {
  max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px;
  background: var(--t-surface, #fff); border: 1px solid var(--t-border, rgba(26, 26, 46, .12)); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6);
  color: var(--t-heading, #1A1A2E);
}
.ck-search-in input {
  flex: 1; min-width: 0; height: 44px; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important;
  font: 500 16px/1.2 Poppins, system-ui, sans-serif; color: var(--t-heading, #1A1A2E); padding: 0 4px;
}
.ck-search-in input::placeholder { color: var(--t-muted, #8E8E9E); }
.ck-search .ck-search-go, .ck-search .ck-search-x {
  height: 40px; padding: 0 14px !important; margin: 0 !important; border-radius: 10px !important; cursor: pointer; box-shadow: none !important;
  font: 600 14px/1 Poppins, system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
}
.ck-search .ck-search-go { color: #fff !important; background: var(--t-accent, #2F54EB) !important; border: 0 !important; }
.ck-search .ck-search-x { color: var(--t-heading, #1A1A2E) !important; background: transparent !important; border: 1px solid var(--t-border, rgba(26, 26, 46, .15)) !important; }
.ck-search .ck-search-go:focus-visible, .ck-search .ck-search-x:focus-visible { outline: 2px solid var(--t-accent, #2F54EB); outline-offset: 2px; }
html.ck-search-on { overflow: hidden; }
@media (max-width: 767px) {
  .ck-top-soc { display: none; }
  .ck-search-in { padding-left: 10px; }
  .ck-search .ck-search-go { display: none; }
  .ck-top-in { justify-content: space-between; gap: 8px; min-height: 32px; }
  .ck-top-cond, .ck-top-date, .ck-top-sep, .ck-top-views, .ck-top-visitors { display: none; }
  .ck-top-stats { margin-right: 0; }
  .ck-top-clock { min-width: 0; }
}
@media print { .ck-top { display: none; } }

/* Subdomains: "back to main site" button at the top-left + current site name */
.ck-top-back { order: -2; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px 5px 8px; border-radius: 999px; text-decoration: none;
  font: 700 12.5px/1 Poppins, system-ui, sans-serif; color: #fff !important; background: var(--ck-accent); box-shadow: 0 4px 12px -6px var(--ck-accent); }
.ck-top-back:hover, .ck-top-back:focus-visible { filter: brightness(1.1); outline: 2px solid color-mix(in srgb, var(--ck-accent) 40%, transparent); outline-offset: 2px; }
.ck-top-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ck-top-site { order: -1; margin-right: auto; font: 700 12.5px/1 Poppins, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--t-heading, #1A1A2E) !important; }
.ck-top-back ~ .ck-top-stats { margin-right: 0; }
@media (max-width: 767px) {
  .ck-top-site { display: none; }
  .ck-top-back ~ .ck-top-stats { display: none; }
}

/* Phones: the bar always stays on ONE line (it used to wrap the clock onto a second row). */
@media (max-width: 767px) {
  .ck-top-in { flex-wrap: nowrap; gap: 6px; padding-left: 12px; padding-right: 12px; }
  .ck-top-in > * { flex-shrink: 0; }
  .ck-top .ck-top-city { flex-shrink: 1 !important; min-width: 0; padding: 5px 8px !important; }
  .ck-top-name { display: inline-block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
  .ck-top-back { padding: 5px 10px 5px 6px; }
  .ck-top-stats .ck-top-online { font: 600 11px/1 Poppins, system-ui, sans-serif; gap: 5px; white-space: nowrap; } /* "● 1 online", compact */
  .ck-top-stats .ck-top-online b { font-size: 11.5px; }
}
/* Same items and format on every site (city, weather, time, search); subdomains only add
   the "Main site" button. The city name shortens with "…" so everything fits one line. */
@media (max-width: 767px) {
  .ck-top-in { gap: 5px; }
  .ck-top .ck-top-city { flex: 0 1 auto !important; overflow: hidden; }
  .ck-top-name { min-width: 0; flex: 0 1 auto; }
  .ck-top-back { padding: 5px 9px 5px 5px; font-size: 11.5px; gap: 2px; }
  .ck-top-back svg { width: 13px; height: 13px; }
  .ck-top-time { font-size: 11.5px; }
}
@media (max-width: 340px) {
  .ck-top-wx { display: none; }
}

/* Subdomain pages on phones: hero and section content always stacks, even if a cached
   page briefly misses its page stylesheet (titles used to break into one letter per line). */
@media (max-width: 767px) {
  body[class*="ck-site-"] .page-hero .e-con,
  body[class*="ck-site-"] .section > .e-con { flex-direction: column; flex-wrap: nowrap; }
  body[class*="ck-site-"] .page-hero .e-con > * { max-width: 100%; }
}
