:root{--ink:#152e48;--muted:#536c83;--blue:#1768b5;--line:#d7e2ed;--panel:#fff;--radius:28px;--shadow:0 12px 36px #14304e0d;--font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% 0,#d7e7f7,transparent 55%),linear-gradient(130deg,#f3f7fb,#e8f0f7);color:var(--ink);font:450 16px/1.6 var(--font);min-height:100vh}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,svg:focus-visible,[role=button]:focus-visible{outline:3px solid #d4a34e;outline-offset:4px}h1,h2,p,figure,dl,dd{margin:0}button{color:inherit}svg{display:block}.wrap{width:min(1440px,calc(100% - 80px));margin-inline:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;z-index:20;top:10px;left:10px;padding:12px 20px;background:var(--ink);color:white;transform:translateY(-160%)}.skip-link:focus{transform:none}
.demo-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-block:28px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none}.brand img{width:44px;height:44px}.brand>span{display:grid}.brand strong{font-size:27px;font-weight:800;letter-spacing:-.06em;line-height:1.1}.brand strong>span{color:var(--blue)}.brand small{font-size:11px;color:var(--muted);margin-top:4px}.utc-pill{display:flex;gap:10px;align-items:center;background:#ffffffb3;border:1px solid #fff;border-radius:999px;padding:10px 16px;font-size:12px;font-weight:600}.utc-pill time{font-variant-numeric:tabular-nums;min-width:62px}.live-dot{width:6px;height:6px;background:#1a8b7c;border-radius:50%}
.page-intro{display:flex;align-items:end;justify-content:space-between;gap:30px;margin:35px 0 32px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.13em;text-transform:uppercase;color:var(--blue)}h1{font-size:clamp(34px,3.6vw,54px);font-weight:750;line-height:1.1;letter-spacing:-.045em;margin-top:11px}.page-intro>div>p:last-child{color:var(--muted);margin-top:14px;font-size:15px}.search-area{position:relative;width:min(100%,390px);flex-shrink:0}#city-search{display:flex;align-items:center;gap:7px;background:white;border:1px solid #c9dbe9;border-radius:999px;padding:5px;box-shadow:0 4px 14px #14304e04}#city-query{width:100%;min-width:0;border:0;border-radius:999px;background:transparent;padding:10px 13px;font-size:14px;min-height:44px;color:var(--ink)}#search-button{white-space:nowrap;border:0;background:var(--ink);color:white;min-height:44px;padding:10px 17px;border-radius:999px;font-size:12px;font-weight:650}#search-status:not(:empty){font-size:12px;color:var(--muted);margin:8px 10px 0}#search-results{position:absolute;z-index:5;top:100%;left:0;right:0;margin:8px 0 0;padding:8px;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 16px 42px #14304e20;list-style:none;max-height:340px;overflow:auto}#search-results button{display:grid;gap:3px;width:100%;text-align:left;padding:12px;border:0;border-radius:13px;background:white;font-size:14px;font-weight:650}#search-results button:hover{background:#edf4fa}#search-results small{font-size:11px;font-weight:450;color:var(--muted)}
.world-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:stretch}.map-card,.conditions-card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.map-card{overflow:hidden;display:flex;flex-direction:column}.map-heading{padding:22px 25px 19px;display:flex;align-items:center;justify-content:space-between;gap:16px}.map-heading h2{font-size:16px;font-weight:700}.map-heading p{color:var(--muted);font-size:11px;margin-top:4px}.map-key{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);white-space:nowrap}.map-key i{width:7px;height:7px;border-radius:50%;background:#278d95}.map-stage{position:relative;flex:1;min-height:380px;background:#0d2b48;overflow:hidden}#world-map{width:100%;height:100%;min-height:380px;position:absolute;inset:0;touch-action:none;cursor:crosshair}#world-map.is-dragging{cursor:grabbing}#land path{fill:#bdd1e2;stroke:#86a9c4;stroke-width:.45;vector-effect:non-scaling-stroke}.grid-line{stroke:#83abc9;stroke-width:.6;opacity:.22;vector-effect:non-scaling-stroke}.ocean-labels text{fill:#9abbd5;font-size:10px;font-weight:600;letter-spacing:3px;opacity:.6;text-anchor:middle}.city-pin{cursor:pointer;outline:none}.pin-hit{fill:transparent;stroke:none}.pin-halo{fill:#d9effb;opacity:.12}.pin-dot{fill:#f8fcff;stroke:#123655;stroke-width:2;vector-effect:non-scaling-stroke}.city-pin.is-selected .pin-dot{fill:#7ee1d2;stroke:#e4fffa}.city-pin.is-selected .pin-halo{fill:#7ee1d2;opacity:.25}.city-pin:focus-visible .pin-halo{fill:#e9bd65;opacity:.6}.pin-label{fill:white;font-size:11px;font-weight:600;paint-order:stroke;stroke:#0b2944;stroke-width:4px;stroke-linejoin:round;pointer-events:none}.map-controls{position:absolute;bottom:18px;left:18px;display:grid;gap:5px}.map-controls button{width:38px;height:38px;display:grid;place-items:center;border:1px solid #d1e0ed;border-radius:12px;background:#fbfdff;color:#173b5b;font-size:22px;box-shadow:0 2px 8px #0002}.map-controls button:disabled{cursor:default;opacity:.6}.map-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding:15px 24px;font-size:10px;color:var(--muted)}
.conditions-card{padding:26px;display:flex;flex-direction:column}.location-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:24px}.day-state{font-size:10px;font-weight:600;padding:4px 9px;border-radius:999px;background:#f8efd7;color:#755619}.day-state.is-night{background:#e5ecf7;color:#3d5980}.conditions-card h2{font-size:30px;line-height:1.2;letter-spacing:-.035em;margin-top:12px;overflow-wrap:anywhere}#location-region{color:var(--muted);font-size:12px;margin-top:5px}.coordinates{font-size:10px;color:#6c8193;margin-top:3px}.local-clock{font-size:46px;line-height:1.15;font-weight:700;letter-spacing:-.045em;font-variant-numeric:tabular-nums;margin-top:26px;white-space:nowrap}.local-date{font-size:13px;color:var(--muted);margin-top:7px}.zone-row{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:13px;font-size:10px;color:#456680}.zone-row>span:first-child{font-weight:700}.time-difference{font-size:11px;color:var(--muted);margin-top:8px}.weather-block{border-top:1px solid #e0e9f1;padding-top:24px;margin-top:24px}.weather-main{display:flex;gap:17px;align-items:center}.weather-icon{width:57px;height:57px;display:grid;place-items:center;color:#367baf;flex-shrink:0}.weather-icon svg{width:52px;height:52px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#temperature{font-size:35px;font-weight:700;line-height:1.1;letter-spacing:-.04em}#weather-description{font-size:12px;color:var(--muted);margin-top:6px}.weather-metrics{display:grid;grid-template-columns:1fr 1fr;gap:19px 15px;margin-top:24px}.weather-metrics dt{font-size:10px;color:#6a7e90}.weather-metrics dd{font-size:14px;font-weight:650;margin-top:4px}.weather-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e0e9f1;padding-top:15px;margin-top:23px}.weather-footer p{color:var(--muted);font-size:10px}.weather-footer button{min-height:38px;padding:7px 12px;background:#edf4fa;color:var(--blue);border:1px solid #d7e4ef;border-radius:999px;font-size:11px;font-weight:650}.weather-status:not(:empty){font-size:11px;color:#6e5661;margin-top:10px}.weather-block[aria-busy=true]{opacity:.55}
.city-section{padding-block:39px 42px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:21px}.section-heading h2{font-size:24px;font-weight:700;letter-spacing:-.025em;margin-top:6px}.section-heading>p{font-size:12px;color:var(--muted)}.city-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.city-clock{display:block;min-width:0;border:1px solid var(--line);border-radius:22px;background:#ffffffbc;padding:19px 21px;text-align:left;box-shadow:0 4px 14px #14304e03}.city-clock:hover{background:white;border-color:#92b4d0}.city-clock[aria-pressed=true]{background:white;border-color:#689dbd;box-shadow:inset 0 0 0 1px #689dbd}.city-clock>span{display:flex;justify-content:space-between;align-items:center;gap:10px}.city-name{font-size:14px;font-weight:700}.city-offset{font-size:10px;color:var(--muted)}.city-time{display:block;font-size:30px;font-weight:650;line-height:1.3;letter-spacing:-.035em;font-variant-numeric:tabular-nums;margin-top:10px}.city-date{display:block;font-size:10px;color:var(--muted);margin-top:4px}.demo-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #cfdeeb;padding-block:22px 30px;color:var(--muted);font-size:10px}.demo-footer p+p{margin-top:5px}.contact-link{display:inline-flex;align-items:center;gap:9px;min-height:44px;white-space:nowrap;padding:9px 15px;border:1px solid #cfdeeb;border-radius:999px;background:#ffffffb3;text-decoration:none;font-size:12px;font-weight:600}.notice{padding:20px;background:white;border-radius:18px}
@media(max-width:1100px){.wrap{width:calc(100% - 48px)}.world-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}.conditions-card{padding:23px}.map-key{display:none}.page-intro{align-items:start;flex-direction:column;gap:24px}.search-area{width:min(100%,480px)}.city-clock{padding:18px}.local-clock{font-size:42px}}
@media(max-width:850px){.world-layout{grid-template-columns:1fr}.map-stage,#world-map{min-height:350px}.conditions-card{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.conditions-card>.location-heading,.conditions-card>h2,.conditions-card>#location-region,.conditions-card>.coordinates,.conditions-card>.local-clock,.conditions-card>.local-date,.conditions-card>.zone-row,.conditions-card>.time-difference{grid-column:1}.weather-block{grid-column:2;grid-row:1/8;border-top:0;border-left:1px solid #e0e9f1;padding:0 0 0 26px;margin:0;align-self:center}.weather-footer,.weather-status{grid-column:1/-1}.city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.wrap{width:calc(100% - 32px)}.demo-header{padding-block:21px}.utc-pill{padding:9px 12px;font-size:11px;gap:8px}.brand img{width:38px;height:38px}.brand strong{font-size:25px}.page-intro{margin-top:23px;margin-bottom:24px}h1{font-size:36px}.page-intro>div>p:last-child{font-size:14px;max-width:290px}.map-heading{padding:19px 20px}.map-stage,#world-map{min-height:260px}.map-controls{left:12px;bottom:12px;display:flex}.map-controls button{width:44px;height:44px}.map-footer{padding:13px 19px;font-size:9px}.conditions-card{display:block;padding:25px}.local-clock{font-size:49px}.weather-block{border-left:0;border-top:1px solid #e0e9f1;padding:23px 0 0;margin-top:23px}.city-section{padding-block:30px}.section-heading{align-items:start}.section-heading>p{max-width:120px;font-size:11px;text-align:right}.city-grid{gap:11px}.city-clock{border-radius:19px;padding:17px 15px}.city-name{font-size:12px}.city-offset{font-size:9px}.city-time{font-size:27px}.demo-footer{align-items:start;flex-direction:column}.search-area{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Editable clocks: selection and removal are separate, keyboard-accessible buttons. */
.save-clock{grid-column:1;margin-top:19px}.save-clock>button{width:100%;min-height:44px;padding:10px 16px;border:1px solid #c6d9e8;border-radius:999px;background:#edf5fc;color:#1768b5;font-size:12px;font-weight:650}.save-clock>button:hover:not(:disabled){background:#dfedf8}.save-clock>button:disabled{cursor:default;opacity:1;background:#f0f5f8;color:#637b8e;border-color:#dde7ee}#clock-status:not(:empty){margin-top:9px;font-size:11px;color:var(--muted)}
.city-clock{position:relative;padding:0;overflow:visible}.city-clock.is-selected{background:white;border-color:#689dbd;box-shadow:inset 0 0 0 1px #689dbd}.city-select{display:block;width:100%;height:100%;padding:20px 21px;border:0;border-radius:21px;text-align:left;background:transparent}.city-select:focus-visible{outline-offset:2px}.city-name{display:block;padding-right:34px;overflow-wrap:anywhere;line-height:1.4}.city-region{display:block;font-size:10px;font-weight:450;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.city-meta{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:6px}.city-meta .city-date{margin:0}.city-offset{white-space:nowrap}.remove-city{position:absolute;right:11px;top:11px;display:grid;place-items:center;width:34px;height:34px;border:1px solid transparent;border-radius:50%;background:transparent;color:#536c83;font-size:23px;font-weight:400;line-height:1}.remove-city:hover{background:#e9f0f6;border-color:#cedde9;color:#152e48}.clock-storage-note{font-size:11px;color:var(--muted);margin-top:17px}.empty-clocks{padding:35px 24px;text-align:center;border:1px dashed #b7cddd;border-radius:24px;background:#ffffff85}.empty-clocks h3{font-size:18px;margin:0 0 7px;font-weight:650}.empty-clocks p{font-size:13px;color:var(--muted)}.empty-clocks button{border:0;border-radius:999px;background:var(--ink);color:white;padding:11px 20px;min-height:44px;font-size:12px;font-weight:600;margin-top:19px}
@media(max-width:560px){.city-clock{padding:0}.city-select{padding:18px 15px}.remove-city{width:44px;height:44px;right:3px;top:3px}.city-meta{flex-wrap:wrap;gap:3px 8px}.clock-storage-note{font-size:10px}.section-heading>p{max-width:175px}}

/* More uses this same tool in a responsive, same-origin frame. */
html[data-embed="more"]{background:#081b2c;color-scheme:dark}
body[data-embed="more"]{--ink:#e5f2fc;--muted:#9db7ca;--blue:#91cafa;--line:#29495f;--panel:#0c2538;--shadow:0 12px 36px #00000014;background:#081b2c;min-height:0;color-scheme:dark}
body[data-embed="more"] .demo-header{display:none}body[data-embed="more"] .wrap{width:100%}body[data-embed="more"] .page-intro{margin:0 0 28px;align-items:center}body[data-embed="more"] .page-intro .eyebrow{font-size:10px;letter-spacing:.15em}body[data-embed="more"] .page-intro .eyebrow::before{content:"01 / ";}body[data-embed="more"] h1{font-size:clamp(30px,3.2vw,42px);letter-spacing:-.035em}body[data-embed="more"] .page-intro>div>p:last-child{font-size:13px}body[data-embed="more"] .search-area{width:min(100%,390px)}body[data-embed="more"] #city-search{background:#0e2a3e;border-color:#35546b;box-shadow:inset 0 1px #a4c8dd0a}body[data-embed="more"] #city-query{color:#e7f5ff}body[data-embed="more"] #city-query::placeholder{color:#91adc2}body[data-embed="more"] #search-button{background:#d1eaff;color:#143b5b}body[data-embed="more"] #search-results{background:#102d43;border-color:#3b5c74;box-shadow:0 16px 42px #0005}body[data-embed="more"] #search-results button{background:transparent;color:#e4f3ff}body[data-embed="more"] #search-results button:hover{background:#1b415a}
body[data-embed="more"] .map-card,body[data-embed="more"] .conditions-card{background:linear-gradient(145deg,#0d293f,#0a2032);border-color:#2b4b62}body[data-embed="more"] #land path{fill:#325c7c;stroke:#6999bd;stroke-width:.5}body[data-embed="more"] .grid-line{stroke:#7cc3f5;opacity:.12}body[data-embed="more"] .pin-dot{stroke:#142f45;fill:#cfeaf9}body[data-embed="more"] .city-pin.is-selected .pin-dot{fill:#abd7fa;stroke:#e5f5ff}body[data-embed="more"] .map-controls button{background:#13364d;border-color:#3b5b73;color:#d1f3f7}body[data-embed="more"] .map-key i{background:#7cc3f5}body[data-embed="more"] .coordinates,body[data-embed="more"] .zone-row{color:#9db9ce}body[data-embed="more"] .weather-block,body[data-embed="more"] .weather-footer{border-color:#28485f}body[data-embed="more"] .weather-icon{color:#a4d4fa}body[data-embed="more"] .weather-metrics dt{color:#96b3c8}body[data-embed="more"] .weather-footer button{background:#193c53;border-color:#345970;color:#bbddf8}body[data-embed="more"] .weather-status{color:#e2bca1}body[data-embed="more"] .day-state{background:#534a2a;color:#f4df9a}body[data-embed="more"] .day-state.is-night{background:#293e64;color:#c1d9fc}
body[data-embed="more"] .save-clock>button{background:#173c58;border-color:#376074;color:#bbddf8}body[data-embed="more"] .save-clock>button:hover:not(:disabled){background:#215476}body[data-embed="more"] .save-clock>button:disabled{background:#153245;border-color:#28495e;color:#9dbbc9}body[data-embed="more"] .city-clock{background:linear-gradient(140deg,#102c41,#0d2334);border-color:#2a485e;box-shadow:0 5px 15px #0001}body[data-embed="more"] .city-clock:hover{background:#17384e;border-color:#426a83}body[data-embed="more"] .city-clock.is-selected{background:linear-gradient(140deg,#163c5a,#102f4b);border-color:#7cc3f5;box-shadow:inset 0 0 0 1px #7cc3f533}body[data-embed="more"] .remove-city{color:#a1bfd1}body[data-embed="more"] .remove-city:hover{background:#254a60;border-color:#486b83;color:#e9f7ff}body[data-embed="more"] .empty-clocks{background:#102a3b;border-color:#406479}body[data-embed="more"] .empty-clocks button{background:#d1eaff;color:#143b5b}body[data-embed="more"] .demo-footer{padding:6px 0 23px;border:0;color:#8daabe;font-size:10px}body[data-embed="more"] .contact-link{display:none}body[data-embed="more"] .notice{background:#17384e}
@media(max-width:1100px){body[data-embed="more"] .page-intro{align-items:start}}
@media(max-width:560px){body[data-embed="more"] .search-area{width:100%}body[data-embed="more"] .page-intro{gap:22px}body[data-embed="more"] .section-heading>p{max-width:155px}body[data-embed="more"] .demo-footer{padding-bottom:19px}}
/* Give the embedded content itself an opaque dark canvas, including grid gaps. */
html[data-embed="more"] body,body[data-embed="more"] #main,body[data-embed="more"] .page-intro,body[data-embed="more"] .world-layout,body[data-embed="more"] .city-section{background:#081b2c}
body[data-embed="more"] .page-intro{color:#e5f2fc}

/* Match the host site's phone touch targets and prevent focus zoom in Safari. */
@media (max-width:760px) {
  #city-query { font-size:16px; }
  .page-intro { flex-direction:column; align-items:stretch; }
  body[data-embed="more"] .search-area { width:100%; }
  .search-area { min-width:0; }
  #city-search { max-width:100%; }
  .weather-footer { flex-wrap:wrap; }
  .weather-footer button { min-height:44px; }
  .city-clock, .conditions-card { min-width:0; }
  .zone-row, .city-meta { overflow-wrap:anywhere; }
}
