/* Converly Status. Ported from design/design_handoff_status_page (StatusMain.dc.html, IncidentHistory.dc.html). */

@font-face{font-family:"Inter";src:url("/fonts/Inter_18pt-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Inter";src:url("/fonts/Inter_18pt-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Inter";src:url("/fonts/Inter_18pt-SemiBold.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Inter Display";src:url("/fonts/Inter_28pt-SemiBold.woff2") format("woff2");font-weight:600;font-display:swap}

:root{--s-bg:#FFFFFF;--s-band:#FAFAFA;--s-surface:#FFFFFF;--s-pop:#FFFFFF;--s-border:#E5E5E5;--s-h:#0A0A0A;--s-text:#262626;--s-muted:#737373;--s-subtle:#F5F5F5;--s-dot:#D5D7DA;--s-line:#262626;--s-btn:#262626;--s-btn-hover:#0A0A0A;--s-btn-text:#FFFFFF;--logo-l:block;--logo-d:none;--ok:#17B26A;--ok-light:#ABEFC6;--ok-bg:#ECFDF3;--ok-border:#ABEFC6;--ok-text:#067647;--warn:#F79009;--warn-bg:#FFFAEB;--warn-border:#FEDF89;--warn-text:#B54708;--err:#F04438;--err-bg:#FEF3F2;--err-border:#FDA29B;--err-text:#B42318;--nodata:#E9EAEB;--s-shadow:0 1px 2px rgba(10,13,18,.05);color-scheme:light}
@media (prefers-color-scheme:dark){:root{--s-bg:#0A0A0A;--s-band:#111111;--s-surface:#141414;--s-pop:#1A1A1A;--s-border:#262626;--s-h:#FAFAFA;--s-text:#E5E5E5;--s-muted:#A3A3A3;--s-subtle:#1F1F1F;--s-dot:#2E2E2E;--s-line:#E5E5E5;--s-btn:#FAFAFA;--s-btn-hover:#E5E5E5;--s-btn-text:#0A0A0A;--logo-l:none;--logo-d:block;--ok:#17B26A;--ok-light:#1F6B47;--ok-bg:rgba(23,178,106,.10);--ok-border:rgba(23,178,106,.32);--ok-text:#ABEFC6;--warn:#F79009;--warn-bg:rgba(247,144,9,.10);--warn-border:rgba(247,144,9,.32);--warn-text:#FEDF89;--err:#F04438;--err-bg:rgba(240,68,56,.10);--err-border:rgba(240,68,56,.34);--err-text:#FDA29B;--nodata:#262626;--s-shadow:none;color-scheme:dark}}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;background:var(--s-bg)}
body{color:var(--s-text);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:14px;line-height:20px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit}
:focus-visible{outline:2px solid var(--s-h);outline-offset:2px}
.page{container-type:inline-size;min-height:100vh;background:var(--s-bg)}
.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}
.wrap{box-sizing:content-box;max-width:860px;margin:0 auto;padding-left:clamp(16px,4cqi,24px);padding-right:clamp(16px,4cqi,24px)}

/* Header band */
.band{position:relative;background:var(--s-band);border-bottom:1px solid var(--s-border)}
.band-dots{position:absolute;inset:0;background-image:radial-gradient(var(--s-dot) 1.5px,transparent 1.6px);background-size:24px 24px;background-position:center -12px;-webkit-mask-image:radial-gradient(ellipse 60% 100% at 50% 0%,#000 20%,transparent 85%);mask-image:radial-gradient(ellipse 60% 100% at 50% 0%,#000 20%,transparent 85%);pointer-events:none}
.band .wrap{position:relative}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;height:72px}
.brand{display:flex;align-items:center;gap:clamp(8px,2cqi,12px);flex:none}
.brand:hover{text-decoration:none}
.brand img{height:clamp(20px,5cqi,32px);width:auto}
.logo-l{display:var(--logo-l)}
.logo-d{display:var(--logo-d)}
.brand-div{width:1px;height:24px;background:var(--s-border)}
.brand-name{font-size:clamp(16px,2.5cqi,18px);line-height:28px;font-weight:600;color:var(--s-h)}
.nav-right{display:flex;align-items:center;gap:clamp(10px,3cqi,20px)}
.nav-link{white-space:nowrap;font-weight:600;color:var(--s-muted)}
.nav-link:hover{color:var(--s-h)}
.btn-primary{white-space:nowrap;display:flex;align-items:center;gap:6px;font-size:14px;line-height:20px;font-weight:600;color:var(--s-btn-text);background:var(--s-btn);padding:8px clamp(10px,3cqi,12px);border-radius:8px;border:0;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(10,13,18,.18),inset 0 -2px 0 0 rgba(10,13,18,.05),0 1px 2px rgba(10,13,18,.05);transition:background 100ms linear;list-style:none}
.btn-primary::-webkit-details-marker{display:none}
.btn-primary:hover{background:var(--s-btn-hover);text-decoration:none}
.btn-primary svg{opacity:.7}
.contact{position:relative}
.contact-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:260px;background:var(--s-pop);border:1px solid var(--s-border);border-radius:12px;padding:16px;box-shadow:0 12px 16px -4px rgba(10,13,18,.08),0 4px 6px -2px rgba(10,13,18,.03);display:flex;flex-direction:column;gap:12px}
.contact-pop .lbl{font-size:12px;line-height:18px;color:var(--s-muted)}
.contact-pop .addr{font-size:16px;line-height:24px;font-weight:600;color:var(--s-h)}
.contact-pop .stack{display:flex;flex-direction:column;gap:2px}
.btn-secondary{display:flex;justify-content:center;align-items:center;gap:6px;font-weight:600;color:var(--s-text);border:1px solid var(--s-border);border-radius:8px;padding:8px 12px;background:var(--s-surface);box-shadow:var(--s-shadow);transition:background 100ms linear;white-space:nowrap}
.btn-secondary:hover{background:var(--s-subtle);text-decoration:none}

/* Overall banner */
.banner-pad{padding:clamp(12px,3cqi,24px) 0 clamp(24px,5cqi,40px)}
.banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;padding:16px 20px;border-radius:12px;background:var(--s-surface);border:1px solid var(--s-border);box-shadow:var(--s-shadow)}
.banner-left{display:flex;align-items:center;gap:12px;min-width:0}
.dot8{flex:none;width:8px;height:8px;border-radius:999px}
.banner h1{margin:0;font-size:18px;line-height:28px;font-weight:600;color:var(--s-h);text-wrap:pretty}
.banner p{margin:0;font-size:14px;line-height:20px;color:var(--s-muted)}

/* Main column */
.main{padding-top:clamp(24px,4cqi,40px);display:flex;flex-direction:column;gap:32px}
.stack12{display:flex;flex-direction:column;gap:12px}
.card{background:var(--s-surface);border:1px solid var(--s-border);border-radius:12px;padding:clamp(16px,3cqi,24px);box-shadow:var(--s-shadow)}

/* Pills and chips */
.pill{display:inline-flex;align-items:center;gap:6px;padding:2px 10px 2px 8px;border-radius:999px;font-size:12px;line-height:18px;font-weight:500;border:1px solid;white-space:nowrap}
.pill i{width:6px;height:6px;border-radius:999px}
.tone-ok{background:var(--ok-bg);color:var(--ok-text);border-color:var(--ok-border)}.tone-ok i{background:var(--ok)}
.tone-err{background:var(--err-bg);color:var(--err-text);border-color:var(--err-border)}.tone-err i{background:var(--err)}
.tone-warn{background:var(--warn-bg);color:var(--warn-text);border-color:var(--warn-border)}.tone-warn i{background:var(--warn)}
.tone-muted{background:var(--s-subtle);color:var(--s-text);border-color:var(--s-border)}.tone-muted i{background:var(--s-muted)}
.tone-none{background:var(--s-subtle);color:var(--s-muted);border-color:var(--s-border)}.tone-none i{background:var(--nodata)}
.chip{font-size:12px;line-height:18px;font-weight:500;padding:2px 8px;border-radius:6px;background:var(--s-subtle);border:1px solid var(--s-border);color:var(--s-text)}

/* Notices */
.notice{display:flex;flex-direction:column;gap:12px}
.notice.err{border-color:var(--err-border)}
.notice-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.meta{font-size:13px;color:var(--s-muted)}
.notice-body{display:flex;flex-direction:column;gap:6px}
.notice-body h2,.notice-body h3{margin:0;font-size:18px;line-height:28px;font-weight:600;color:var(--s-h);text-wrap:pretty}
.notice-body p{margin:0;font-size:14px;line-height:22px;color:var(--s-text);text-wrap:pretty;white-space:pre-line}
.facts{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px 24px;padding-top:12px;border-top:1px solid var(--s-border)}
.facts.wide{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.facts>div{display:flex;flex-direction:column;gap:2px}
.facts dt{font-size:12px;line-height:18px;color:var(--s-muted)}
.facts dd{margin:0;font-weight:500;color:var(--s-h)}
.facts dd.chips{display:flex;gap:6px;flex-wrap:wrap;font-weight:inherit}
.facts>div.has-chips{gap:4px}

/* Systems */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.section-head h2{margin:0;font-size:18px;line-height:28px;font-weight:600;color:var(--s-h)}
.part{display:flex;flex-direction:column;gap:16px}
.part-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px 16px;flex-wrap:wrap}
.part-id{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 220px}
.part-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.part-name h3{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--s-h)}
.part-id p{margin:0;color:var(--s-muted)}
.part-uptime{font-size:14px;line-height:24px;font-weight:600;color:var(--s-h);white-space:nowrap}
.strip-wrap{position:relative}
.bars{display:flex;gap:2px;height:32px}
.bar{flex:1 1 0;min-width:0;padding:0;border:0;border-radius:2px;cursor:pointer;transition:opacity 100ms linear}
.bar:hover{opacity:.72}
.bar.sel{box-shadow:0 0 0 2px var(--s-bg),0 0 0 3.5px var(--s-h)}
.bar-labels{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;line-height:18px;color:var(--s-muted)}
.lbl-30{display:none}

/* Day popover */
.day-pop{position:absolute;z-index:20;top:40px;width:300px;background:var(--s-pop);border:1px solid var(--s-border);border-radius:12px;padding:14px 16px;box-shadow:0 12px 16px -4px rgba(10,13,18,.10),0 4px 6px -2px rgba(10,13,18,.04);display:flex;flex-direction:column;gap:12px}
.pop-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pop-date{font-weight:600;color:var(--s-h)}
.pop-right{display:flex;align-items:center;gap:10px}
.pop-pct{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--s-h);white-space:nowrap}
.pop-pct i{width:8px;height:8px;border-radius:2px}
.pop-close{display:flex;padding:4px;margin:-4px -6px -4px 0;border:0;background:none;color:var(--s-muted);cursor:pointer;border-radius:6px}
.pop-close:hover{background:var(--s-subtle)}
.pop-outs{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--s-border)}
.pop-count{font-size:12px;line-height:18px;font-weight:500;color:var(--s-muted)}
.pop-out{display:flex;flex-direction:column;gap:6px}
.pop-line{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.pop-line span:first-child{font-weight:500;color:var(--s-h)}
.pop-line span:last-child{color:var(--s-muted);white-space:nowrap}
.pop-out code{display:block;font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:12px;line-height:18px;padding:6px 8px;border-radius:6px;background:var(--s-subtle);color:var(--s-text);white-space:pre-wrap;word-break:break-word}
.pop-note{margin:0;font-size:13px;color:var(--s-muted)}

/* Response time */
.rt{border-top:1px solid var(--s-border);padding-top:12px;margin-top:-4px}
.rt summary{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;cursor:pointer;font-size:13px;line-height:20px;font-weight:600;color:var(--s-text);list-style:none;width:fit-content}
.rt summary::-webkit-details-marker{display:none}
.rt summary svg{color:var(--s-muted);transition:transform 100ms linear}
.rt[open] summary svg{transform:rotate(90deg)}
.rt summary span{white-space:nowrap}
.rt summary .muted{font-weight:400;color:var(--s-muted)}
.rt-grid{margin-top:14px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px}
.rt-y{display:flex;flex-direction:column;justify-content:space-between;height:96px;font-size:11px;line-height:12px;color:var(--s-muted);text-align:right;margin:-6px 0}
.rt-plot{position:relative;height:96px}
.rt-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.rt-down{fill:var(--err-bg)}
.rt-gl{stroke:var(--s-border);stroke-width:1;vector-effect:non-scaling-stroke}
.rt-gl.dash{stroke-dasharray:3 3}
.rt-line{fill:none;stroke:var(--s-line);stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.rt-x{display:flex;justify-content:space-between;font-size:11px;line-height:16px;color:var(--s-muted)}
.rt-sum{margin:10px 0 0;font-size:12px;line-height:18px;color:var(--s-muted)}

/* Past incidents link */
.row-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid var(--s-border);border-radius:12px;background:var(--s-surface);font-weight:600;color:var(--s-h);box-shadow:var(--s-shadow);transition:background 100ms linear}
.row-link:hover{background:var(--s-subtle);text-decoration:none}
.row-link svg{color:var(--s-muted)}

/* Footer */
.footer{margin-top:48px;border-top:1px solid var(--s-border)}
.footer .wrap{padding-top:24px;padding-bottom:32px;display:flex;flex-direction:column;gap:8px}
.footer p{margin:0;color:var(--s-text);text-wrap:pretty}
.footer-meta{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;color:var(--s-muted)}
.footer-meta a{font-weight:500}
.trust{position:relative}
.learn-more{padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.learn-more:hover{color:var(--s-h)}

/* "What we check" popover, opened by Learn more */
.method{position:absolute;left:0;bottom:calc(100% + 12px);z-index:30;width:min(520px,100%);background:var(--s-pop);border:1px solid var(--s-border);border-radius:12px;box-shadow:0 20px 24px -4px rgba(10,13,18,.08),0 8px 8px -4px rgba(10,13,18,.03);display:flex;flex-direction:column}
.method[hidden]{display:none}
.method-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 20px 16px}
.method-intro{display:flex;flex-direction:column;gap:6px}
.method-intro h2{margin:0;font-size:18px;line-height:28px;font-weight:600;color:var(--s-h)}
.method-intro p{margin:0;font-size:14px;line-height:22px;color:var(--s-muted);text-wrap:pretty}
.method-close{flex:none;display:flex;padding:6px;margin:-4px -6px 0 0;border:0;background:none;color:var(--s-muted);cursor:pointer;border-radius:8px}
.method-close:hover{background:var(--s-subtle)}
.method dl{margin:0;border-top:1px solid var(--s-border);display:flex;flex-direction:column}
.method dl>div{display:flex;flex-direction:column;gap:4px;padding:14px 20px;border-bottom:1px solid var(--s-border)}
.method dl>div:last-child{border-bottom:0;padding-bottom:18px}
.method dt{font-size:14px;line-height:20px;font-weight:600;color:var(--s-h)}
.method dd{margin:0;font-size:14px;line-height:20px;color:var(--s-muted);text-wrap:pretty}

/* Incident history */
.hist-head{padding:clamp(12px,3cqi,24px) 0 clamp(24px,5cqi,40px);display:flex;flex-direction:column;gap:12px}
.back{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--s-muted);align-self:flex-start}
.hist-head h1{margin:0;font-family:"Inter Display",Inter,system-ui,sans-serif;font-size:clamp(24px,3.6cqi,36px);line-height:1.22;font-weight:600;letter-spacing:-0.02em;color:var(--s-h)}
.hist-head p{margin:0;font-size:16px;line-height:24px;color:var(--s-muted);text-wrap:pretty}
.hist-main{padding-top:clamp(24px,4cqi,40px);display:flex;flex-direction:column;gap:20px}
.month-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.month-nav h2{margin:0;min-width:0;white-space:nowrap;font-size:clamp(15px,2.4cqi,18px);line-height:28px;font-weight:600;color:var(--s-h);text-align:center}
.month-btn{flex:none;white-space:nowrap;display:flex;align-items:center;gap:4px;border:1px solid var(--s-border);border-radius:8px;background:var(--s-surface);font-size:14px;line-height:20px;font-weight:600;color:var(--s-text);box-shadow:var(--s-shadow);transition:background 100ms linear}
.month-btn.prev{padding:8px 12px 8px 8px}
.month-btn.next{padding:8px 8px 8px 12px}
.month-btn:hover{background:var(--s-subtle);text-decoration:none}
.month-btn.disabled{opacity:.4;pointer-events:none}
.month-btn svg{color:var(--s-muted)}
.m-short{display:none}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:clamp(32px,6cqi,56px) clamp(16px,4cqi,32px)}
.empty-icon{width:48px;height:48px;border-radius:999px;background:var(--ok-bg);border:1px solid var(--ok-border);color:var(--ok);display:flex;align-items:center;justify-content:center}
.empty-text{display:flex;flex-direction:column;gap:6px;max-width:420px}
.empty-text h3{margin:0;font-size:18px;line-height:28px;font-weight:600;color:var(--s-h)}
.empty-text p{margin:0;color:var(--s-muted);text-wrap:pretty}

/* Mobile: the frames use 390px. Show the latest 30 days of bars. */
@container (max-width:640px){
  .brand-div,.btn-primary svg{display:none}
  .bar:nth-child(-n+60){display:none}
  .lbl-90{display:none}
  .lbl-30{display:inline}
  .day-pop{left:0!important;width:100%}
  .m-long{display:none}
  .m-short{display:inline}
}
