/* AutoSync public status page (/status) — stand-alone light design. Brand: navy #0B1F3A, blue #1565C0. */
@font-face { font-family: "Geist"; src: url("../fonts/site/geistlatinwghtnormal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #0B1F3A;
  --blue: #1565C0;
  --blue-50: #EEF4FC;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E4E8EF;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --ok: #12855B;
  --ok-bg: #E9F7F0;
  --deg: #D99A00;
  --deg-bg: #FFF7E0;
  --part: #E8590C;
  --part-bg: #FFF0E6;
  --maj: #D22B2B;
  --maj-bg: #FDECEC;
  --mnt: #1565C0;
  --mnt-bg: #EAF2FC;
  --nodata: #D5DBE4;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.sp { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.sp a { color: var(--blue); text-decoration: none; }
.sp a:hover { text-decoration: underline; }
.sp h1, .sp h2, .sp h3, .sp h4 { margin: 0; color: var(--navy); letter-spacing: -0.01em; }
.sp-wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.sp-muted { color: var(--muted); }
.sp-small { font-size: 13px; }
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* header */
.sp-top { background: #fff; border-bottom: 1px solid var(--line); }
.sp-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.sp-brand { display: inline-flex; align-items: center; gap: 12px; }
.sp-brand:hover { text-decoration: none !important; }
.sp-brand img { display: block; height: 32px; width: auto; }
.sp-brand-tag { font-weight: 600; font-size: 13px; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: 3px 10px; }
.sp-top-nav { display: flex; align-items: center; gap: 18px; }
.sp-top-link { color: var(--ink-2) !important; font-size: 14px; }

.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy) !important; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.sp-btn:hover { text-decoration: none !important; border-color: #C9D2DE; }
.sp-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.sp-btn-primary:hover { background: #0F55A6; border-color: #0F55A6; }
.sp-btn-danger { background: var(--maj); border-color: var(--maj); color: #fff !important; }

.sp-main { padding-top: 32px; padding-bottom: 48px; }

/* overall banner */
.sp-banner { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); color: #fff; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .25); }
.sp-banner h1 { color: #fff; font-size: 24px; font-weight: 650; line-height: 1.2; }
.sp-banner p { margin: 4px 0 0; opacity: .92; }
.sp-banner-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.sp-banner-operational { background: linear-gradient(135deg, #12855B, #0E9F6E); }
.sp-banner-degraded { background: linear-gradient(135deg, #B57F00, #D99A00); }
.sp-banner-partial { background: linear-gradient(135deg, #C2410C, #E8590C); }
.sp-banner-major { background: linear-gradient(135deg, #B42318, #D22B2B); }
.sp-banner-maintenance { background: linear-gradient(135deg, var(--navy), var(--blue)); }

/* sections & cards */
.sp-sec { margin-top: 32px; }
.sp-sec > h2, .sp-sec-hd h2 { font-size: 18px; font-weight: 650; }
.sp-sec > h2 { margin-bottom: 12px; }
.sp-sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sp-sec-hd > span, .sp-sec-hd > a { font-size: 14px; }
.sp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.sp-h1 { font-size: 28px; margin-bottom: 8px !important; }
.sp-crumb { margin-bottom: 14px; font-size: 14px; }
.sp-kicker { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* incidents */
.sp-inc { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.sp-tone-degraded { border-left-color: var(--deg); }
.sp-tone-partial { border-left-color: var(--part); }
.sp-tone-major { border-left-color: var(--maj); }
.sp-tone-maintenance { border-left-color: var(--mnt); }
.sp-tone-resolved { border-left-color: var(--ok); }
.sp-inc-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sp-inc-hd h3 { font-size: 17px; font-weight: 650; line-height: 1.35; }
.sp-inc-hd h3 a { color: var(--navy); }
.sp-inc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.sp-pill { flex: none; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: #EEF1F5; color: var(--ink-2); }
.sp-pill-degraded { background: var(--deg-bg); color: #8A6100; }
.sp-pill-partial { background: var(--part-bg); color: #B4440A; }
.sp-pill-major { background: var(--maj-bg); color: #A51D1D; }
.sp-pill-maintenance { background: var(--mnt-bg); color: var(--blue); }
.sp-pill-resolved { background: var(--ok-bg); color: var(--ok); }
.sp-tl { list-style: none; margin: 14px 0 0; padding: 0; }
.sp-tl li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0 0; border-top: 1px solid #F0F2F6; margin-top: 12px; }
.sp-tl li:first-child { border-top: 0; margin-top: 0; padding-top: 4px; }
.sp-tl-st { font-weight: 650; color: var(--navy); font-size: 14px; }
.sp-tl-body p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.sp-tl-body time { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.sp-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; }

/* components + uptime bars */
.sp-comps { padding: 4px 20px; }
.sp-comp { padding: 18px 0; border-top: 1px solid var(--line); }
.sp-comp:first-child { border-top: 0; }
.sp-comp-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sp-comp-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.sp-comp-name strong { color: var(--navy); font-weight: 600; }
.sp-comp-desc { color: var(--muted); font-size: 13px; }
.sp-comp-st { flex: none; font-size: 13.5px; font-weight: 600; }
.sp-st-operational { color: var(--ok); }
.sp-st-degraded { color: #A87700; }
.sp-st-partial { color: var(--part); }
.sp-st-major { color: var(--maj); }
.sp-st-maintenance { color: var(--mnt); }
.sp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); flex: none; }
.sp-dot-degraded { background: var(--deg); box-shadow: 0 0 0 3px var(--deg-bg); }
.sp-dot-partial { background: var(--part); box-shadow: 0 0 0 3px var(--part-bg); }
.sp-dot-major { background: var(--maj); box-shadow: 0 0 0 3px var(--maj-bg); }
.sp-dot-maintenance { background: var(--mnt); box-shadow: 0 0 0 3px var(--mnt-bg); }
.sp-bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.sp-b { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--nodata); transition: opacity .12s; }
.sp-bars .sp-b:hover { opacity: .65; }
.sp-b-operational { background: #2BB37A; }
.sp-b-degraded { background: #F2B705; }
.sp-b-partial { background: #F07A2B; }
.sp-b-major { background: #E03E3E; }
.sp-b-maintenance { background: #4B8FDB; }
.sp-bars-ft { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sp-rule { flex: 1; height: 1px; background: var(--line); }
.sp-30 { display: none; }
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sp-legend i { display: inline-block; width: 10px; height: 10px; flex: none; }

/* subscribe */
.sp-sub { padding: 22px 24px; display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 8px 24px; align-items: center; }
.sp-sub > * { min-width: 0; }
.sp-sub h2 { font-size: 18px; }
.sp-sub p { margin: 4px 0 0; }
.sp-sub-form { display: flex; gap: 8px; }
.sp-sub-form input[type=email] { flex: 1; min-width: 0; height: 40px; border: 1px solid #CBD3DF; border-radius: 10px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; }
.sp-sub-form input[type=email]:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 101, 192, .18); }
.sp-notice { grid-column: 1 / -1; margin: 6px 0 0 !important; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.sp-notice-ok { background: var(--ok-bg); color: #0B6B48; }
.sp-notice-bad { background: var(--maj-bg); color: #A51D1D; }
.sp-sub-alt { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* past incidents */
.sp-days { border-top: 1px solid var(--line); }
.sp-day { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sp-day h4 { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.sp-day .sp-inc { margin-bottom: 8px; }
.sp-none { margin: 0; font-size: 14px; }
.sp-day-empty { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; }
.sp-day-empty h4 { margin: 0; font-weight: 600; color: var(--ink-2); }
.sp-month h2 { margin-bottom: 12px; }
.sp-empty { padding: 16px 20px; color: var(--muted); font-size: 14px; }
.sp-pager { display: flex; justify-content: space-between; margin-top: 28px; }

/* confirm / unsubscribe */
.sp-msg { max-width: 520px; margin: 24px auto; padding: 28px; text-align: center; }
.sp-msg h1 { font-size: 22px; margin-bottom: 8px; }
.sp-msg p { color: var(--ink-2); }
.sp-msg form { margin: 18px 0 8px; }
.sp-msg-ok { border-top: 4px solid var(--ok); }
.sp-msg-bad { border-top: 4px solid var(--maj); }
.sp-msg-info { border-top: 4px solid var(--blue); }

/* footer */
.sp-foot { border-top: 1px solid var(--line); background: #fff; }
.sp-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.sp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sp-foot a { color: var(--ink-2) !important; }

/* phone */
@media (max-width: 640px) {
  body.sp { font-size: 15px; }
  .sp-wrap { padding: 0 16px; }
  .sp-top-in { height: 58px; }
  .sp-brand img { height: 26px; }
  .sp-top-link { display: none; }
  .sp-top-nav .sp-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .sp-main { padding-top: 18px; }
  .sp-banner { padding: 18px; gap: 14px; }
  .sp-banner h1 { font-size: 20px; }
  .sp-banner-ic { width: 40px; height: 40px; }
  .sp-banner-ic svg { width: 22px; height: 22px; }
  .sp-comps { padding: 2px 16px; }
  .sp-comp-desc { display: none; }
  .sp-comp-name { flex-wrap: nowrap; }
  .sp-comp-name strong { line-height: 1.3; }
  .sp-b-old { display: none; }
  .sp-90 { display: none; }
  .sp-30 { display: inline; }
  .sp-bars { height: 30px; gap: 3px; }
  .sp-inc { padding: 16px; }
  .sp-inc-hd { flex-direction: column; gap: 6px; }
  .sp-tl li { grid-template-columns: 1fr; gap: 2px; }
  .sp-sub { grid-template-columns: 1fr; padding: 18px; }
  .sp-sub-form { margin-top: 8px; }
}
