/* status.pagelemon.com. Same tokens, fonts and shapes as the marketing site (site/styles.css, "Zest Pop"), with its
   ready dark tokens switched on by the reader's system setting. One loud moment: the headline card. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-display: swap; font-weight: 100 700; src: url(/fonts/dm-sans-latin-opsz-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-display: swap; font-weight: 100 700; src: url(/fonts/dm-sans-latin-ext-opsz-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/dm-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 700; src: url(/fonts/unbounded-latin-wght-normal.woff2) format('woff2'); }

:root {
  --bg: #FFF8D6; --field: #FFE45C; --brand: #1B2A9E; --ink: #1E1D19; --muted: #5F5D55; --primary: #2340D8; --on-primary: #FFFFFF;
  --paper: #FFFDF5; --surface: #FFFFFF; --line: rgba(30, 29, 25, 0.14); --line-strong: #1B2A9E;
  --ok: #1E5B34; --ok-bg: #E3F4E8; --ok-bar: #1F7A45; --ok99-bar: #3FAE6A; --ok98-bar: #8FD3A6;
  --minor: #8A5300; --minor-bg: #FFF0C7; --minor-bar: #E8A317;
  --major: #B42318; --major-bg: #FDECEA; --major-bar: #D93A2B;
  --none-bar: rgba(30, 29, 25, 0.12);
  --logo-ink: #1B2A9E;
  --display: 'Unbounded', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 14px; --radius-lg: 24px; --gutter: 16px; --pop: 6px 6px 0 var(--line-strong);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1440; --field: #18205A; --ink: #FFF4C2; --brand: #FFE45C; --muted: #B4B9E0; --primary: #FFE04A; --on-primary: #0E1440;
    --paper: #141B4D; --surface: #1B2463; --line: rgba(255, 244, 194, 0.16); --line-strong: #FFF4C2;
    --ok: #8EDBA8; --ok-bg: #173A2A; --ok-bar: #5FD08A; --ok99-bar: #3A9A61; --ok98-bar: #2A6E46;
    --minor: #FFD27A; --minor-bg: #3A3016; --minor-bar: #F2B33D;
    --major: #FF8A80; --major-bg: #3A1730; --major-bar: #FF6B5E;
    --none-bar: rgba(255, 244, 194, 0.14);
    --logo-ink: #0E1440;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 30; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Header */
