/* Prophix status page styling. Ships inside footer.html with the script. The custom header HTML
 * stays empty: on a custom domain it replaces Statuspage's masthead (logo, Subscribe button).
 * Layout: region columns grouped by area, products as rows.
 * Brand: Prophix red EF363D for brand moments only (Subscribe, active region, links); Arial.
 * Status colors are separate from the brand red, and each status icon has its own shape. */
:root {
  --px-brand: #EF363D; --px-brand-dark: #D42B32; --px-brand-tint: rgba(239, 54, 61, .14);
  --px-bg: #F9F9F9; --px-surface: #FFFFFF; --px-fg: #1A1D23; --px-muted: #5E6470; --px-line: #E4E3EA; --px-band: #F3F2F6;
  --px-ok: #1E8E5A; --px-warn: #C77C02; --px-bad: #A8231C; --px-maint: #4E4EAC; --px-nodata: #B8BCC6;
  --px-font: Arial, Helvetica, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --px-bg: #111318; --px-surface: #181B22; --px-fg: #ECEDF1; --px-muted: #A0A6B2; --px-line: #2A2E38; --px-band: #1F232B;
    --px-ok: #34C27F; --px-warn: #E8A33A; --px-bad: #F2615B; --px-maint: #8C8CE0; --px-nodata: #4A505C;
  }
}
.px-matrix-on .layout-content.status-index > .container > .components-section,
.px-matrix-on .status-index .components-section { display: none; }
/* No flash of the old layout: Statuspage's list and About block are hidden from the first paint
 * (this rule must also be in the console's Custom CSS, which loads in <head>; the footer loads too
 * late). The script then removes them (px-matrix-on) or, if it fails, shows them again (px-fallback).
 * If the script never runs, they reappear after 4s. */
@keyframes px-reveal { to { visibility: visible; } }
html:not(.px-matrix-on):not(.px-fallback) .layout-content.status-index .components-section,
html:not(.px-matrix-on):not(.px-fallback) .layout-content.status-index .text-section:has(#about-this-site) { visibility: hidden; animation: px-reveal 0s 4s forwards; }

/* Wider page than Statuspage's default ~850px column, so the pod table fits.
 * The masthead (logo + Subscribe) has its own width, so it gets the same column. */
body .container, .masthead-container .masthead { width: auto !important; max-width: 1180px !important; padding-left: 24px !important; padding-right: 24px !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
.masthead { display: flex !important; align-items: center !important; justify-content: space-between !important; padding-top: 28px !important; padding-bottom: 20px !important; }
.masthead-container { width: 100% !important; max-width: none !important; }
.masthead .logo-container { flex: 0 1 auto !important; width: auto !important; float: none !important; display: block !important; text-align: left !important; }
.masthead .updates-dropdown-container { margin-left: auto !important; float: none !important; width: auto !important; text-align: right !important; }
.masthead .logo-container img { max-height: 44px !important; width: auto !important; }

/* Statuspage's overall status banner: same shape as the cards, our status colors */
.layout-content.status.status-index .page-status { border-radius: 10px !important; box-shadow: none !important; }
.layout-content.status.status-index .page-status.status-none { background-color: var(--px-ok) !important; }
.layout-content.status.status-index .page-status .status { font-family: var(--px-font) !important; font-weight: 700 !important; font-size: 18px !important; }
/* Overall status centered: Statuspage floats the text left and the (empty) timestamp right. */
.layout-content.status.status-index .page-status { text-align: center !important; }
.layout-content.status.status-index .page-status .status,
.layout-content.status.status-index .page-status .last-updated-stamp { float: none !important; display: block; width: 100%; text-align: center !important; }
.layout-content.status.status-index .page-status .last-updated-stamp:empty { display: none; }

.px-status { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 20px; color: var(--px-fg); font-family: var(--px-font); }
.px-status * { font-family: var(--px-font); box-sizing: border-box; }

/* One font for the whole page: Statuspage's own sections (Scheduled Maintenance, history, footer)
 * in Arial too. Icon elements (Font Awesome "fa-" classes, "icon" classes) keep their icon font. */
body, .layout-content, .page-footer,
.layout-content :is(h1, h2, h3, h4, h5, h6, p, a, li, label, input, button, small, strong, div),
.layout-content span:not([class*="fa"]):not([class*="icon"]),
.page-footer :is(p, a, div, span:not([class*="fa"]):not([class*="icon"])) {
  font-family: var(--px-font) !important;
}
/* Statuspage's section headings in the same style as the table headings */
.layout-content.status-index h2.font-largest { font-size: 20px !important; font-weight: 700 !important; letter-spacing: -.005em; color: var(--px-fg); }

/* Toolbar: region switcher on the left, legend on the right */
.px-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.px-tabs { display: inline-flex; padding: 3px; gap: 2px; background: var(--px-band); border: 1px solid var(--px-line); border-radius: 10px; }
.px-tab { font-size: 13px; font-weight: 700; letter-spacing: .01em; padding: 8px 18px; border: 0; border-radius: 7px; background: transparent; color: var(--px-muted); cursor: pointer; line-height: 1.1; transition: background .15s, color .15s; }
.px-tab:hover { color: var(--px-fg); background: var(--px-surface); }
.px-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.px-tab .px-icon { width: 15px; height: 15px; }
.px-tab[aria-pressed="true"] .px-icon circle { stroke: #FFFFFF; stroke-width: 1.5; }
.px-tab[aria-pressed="true"] { background: var(--px-brand); color: #FFFFFF; box-shadow: 0 1px 2px rgba(239, 54, 61, .35); }
.px-tab:focus-visible { outline: 2px solid var(--px-brand); outline-offset: 2px; }
.px-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--px-muted); }
.px-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.px-legend .px-icon { width: 14px; height: 14px; }

/* Sections */
.px-bodywrap, .px-body { display: flex; flex-direction: column; gap: 18px; }
.px-section { background: var(--px-surface); border: 1px solid var(--px-line); border-radius: 10px; overflow: hidden; min-width: 0; }
.px-section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 20px 12px; }
.px-section-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--px-fg); letter-spacing: -.005em; }
.px-section-head p { margin: 0; font-size: 13px; color: var(--px-muted); }
.px-empty { margin: 0; padding: 20px; color: var(--px-muted); background: var(--px-surface); border: 1px dashed var(--px-line); border-radius: 10px; }

