:root{font-family:'Segoe UI',Inter,Arial,sans-serif;color:#234656;background:#f5f9fa}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 5% 0,#e5f1f2 0,transparent 32%),#f5f9fa}a{color:#287488;text-decoration:none}.duty-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px clamp(18px,4vw,56px);background:#fffffff0;border-bottom:1px solid #dae7eb}.duty-brand{display:flex;align-items:center;gap:11px;font-size:20px;font-weight:750;color:#21495b}.duty-brand b{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#216c7e;color:#fff}.duty-top nav{display:flex;gap:18px;font-size:13px;font-weight:650}.duty-top nav a:hover,.duty-source a:hover{text-decoration:underline}main{max-width:1520px;margin:auto;padding:22px clamp(14px,3vw,42px) 30px}.duty-intro{margin:0 0 18px}.duty-eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#468695}.duty-intro h1{font-size:clamp(25px,2.8vw,37px);line-height:1.12;letter-spacing:-.8px;margin:7px 0}.duty-intro>p{color:#617984;font-size:14px;margin:6px 0 13px}.duty-status{display:inline-flex;align-items:center;gap:9px;border:1px solid #cde2e2;background:#e9f5f2;border-radius:12px;padding:9px 13px;color:#286b69;font-size:12px;font-weight:650;line-height:1.45}.duty-status:before{content:'';width:8px;height:8px;border-radius:50%;background:#33a98d;flex:none}.duty-status.warning{background:#fff6e8;border-color:#f0dcbf;color:#80591d}.duty-status.warning:before{background:#dd9945}.duty-status.unavailable{background:#fff0ed;border-color:#eed2cc;color:#9b5147}.duty-status.unavailable:before{background:#d57667}.duty-content{display:grid;grid-template-columns:minmax(305px,385px) minmax(0,1fr);gap:16px;min-height:calc(100dvh - 205px)}.duty-sidebar,.duty-map-wrap{border:1px solid #d7e5e9;background:#ffffffdb;border-radius:18px;box-shadow:0 12px 34px #29576a0c;overflow:hidden}.duty-sidebar{display:flex;flex-direction:column;min-height:500px;max-height:calc(100dvh - 215px)}.duty-controls{padding:17px;border-bottom:1px solid #e2edef;background:#f8fbfb}.duty-controls label{display:block;color:#416878;font-size:11px;font-weight:750;margin:0 0 5px}.duty-controls input,.duty-controls select{width:100%;border:1px solid #ccdee2;border-radius:10px;background:white;color:#284e5e;font:500 13px 'Segoe UI',Arial,sans-serif;padding:10px 11px;outline:none;margin:0 0 12px}.duty-controls input:focus,.duty-controls select:focus{border-color:#388b9a;box-shadow:0 0 0 3px #54aec122}.duty-controls small{color:#597682;font-size:11px}.duty-list{overflow:auto;padding:8px;flex:1}.duty-card{display:grid;gap:7px;width:100%;margin-bottom:8px;border:1px solid #dce9e9;border-radius:13px;background:#fff;padding:13px;text-align:left;box-shadow:0 2px 8px #31536208}.duty-card:hover,.duty-card.selected{border-color:#77afb6;background:#f2faf9}.duty-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.duty-card h2{font-size:14px;line-height:1.3;margin:0;color:#244c5a;font-weight:750}.duty-card .district{font-size:10px;font-weight:750;color:#a94e5b;background:#fff0f1;border-radius:7px;padding:4px 7px;white-space:nowrap}.duty-card p{font-size:12px;line-height:1.45;color:#617985;margin:0}.duty-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.duty-actions a{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:750;border:1px solid #d8e7e8;background:#f4f9f9}.duty-actions a.route{background:#e8f3f5;border-color:#cde3e7}.duty-actions .phone-desktop{font-size:12px;font-weight:750;color:#315f6f}.duty-actions .phone-mobile{display:none;background:#226c7f;color:#fff;border-color:#226c7f}.duty-focus{border:0;background:transparent;padding:0;color:#317a8d;cursor:pointer;text-align:left;font:750 14px 'Segoe UI',Arial,sans-serif}.duty-focus:hover{text-decoration:underline}.duty-source{padding:12px 17px;border-top:1px solid #e3ecee;color:#728791;background:#fafcfc}.duty-source a{font-size:11px;font-weight:750}.duty-source p{font-size:10px;line-height:1.45;margin:6px 0 0}.duty-map-wrap{min-height:500px}#duty-map{width:100%;height:100%;min-height:500px;background:#e8eef0}.duty-marker{display:grid;place-items:center;width:27px;height:27px;border:2px solid white;border-radius:10px;background:#c55363;color:#fff;font:800 14px 'Segoe UI',Arial,sans-serif;box-shadow:0 2px 10px #8e485578}.duty-marker.selected{background:#268596;transform:scale(1.18)}.duty-popup{font:500 12px 'Segoe UI',Arial,sans-serif;color:#315767}.duty-popup strong{display:block;font-size:14px;margin-bottom:5px}.duty-popup a{display:inline-block;margin:7px 9px 0 0;font-weight:750}.duty-empty{padding:22px;color:#637d89;font-size:13px;line-height:1.6}.leaflet-popup-content{margin:12px 15px}@media(max-width:800px){.duty-top{padding:10px 14px}.duty-top nav{gap:10px;font-size:11px}.duty-brand{font-size:17px}.duty-brand b{width:32px;height:32px}main{padding:17px 12px}.duty-content{display:flex;flex-direction:column}.duty-map-wrap{order:0;min-height:44dvh;height:44dvh}.duty-sidebar{order:1;max-height:none;min-height:0}.duty-list{max-height:none;overflow:visible}.duty-actions .phone-desktop{display:none}.duty-actions .phone-mobile{display:inline-flex}.duty-intro>p{font-size:12px}#duty-map{min-height:44dvh;height:44dvh}}@media(max-width:390px){.duty-top nav a:last-child{display:none}}

/* Compact marker: only the red corner dot blinks. */
.duty-marker{position:relative;width:23px;height:23px;border:1.5px solid #fff;border-radius:8px;font-size:11px;box-shadow:0 2px 6px #8e48555c}
.duty-marker::after,.duty-popup-icon::after{content:'';position:absolute;width:8px;height:8px;border:1px solid white;border-radius:50%;background:#e23041;box-shadow:0 0 0 1px #b8293960;pointer-events:none;animation:duty-dot-blink 1.8s ease-in-out infinite}
.duty-marker::after{top:-4px;right:-4px}
@keyframes duty-dot-blink{0%,100%{opacity:1}50%{opacity:.18}}
.duty-popup-shell .leaflet-popup-content-wrapper{padding:0;overflow:hidden;border:1px solid #b9d6df;border-radius:13px;background:linear-gradient(110deg,#f3fafb,#eaf4f8);box-shadow:0 4px 16px #244f6229}
.duty-popup-shell .leaflet-popup-content{margin:0;max-width:calc(100vw - 72px)}
.duty-popup-shell .leaflet-popup-close-button{z-index:2;color:#476c79!important}
.duty-popup-shell .leaflet-popup-tip{background:#eaf4f8}
.duty-popup{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:13px;width:min(336px,calc(100vw - 72px));aspect-ratio:16/9;padding:16px 18px 16px 16px;color:#244f62;font:500 12px/1.4 'Segoe UI',Arial,sans-serif}
.duty-popup-icon{position:relative;display:grid;place-items:center;width:44px;height:44px;align-self:center;border-radius:11px;background:#216c7a;color:#fff;font:750 23px/1 'Segoe UI',Arial,sans-serif}
.duty-popup-icon::after{top:-4px;right:-4px}
.duty-popup-main{min-width:0;padding-right:10px}
.duty-popup-main strong{display:block;margin:0 0 5px;color:#244f62;font-size:13px;font-weight:750;line-height:1.28}
.duty-popup-main p{margin:0;color:#577787;font-size:11px;line-height:1.4}
.duty-popup-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.duty-popup-actions .duty-popup-phone{font-size:11px;font-weight:700;color:#315f6f}
.duty-popup-actions a{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:6px 9px;border:1px solid #c6dfe4;border-radius:8px;background:#e5f4f6;color:#286b7b;font-size:11px;font-weight:750;text-decoration:none;white-space:nowrap}
.duty-popup-actions .duty-popup-call{display:none;background:#216c7a;border-color:#216c7a;color:#fff}
.duty-popup-actions a:focus-visible{outline:2px solid #327a94;outline-offset:2px}
@media(max-width:800px){.duty-popup-actions .duty-popup-phone{display:none}.duty-popup-actions .duty-popup-call{display:inline-flex}}
@media(max-width:390px){.duty-popup{grid-template-columns:40px minmax(0,1fr);gap:9px;padding:13px 14px}.duty-popup-icon{width:38px;height:38px;font-size:20px}.duty-popup-main{padding-right:8px}.duty-popup-actions{gap:5px}.duty-popup-actions a{padding:5px 7px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.duty-marker::after,.duty-popup-icon::after{animation:none;opacity:1}}

/* Compact, translucent pharmacy rows use the source note's type scale. */
.duty-card{gap:5px;margin-bottom:7px;padding:10px 11px;border-color:#d4e5e8b8;background:#ffffffa8;box-shadow:0 2px 9px #3153620b}
.duty-card:hover,.duty-card.selected{border-color:#8abac1;background:#eaf7f6d9}
.duty-card .duty-focus{font-size:11px;line-height:1.4;font-weight:750;color:#287488}
.duty-card .district{font-size:9px;padding:3px 6px}
.duty-card p{font-size:10px;line-height:1.45;color:#647e89}
.duty-card .duty-actions{gap:6px}
.duty-card .duty-actions .phone-desktop{font-size:10px}
.duty-card .duty-actions a{font-size:10px;padding:5px 8px}
.duty-card .duty-note,.duty-popup .duty-popup-note{color:#a35a42;font-size:10px;font-weight:650}
.duty-popup .duty-popup-note{margin-top:5px}
.duty-list-heading{margin:0;padding:10px 17px 2px;background:#fff;color:#365d69;font-size:12px;font-weight:750}
.duty-list-context{margin:4px 3px 12px!important;padding:7px 8px;border-radius:8px;background:#f4f9fa;color:#597583!important;font-size:10px!important;line-height:1.5!important}
