/* Outages: homepage banner + Client Hub status card. Filled by /js/outages.js from /status/feed.php.
   Outages are posted at /staff/outages/ (styles for that page: /staff/assets/outages.css).
   Brand colors only: orange #DD6226, deep orange #b84f1c, charcoal #373B40 / #2a2d31 / #1f2226. */
/* ---------- Homepage banner ---------- */
.ot-banner { color: #fff; font-size: .92rem; }
.ot-banner--down { background: #1f2226; }
.ot-banner--issue { background: #EFF0F1; color: #2a2d31; border-bottom: 1px solid #dcdee1; }
:root[data-theme="dark"] .ot-banner--issue { background: #2a2d31; color: #EFF0F1; border-bottom-color: #34363b; }
.ot-banner__row { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.ot-banner__pulse { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #DD6226; color: #fff; }
.ot-banner--issue .ot-banner__pulse { background: rgba(221,98,38,.16); color: #DD6226; }
.ot-banner__pulse .material-icons { font-size: 19px; }
.ot-banner__pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #DD6226; opacity: 0; animation: ot-ping 2s ease-out infinite; }
@keyframes ot-ping { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.ot-banner .ot-banner__text { color: inherit; margin: 0; flex: 1; min-width: 0; line-height: 1.4; }
.ot-banner .ot-banner__text b { color: #DD6226; font-family: var(--font-display); }
.ot-banner--issue .ot-banner__text b { color: #b84f1c; }
:root[data-theme="dark"] .ot-banner--issue .ot-banner__text b { color: #DD6226; }
.ot-banner__fix, .ot-banner__more { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ot-banner--issue .ot-banner__fix, .ot-banner--issue .ot-banner__more { background: rgba(55,59,64,.1); }
:root[data-theme="dark"] .ot-banner--issue .ot-banner__fix, :root[data-theme="dark"] .ot-banner--issue .ot-banner__more { background: rgba(255,255,255,.12); }
.ot-banner__go { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 99px; background: #DD6226; color: #fff; font: 700 .85rem var(--font-display); text-decoration: none; }
.ot-banner__go:hover { background: #b84f1c; color: #fff; }
.ot-banner__go .material-icons { font-size: 17px; transition: transform .2s; }
.ot-banner__go:hover .material-icons { transform: translateX(3px); }
.ot-banner__x { flex: none; background: none; border: 0; color: inherit; opacity: .75; cursor: pointer; padding: 4px; border-radius: 50%; display: grid; place-items: center; }
.ot-banner__x:hover { opacity: 1; background: rgba(128,128,128,.18); }
.ot-banner__x .material-icons { font-size: 20px; }
@media (max-width: 640px) {
  .ot-banner__row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic txt x" ". go go"; gap: 6px 10px; padding-left: 16px; padding-right: 10px; }
  .ot-banner__pulse { grid-area: ic; align-self: start; }
  .ot-banner .ot-banner__text { grid-area: txt; font-size: .86rem; }
  .ot-banner__x { grid-area: x; align-self: start; }
  .ot-banner__go { grid-area: go; justify-self: start; padding: 4px 12px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .ot-banner__pulse::after { animation: none; } }

/* ---------- Shared bits (Client Hub card + manager) ---------- */
.ot-facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; }
.ot-facts > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink); }
.ot-facts .material-icons { font-size: 16px; color: var(--cta); }
.ot-updates { list-style: none; margin: 14px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.ot-updates li { position: relative; font-size: .92rem; color: var(--ink); line-height: 1.45; }
.ot-updates li::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--cta); }
.ot-updates li:first-child::before { background: var(--cta); }
.ot-updates time { display: block; font-size: .76rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }

/* Client Hub: several cards stack; past incidents list */
#ot-status { display: grid; gap: 18px; }
#ot-status .st-hero.is-in { opacity: 1; transform: none; }
.ot-past__h { margin: 34px 0 12px; font-size: 1.05rem; }
.ot-past { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ot-past li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ot-past__ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.ot-past__ic .material-icons { font-size: 18px; }
.ot-past b { font-family: var(--font-display); }
.ot-past p { margin: 2px 0 0; font-size: .92rem; }
.ot-past small { display: block; margin-top: 4px; color: var(--ink-2); font-size: .8rem; }

.ot-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .82rem; }
.ot-banner[hidden], #ot-past[hidden] { display: none; }

/* ---------- Bigger homepage banner (v6) ---------- */
.ot-banner { font-size: 1rem; box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); position: relative; z-index: 2; }
.ot-banner--down { background: #1f2226; border-left: 0; box-shadow: inset 0 -4px 0 #DD6226, 0 6px 18px -8px rgba(0,0,0,.35); }
.ot-banner--issue { box-shadow: inset 0 -4px 0 #DD6226, 0 6px 18px -8px rgba(0,0,0,.2); }
.ot-banner__row { gap: 18px; padding-top: 18px; padding-bottom: 20px; }
.ot-banner__pulse { width: 48px; height: 48px; }
.ot-banner__pulse .material-icons { font-size: 30px; }
.ot-banner__pulse::after { inset: -6px; border-width: 3px; }
.ot-banner .ot-banner__title { margin: 0; color: inherit; font: 700 1.2rem/1.3 var(--font-display); }
.ot-banner .ot-banner__text .ot-banner__label { display: inline-block; vertical-align: 2px; margin-right: 10px; padding: 3px 10px; border-radius: 6px; background: #DD6226; color: #fff;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ot-banner--issue .ot-banner__text .ot-banner__label { background: #2a2d31; color: #fff; }
:root[data-theme="dark"] .ot-banner--issue .ot-banner__text .ot-banner__label { background: #DD6226; }
.ot-banner .ot-banner__sub { margin: 4px 0 0; color: inherit; opacity: .9; font-size: .95rem; line-height: 1.45; }
.ot-banner__fix { display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px; }
.ot-banner__fix .material-icons { font-size: 15px; }
.ot-banner__go { padding: 11px 20px; font-size: .95rem; box-shadow: 0 6px 16px -6px rgba(221,98,38,.7); }
.ot-banner__x .material-icons { font-size: 22px; }
@media (max-width: 640px) {
  .ot-banner__row { gap: 10px 12px; padding-top: 14px; padding-bottom: 16px; }
  .ot-banner__pulse { width: 38px; height: 38px; }
  .ot-banner__pulse .material-icons { font-size: 24px; }
  .ot-banner .ot-banner__title { font-size: 1.02rem; }
  .ot-banner .ot-banner__label { display: table; margin: 0 0 4px; }
  .ot-banner .ot-banner__sub { font-size: .86rem; }
  .ot-banner__go { padding: 8px 16px; font-size: .88rem; margin-top: 4px; }
}


/* Client Hub hero chip when something is live */
.hub-quick__chip--alert { border-color: #DD6226 !important; color: #b84f1c !important; font-weight: 700; }
.hub-quick__chip--alert .hub-quick__dot { background: #DD6226 !important; box-shadow: 0 0 0 0 rgba(221,98,38,.6); animation: ot-dot 1.8s ease-out infinite; }
:root[data-theme="dark"] .hub-quick__chip--alert { color: #DD6226 !important; }
@keyframes ot-dot { 0% { box-shadow: 0 0 0 0 rgba(221,98,38,.6); } 100% { box-shadow: 0 0 0 8px rgba(221,98,38,0); } }
@media (prefers-reduced-motion: reduce) { .hub-quick__chip--alert .hub-quick__dot { animation: none; } }
/* Status now sits right under the hero: a little less space above */
.ot-hub-top { padding-top: 48px; }
.ot-pastbox { margin-top: 18px; }
.ot-pastbox summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font: 600 .9rem var(--font-display); color: var(--ink); }
.ot-pastbox summary::-webkit-details-marker { display: none; }
.ot-pastbox summary:hover { border-color: var(--cta); }
.ot-pastbox summary .material-icons { font-size: 18px; color: var(--cta); }
.ot-pastbox .ot-count { min-width: 22px; height: 22px; font-size: .75rem; }
.ot-pastbox__chev { transition: transform .2s; }
.ot-pastbox[open] .ot-pastbox__chev { transform: rotate(180deg); }
.ot-pastbox .ot-past { margin-top: 12px; }

/* Monitoring: a fix is in, we're watching it. Calmer gray, no ping. */
.ot-banner--watch { background: #EFF0F1; color: #2a2d31; box-shadow: inset 0 -4px 0 #646A73, 0 6px 18px -8px rgba(0,0,0,.2); }
:root[data-theme="dark"] .ot-banner--watch { background: #2a2d31; color: #EFF0F1; }
.ot-banner--watch .ot-banner__pulse { background: rgba(100,106,115,.16); color: #646A73; }
:root[data-theme="dark"] .ot-banner--watch .ot-banner__pulse { color: #dcdee1; }
.ot-banner--watch .ot-banner__pulse::after { animation: none; }
.ot-banner--watch .ot-banner__text .ot-banner__label { background: #646A73; color: #fff; }
.ot-banner--watch .ot-banner__more { background: rgba(55,59,64,.1); }
:root[data-theme="dark"] .ot-banner--watch .ot-banner__more { background: rgba(255,255,255,.12); }
.ot-banner .ot-banner__text .ot-banner__upd { margin-right: 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.ot-banner--watch .ot-banner__text .ot-banner__upd { color: #646A73; }
:root[data-theme="dark"] .ot-banner--watch .ot-banner__text .ot-banner__upd { color: #dcdee1; }
.st-hero--watch { box-shadow: 0 24px 50px -32px rgba(55,59,64,0.4); }
.st-hero--watch::before { background: #646A73; }
.st-hero--watch .st-hero__ring, .st-hero--watch .st-hero__live { background: #eceef0; color: #373B40; }
.st-hero--watch .st-hero__ring::after { border-color: rgba(100,106,115,0.4); }
.st-hero--watch .st-hero__live i { background: #646A73; }
:root[data-theme="dark"] .st-hero--watch::before { background: #dcdee1; }
:root[data-theme="dark"] .st-hero--watch .st-hero__ring, :root[data-theme="dark"] .st-hero--watch .st-hero__live { background: #2e3035; color: #dcdee1; }
:root[data-theme="dark"] .st-hero--watch .st-hero__live i { background: #dcdee1; }

/* Planned maintenance: scheduled heads-up. Light bar, charcoal label, no ping. */
.ot-banner--maint { background: #EFF0F1; color: #2a2d31; box-shadow: inset 0 -4px 0 #373B40, 0 6px 18px -8px rgba(0,0,0,.2); }
:root[data-theme="dark"] .ot-banner--maint { background: #2a2d31; color: #EFF0F1; box-shadow: inset 0 -4px 0 #DD6226, 0 6px 18px -8px rgba(0,0,0,.2); }
.ot-banner--maint .ot-banner__pulse { background: rgba(221,98,38,.16); color: #DD6226; }
.ot-banner--maint .ot-banner__pulse::after { animation: none; }
.ot-banner--maint .ot-banner__text .ot-banner__label { background: #373B40; color: #fff; }
:root[data-theme="dark"] .ot-banner--maint .ot-banner__text .ot-banner__label { background: #DD6226; }
.ot-banner--maint .ot-banner__fix, .ot-banner--maint .ot-banner__more { background: rgba(55,59,64,.1); }
:root[data-theme="dark"] .ot-banner--maint .ot-banner__fix, :root[data-theme="dark"] .ot-banner--maint .ot-banner__more { background: rgba(255,255,255,.12); }
.ot-banner--maint .ot-banner__text .ot-banner__upd { color: #373B40; }
:root[data-theme="dark"] .ot-banner--maint .ot-banner__text .ot-banner__upd { color: #DD6226; }
.st-hero--maint { box-shadow: 0 24px 50px -32px rgba(55,59,64,0.4); }
.st-hero--maint::before { background: #373B40; }
.st-hero--maint .st-hero__ring, .st-hero--maint .st-hero__live { background: #eceef0; color: #373B40; }
.st-hero--maint .st-hero__ring .material-icons { color: #DD6226; }
.st-hero--maint .st-hero__ring::after { border-color: rgba(55,59,64,0.3); }
.st-hero--maint .st-hero__live i { background: #DD6226; }
:root[data-theme="dark"] .st-hero--maint::before { background: #DD6226; }
:root[data-theme="dark"] .st-hero--maint .st-hero__ring, :root[data-theme="dark"] .st-hero--maint .st-hero__live { background: #2e3035; color: #dcdee1; }