.top-row { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
/* The logo (brand kit): the horizontal lockup from the marketing site, its on-dark copy in the dark theme. */
.logo { display: block; width: auto; height: 28px; }
.top-tag { font: 600 13px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 6px 10px; }
.top-link { margin-left: auto; font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 2px; }
.top-link:hover { text-decoration: underline; }

/* Headline card: the page's one loud moment */
.hero { margin: 8px 0 28px; }
.hero-card { display: flex; gap: 18px; align-items: center; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--field);
  border: 2px solid var(--line-strong); box-shadow: var(--pop); color: #1B2A9E; }
.hero-card h1 { font: 700 clamp(26px, 2.4vw + 16px, 38px)/1.1 var(--body); letter-spacing: -0.025em; color: inherit; }
.hero-sub { margin-top: 6px; font-size: 15px; color: inherit; opacity: 0.82; }
.hero-mark { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ok-bar); position: relative; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35); }
.hero-mark::after { content: ''; position: absolute; left: 14px; top: 11px; width: 10px; height: 18px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.hero-card[data-level="minor"], .hero-card[data-level="maintenance"], .hero-card[data-level="stale"] { background: #FFE9A8; }
.hero-card[data-level="minor"] .hero-mark, .hero-card[data-level="maintenance"] .hero-mark, .hero-card[data-level="stale"] .hero-mark { background: var(--minor-bar); }
.hero-card[data-level="major"] { background: #FFD9D3; }
.hero-card[data-level="major"] .hero-mark { background: var(--major-bar); }
.hero-card:not([data-level="ok"]) .hero-mark::after { left: 18.5px; top: 9px; width: 0; height: 17px; border-width: 0 4px 0 0; transform: none; border-radius: 2px; }
.hero-card:not([data-level="ok"]) .hero-mark::before { content: ''; position: absolute; left: 18.5px; top: 29px; width: 4px; height: 4px; border-radius: 2px; background: #fff; }
@media (prefers-color-scheme: dark) {
  .hero-card { background: var(--field); color: var(--ink); border-color: #FFE45C; box-shadow: 6px 6px 0 #FFE45C; }
  .hero-card[data-level="minor"], .hero-card[data-level="maintenance"], .hero-card[data-level="stale"] { background: var(--minor-bg); }
  .hero-card[data-level="major"] { background: var(--major-bg); }
}
#open-notes .note { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--minor-bar); border-radius: var(--radius); padding: 18px 20px; }
#open-notes .note[data-level="major"] { border-left-color: var(--major-bar); }
#open-notes .note h2 { font: 650 19px/1.3 var(--body); }
#open-notes .note h2 a { color: var(--ink); text-decoration: none; }
#open-notes .note h2 a:hover { text-decoration: underline; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 24px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 8px; }
.card-head h2, .follow h2, .about h2 { font: 650 21px/1.25 var(--body); letter-spacing: -0.015em; }
.card-note { font-size: 14px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Parts with their bars */
.part-list { list-style: none; margin: 0; padding: 0; }
.part { padding: 18px 0 16px; border-top: 1px solid var(--line); }
.part:first-child { border-top: 0; }
.part-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.part h3 { font: 600 17px/1.3 var(--body); }
.part-what { font-size: 14px; color: var(--muted); margin-top: 2px; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--body); padding: 6px 10px 6px 9px; border-radius: 999px; background: var(--line); color: var(--muted); white-space: nowrap; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill[data-level="ok"] { background: var(--ok-bg); color: var(--ok); }
.pill[data-level="minor"], .pill[data-level="maintenance"] { background: var(--minor-bg); color: var(--minor); }
.pill[data-level="major"] { background: var(--major-bg); color: var(--major); }
.bars { display: flex; gap: 2px; height: 34px; margin-top: 12px; }
.bars i { flex: 1 1 0; min-width: 0; border-radius: 3px; transition: transform 120ms ease, opacity 120ms ease; cursor: default; }
.bars:hover i { opacity: 0.55; }
.bars i:hover { opacity: 1; transform: scaleY(1.12); }
.lv-ok { background: var(--ok-bar); }
.lv-ok-99 { background: var(--ok99-bar); }
.lv-ok-98 { background: var(--ok98-bar); }
.lv-minor { background: var(--minor-bar); }
.lv-major { background: var(--major-bar); }
.lv-none { background: var(--none-bar); }
.bars-foot { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.bars-foot::before { content: ''; order: 1; flex: 1; height: 1px; background: var(--line); }
.bars-foot > :nth-child(n+3) { order: 2; }
.bars-foot > :last-child { order: 4; }
.bars-foot .pct { font-weight: 600; color: var(--ink); }
.bars-foot .pct-30, .bars-foot .when-30 { display: none; }
.bars-foot::after { content: ''; order: 3; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 599px) { /* phones: the last 30 days, so each day stays wide enough to see and tap */
  .bars i.old { display: none; }
  .bars { gap: 3px; }
  .bars-foot .when-90, .bars-foot .pct-90 { display: none; }
  .bars-foot .when-30, .bars-foot .pct-30 { display: inline; }
  .top-link { font-size: 14px; white-space: nowrap; }
  .top-tag { padding: 5px 8px; font-size: 12px; }
}
.tip { position: absolute; z-index: 20; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 8px 11px; font-size: 13px; line-height: 1.35; display: grid; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.note { padding: 18px 0; border-top: 1px solid var(--line); }
.note-list .note:first-child { border-top: 0; padding-top: 8px; }
.note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.note h3 { font: 650 18px/1.3 var(--body); }
.note-meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.updates { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.updates li { position: relative; }
.updates li::before { content: ''; position: absolute; left: -24px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.updates li:first-child::before { background: var(--minor-bar); border-color: var(--minor-bar); }
.note[data-level="major"] .updates li:first-child::before { background: var(--major-bar); border-color: var(--major-bar); }
.note.done .updates li:first-child::before { background: var(--ok-bar); border-color: var(--ok-bar); }
.up-head { font-size: 14px; color: var(--muted); }
.up-head b { color: var(--ink); font-weight: 650; margin-right: 4px; }
.up-body { margin-top: 2px; white-space: pre-line; }
.empty { color: var(--muted); padding: 6px 0 4px; }
.empty b { color: var(--ink); font-weight: 600; }
.note { scroll-margin-top: 16px; }
.note:target { background: linear-gradient(var(--bg), var(--bg)) padding-box; border-radius: var(--radius); padding-left: 14px; padding-right: 14px; }

/* Get updates */
.follow { display: grid; gap: 14px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--paper); border: 1.5px dashed var(--line-strong); margin-bottom: 24px; }
.follow p { color: var(--muted); margin-top: 4px; max-width: 60ch; }
.feed-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.feed-line code { padding: 9px 12px; font-size: 14px; border-radius: 10px; background: var(--surface); flex: 1 1 260px; }
.copy, .btn { font: 600 15px/1 var(--body); min-height: 44px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: none; }
.copy { background: var(--primary); color: var(--on-primary); border: 0; }
.copy:hover { filter: brightness(0.92); }
.btn { border: 1.5px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn:hover { background: var(--bg); }

.about { padding: 4px 4px 8px; }
.about ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; font-size: 15px; }
.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { position: relative; color: var(--muted); }
.foot a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); } /* 44 px hit area */

@media (max-width: 599px) {
  .top-row { min-height: 60px; gap: 10px; }
  .logo { height: 24px; }
  .hero-card { padding: 20px; gap: 14px; align-items: flex-start; box-shadow: 4px 4px 0 var(--line-strong); }
  .hero-mark { width: 36px; height: 36px; margin-top: 2px; }
  .hero-mark::after { left: 11px; top: 7px; }
  .hero-card:not([data-level="ok"]) .hero-mark::after { left: 14.5px; top: 6px; height: 14px; }
  .hero-card:not([data-level="ok"]) .hero-mark::before { left: 14.5px; top: 23px; }
  .card, .follow { padding: 20px 18px; border-radius: 18px; }
  .legend { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bars i { transition: none; } }
@media (max-width: 380px) { /* 320 px phones: logo, Status tag and "Get updates" on one row without widening the page */
  .top-row { gap: 8px; }
  .logo { height: 20px; }
  .top-tag { padding: 4px 6px; font-size: 11px; }
}