/* Tables */
.px-scroll { overflow-x: auto; border-top: 1px solid var(--px-line); }
.px-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.px-table th, .px-table td { padding: 10px 10px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--px-line); }
.px-table tr:last-child td, .px-table tr:last-child th { border-bottom: 0; }
.px-table .px-corner, .px-table .px-rowhead { text-align: left; position: sticky; left: 0; background: var(--px-surface); padding-left: 20px; min-width: 210px; }
.px-area-row th { background: var(--px-band); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--px-muted); padding: 7px 10px; }
.px-area-row th + th { border-left: 1px solid var(--px-line); }
.px-area-row .px-corner { background: var(--px-band); }
.px-region-row th { font-size: 12px; font-weight: 700; color: var(--px-fg); padding: 8px 10px 2px; border-bottom: 0; }
.px-region-row th + th { border-left: 1px solid var(--px-line); }
.px-label-row th { font-size: 11.5px; font-weight: 400; color: var(--px-muted); padding-top: 4px; }
.px-label-row .px-corner { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.px-rowhead { font-size: 14px; font-weight: 400; color: var(--px-fg); }
.px-table tr:hover > td, .px-table tr:hover > .px-rowhead { background: var(--px-band); }
.px-na { font-size: 14px; color: var(--px-nodata); }
.px-cash td { border-left: 1px solid var(--px-line); }

/* Status icons: disc + white glyph */
.px-icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.px-icon circle { fill: var(--px-nodata); }
.px-icon path { fill: none; stroke: #FFFFFF; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.px-ok circle { fill: var(--px-ok); } .px-warn circle { fill: var(--px-warn); }
.px-bad circle { fill: var(--px-bad); } .px-maint circle { fill: var(--px-maint); }

/* Services with no region: one cell spanning all region columns */
.px-global-cell { text-align: left !important; padding-left: 20px !important; }
.px-global-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--px-muted); }

/* Statuspage's own Subscribe button, dialog buttons and links */
.updates-dropdown-container .show-updates-dropdown,
.flat-button, .flat-button.full-width { background: var(--px-brand) !important; border: 0 !important; color: #FFFFFF !important; font-family: var(--px-font) !important; font-weight: 700 !important; font-size: 14px !important; text-transform: none !important; letter-spacing: normal !important; border-radius: 8px !important; padding: 10px 20px !important; box-shadow: 0 1px 2px rgba(239, 54, 61, .35) !important; text-decoration: none !important; }
.updates-dropdown-container .show-updates-dropdown:hover, .flat-button:hover { background: var(--px-brand-dark) !important; }
.updates-dropdown-container .show-updates-dropdown:focus-visible, .flat-button:focus-visible { outline: 2px solid var(--px-fg) !important; outline-offset: 2px; }
a { color: var(--px-brand); }

/* Short note under the tables (replaces Statuspage's "About This Site" block) */
.px-hidden { display: none !important; }
.px-note { margin: -4px auto 40px; max-width: 640px; text-align: center; font-size: 13px; line-height: 1.7; color: var(--px-muted); }
.px-note a { color: var(--px-muted) !important; text-decoration: underline !important; text-underline-offset: 2px; }
.px-note a:hover { color: var(--px-fg) !important; }

/* Phones: lists instead of wide tables */
.px-mlist { display: none; }
.px-mregion { padding: 9px 16px 7px; background: var(--px-band); border-bottom: 1px solid var(--px-line); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--px-muted); }
.px-mrow, .px-mpod > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--px-line); font-size: 14px; color: var(--px-fg); }
.px-mstatus { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; color: var(--px-muted); }
.px-mname { min-width: 0; }
.px-mpod > summary { cursor: pointer; list-style: none; font-weight: 700; }
.px-mpod > summary::-webkit-details-marker { display: none; }
.px-mpod > summary .px-mname::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-right: 2px solid var(--px-muted); border-bottom: 2px solid var(--px-muted); transform: rotate(-45deg); transition: transform .15s; vertical-align: 1px; }
.px-mpod[open] > summary .px-mname::before { transform: rotate(45deg); }
.px-mpod > summary:focus-visible { outline: 2px solid var(--px-brand); outline-offset: -2px; }
.px-msub { padding-left: 33px; font-size: 13px; background: var(--px-surface); }
.px-mlist > :last-child, .px-mlist > .px-mpod:last-child > :last-child { border-bottom: 0; }

@media (max-width: 640px) {
  .px-scroll { display: none; }
  .px-mlist { display: block; border-top: 1px solid var(--px-line); }
  .px-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .px-tabs { display: flex; }
  .px-tab { flex: 1; padding: 9px 6px; }
  .px-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .px-section-head { padding: 14px 16px 12px; }
  .px-status { margin: 20px 0 24px; gap: 16px; }
  body .container, .masthead-container .masthead { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (prefers-reduced-motion: reduce) { .px-tab, .px-mpod > summary .px-mname::before { transition: none; } }