.portal-header nav a[aria-current="page"] { color: var(--ice); }
.portal-page .portal-header { background: var(--bg-soft); border-bottom-color: var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.site-footer nav a { min-height: 36px; display: inline-flex; align-items: center; }
.ch-home-status { margin: 1.1rem 0 0; color: var(--ice); overflow-wrap: anywhere; }
.ch-disabled { opacity: .58; cursor: not-allowed; }
.ch-main { padding-top: 7rem; }
.ch-main h1 { margin: 0 0 1rem; font: 800 clamp(2rem, 5vw, 3.5rem)/1.07 var(--font-display); }
.ch-main h2 { margin: 0 0 .65rem; font: 750 clamp(1.35rem, 3vw, 2rem)/1.15 var(--font-display); }
.ch-main h3 { margin: 1.5rem 0 .65rem; font: 700 1.15rem/1.3 var(--font-display); }
.ch-main > p { max-width: 70ch; }
.ch-main a { color: var(--ice); }
.ch-panel {
  margin: 1.25rem 0; padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  overflow-wrap: anywhere;
}
.ch-incident { border-inline-start: 3px solid var(--ice-bright); padding-inline-start: 1rem; }
.ch-incident[data-level="Maintenance"], .ch-incident[data-level="Degraded performance"] { border-color: var(--warn); }
.ch-incident[data-level="Outage"] { border-color: var(--danger); }
.ch-incident[data-level="Resolved"] { border-color: var(--ok); }
.ch-meta { color: var(--muted); font-size: .9rem; }
.ch-note { white-space: pre-wrap; }
.ch-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.ch-panel label { display: block; margin: .55rem 0 .25rem; font-weight: 650; }
.ch-panel input, .ch-panel select, .ch-panel textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: .6rem .75rem;
  color: var(--text); background: var(--bg-soft); border: 1px solid var(--line-bright);
  border-radius: 8px; font: inherit;
}
.ch-panel textarea { resize: vertical; }
.ch-panel [hidden] { display: none; }
.ch-code {
  background: var(--panel-strong); border: 1px solid var(--line);
  border-radius: 10px; margin: .35rem 0; scroll-margin-top: 100px;
}
.ch-code summary { cursor: pointer; min-height: 44px; padding: .65rem .8rem; font-weight: 650; }
.ch-code code { margin-inline-end: .6rem; color: var(--ice-bright); white-space: nowrap; }
.ch-code-body, .ch-code > p { padding: 0 .85rem .85rem; }
.ch-code > p { margin: 0; }
.ch-code dt { font-weight: 700; }
.ch-code dd { margin: .1rem 0 .7rem; max-width: 76ch; }
.ch-report .button, .ch-incident .button { margin-top: .75rem; }
.ch-main [id]:target { scroll-margin-block-start: 100px; }

@media (max-width: 860px) {
  .portal-header { position: sticky; top: 0; height: auto; min-height: 66px; flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; padding-block: .35rem; background: var(--bg-soft); }
  .portal-header nav { order: 3; width: 100%; display: flex; justify-content: center; gap: .35rem 1rem; flex-wrap: wrap; }
  .portal-header nav a { min-height: 36px; display: inline-flex; align-items: center; }
  .portal-header.is-scrolled { height: auto; }
  .portal-header + main .hero, .portal-header + .ch-main { padding-top: 1.5rem; }
  .ch-main [id]:target { scroll-margin-block-start: 110px; }
}
