/* Public v7 language from PR #851; isolated from the application's theme. */
:root {
  --paper: #f4f5f8;
  --white: #fff;
  --ink: #1c1f2a;
  --muted: #4a4f5e;
  --dim: #6a6f7e;
  --line: #e1e3e9;
  --navy: #1b2559;
  --coral: #f0644a;
  --dark: #16181d;
  --on-dark: #bfc2cc;
  --green: #25664b;
  --green-wash: #edf5ef;
  --amber: #89590d;
  --amber-wash: #fff4dc;
  --red: #b12f36;
  --red-wash: #fcecef;
  --gray: #848997;
  --mono: "SF Mono", ui-monospace, monospace;
  --display: "Fraunces", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font:
    15px/1.6 Inter,
    system-ui,
    sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
.wrap {
  width: min(100% - 80px, 1180px);
  margin-inline: auto;
}
.nav {
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font: 500 25px var(--display);
  letter-spacing: -0.04em;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.mark-ring {
  stroke: var(--coral);
}
.nav nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
}
.nav .active {
  color: var(--navy);
  font-weight: 600;
}
.back {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 16px;
}
.back span {
  margin-left: 14px;
}
.hero {
  text-align: center;
  padding-top: 70px;
}
.eyebrow {
  font: 500 10px/1.5 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.hero > .eyebrow {
  justify-content: center;
}
.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
h1 {
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin: 22px 0;
}
h1 em,
h2 em {
  font: 400 1.04em/1.1 var(--display);
  color: var(--navy);
  letter-spacing: -0.045em;
}
.lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}
.sky-panel {
  margin-top: 42px;
  background: var(--navy) url("./assets/sky.webp") center 47% / cover;
  border-radius: 20px;
  padding: 50px 50px 17px;
  position: relative;
  overflow: hidden;
}
.overview {
  max-width: 830px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 auto;
}
.overview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 17px 26px;
}
.overview-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}
/* A healthy state must read as such at a glance: green card edge, green
   masthead, solid green check and a green title. Other states keep their
   semantic colour on the same elements, always next to a text label. */
.overview[data-state="operational"] {
  border-color: #a9d3bb;
  box-shadow: 0 0 0 5px rgba(37, 102, 75, 0.14);
}
.overview[data-state="operational"] .overview-top {
  background: var(--green-wash);
  border-bottom-color: #cfe6d8;
}
.overview[data-state="operational"] .overall-body h2 {
  color: var(--green);
}
.overview[data-state="degraded"] {
  border-color: #e6cf9a;
}
.overview[data-state="degraded"] .overview-top {
  background: var(--amber-wash);
}
.overview[data-state="degraded"] .overall-body h2 {
  color: var(--amber);
}
.overview[data-state="outage"] {
  border-color: #e7a9ad;
}
.overview[data-state="outage"] .overview-top {
  background: var(--red-wash);
}
.overview[data-state="outage"] .overall-body h2 {
  color: var(--red);
}
.overall-body {
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 28px 26px;
}
.signal {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--paper);
  color: var(--dim);
}
.signal.operational {
  color: var(--white);
  background: var(--green);
  font-weight: 700;
}
.signal.degraded {
  color: var(--amber);
  background: var(--amber-wash);
}
.signal.outage {
  color: var(--red);
  background: var(--red-wash);
}
.overall-body h2 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.overall-body p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.overview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: var(--paper);
  border-radius: 0 0 16px 16px;
  font-size: 11px;
  color: var(--muted);
}
#refresh {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--navy);
  font-size: 11px;
  white-space: nowrap;
}
#refresh span {
  margin-left: 12px;
}
#refresh:disabled {
  opacity: 0.5;
  cursor: wait;
}
.sky-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  margin-top: 24px;
  font: 9px/1.5 var(--mono);
  text-shadow: 0 1px 4px var(--navy);
}
.service-section {
  padding-top: 70px;
  padding-bottom: 65px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 550;
  margin-top: 11px;
}
.section-heading > p {
  font-size: 11px;
  color: var(--dim);
}
.table-heading {
  display: grid;
  grid-template-columns: 1fr 90px 210px 140px;
  gap: 24px;
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.table-heading span:last-child {
  text-align: right;
}
.service {
  border-bottom: 1px solid var(--line);
}
.service summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 210px 140px;
  gap: 24px;
  align-items: center;
  padding: 20px;
}
.service summary::-webkit-details-marker {
  display: none;
}
.service summary:hover {
  background: var(--paper);
}
.service-name {
  font-size: 14px;
  font-weight: 550;
}
.service-name::before {
  content: "+";
  font: 14px var(--mono);
  color: var(--dim);
  display: inline-block;
  width: 24px;
}
.service[open] .service-name::before {
  content: "−";
}
.state {
  font: 500 10px/1.4 var(--mono);
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-self: end;
}
.state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.state.operational {
  color: var(--green);
}
.state.degraded {
  color: var(--amber);
}
.state.outage {
  color: var(--red);
}
.state.unknown {
  color: var(--dim);
}
.bars {
  display: flex;
  gap: 3px;
  height: 24px;
  align-items: stretch;
}
.bar {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
  background: var(--line);
}
.service-detail {
  padding: 0 20px 24px 44px;
  font-size: 12px;
  color: var(--muted);
}
.service-detail p {
  margin-bottom: 12px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checks li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.checks li span:last-child {
  font-size: 11px;
  text-align: right;
  flex-shrink: 0;
}
.legend {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 10px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--gray);
}
.legend .operational {
  background: var(--green);
}
.legend .degraded {
  background: var(--amber);
}
.legend .outage {
  background: var(--red);
}
/* Same fill as an unverified chart bar; ringed so the dot shows on white. */
.legend .unknown {
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--gray);
}
.footnote {
  max-width: 730px;
  margin-top: 24px;
  font-size: 11px;
  color: var(--dim);
}
.history-section {
  background: var(--paper);
  padding: 55px 0;
}
.observation {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.observation time {
  color: var(--dim);
  font-size: 11px;
}
.observation h3 {
  font-size: 13px;
  font-weight: 550;
}
.observation p {
  color: var(--muted);
  margin-top: 4px;
}
.muted {
  color: var(--dim);
}
.method-section {
  padding-block: 65px;
}
.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  border-radius: 20px;
  background: var(--dark);
  color: var(--white);
  padding: 45px;
}
.method .eyebrow {
  color: var(--on-dark);
}
.method h2 {
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-top: 20px;
}
.method h2 em {
  color: var(--white);
}
.method p:not(.eyebrow) {
  color: var(--on-dark);
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 15px;
}
.method a {
  font-size: 12px;
}
.method a span {
  margin-left: 15px;
}
.footer {
  border-top: 1px solid var(--line);
  padding-block: 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
}
.footer > span {
  font-size: 13px;
}
.footer > span .muted {
  font-size: 10px;
  margin-left: 10px;
}
.notice {
  padding: 16px;
  background: var(--amber-wash);
  color: var(--amber);
  margin-top: 20px;
  border-radius: 12px;
  font-size: 13px;
  text-align: left;
}
.skeleton {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    100deg,
    var(--white) 25%,
    var(--paper) 50%,
    var(--white) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.skip {
  position: absolute;
  top: -100px;
  background: var(--white);
  z-index: 10;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hero {
    padding-top: 48px;
  }
  .nav nav {
    gap: 18px;
  }
  .back {
    display: none;
  }
  .sky-panel {
    padding: 30px 20px 14px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .table-heading {
    display: none;
  }
  .service summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 0;
  }
  .bars {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    height: 20px;
  }
  .service-detail {
    padding: 0 0 20px 24px;
  }
  .method {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 32px;
  }
  .legend {
    justify-content: flex-start;
  }
  .service-section {
    padding-top: 45px;
  }
  .footer {
    flex-wrap: wrap;
  }
  .observation {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav nav {
    gap: 16px;
    font-size: 11px;
  }
  .brand {
    font-size: 23px;
  }
  .brand svg {
    width: 24px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .lead {
    font-size: 13px;
  }
  .sky-panel {
    padding: 20px 10px 13px;
  }
  .overview-top {
    padding: 13px 16px;
  }
  .overall-body {
    padding: 21px 16px;
    gap: 12px;
    align-items: flex-start;
  }
  .signal {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .overall-body h2 {
    font-size: 20px;
  }
  .overview-footer {
    padding: 12px 16px;
    align-items: flex-start;
  }
  .sky-caption {
    font-size: 8px;
  }
  .sky-caption span:last-child {
    display: none;
  }
  .service-name {
    font-size: 12px;
  }
  .state {
    font-size: 9px;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .method {
    padding: 26px;
  }
  .method h2 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .skeleton {
    animation: none;
    background: var(--paper);
  }
}

.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.history-toolbar > p {
  font-size: 13px;
  font-weight: 500;
}
.periods {
  display: flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.periods button {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 11px;
  white-space: nowrap;
}
.periods button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}
.uptime-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
}
.uptime-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
}
.stat-value {
  font-size: 32px;
  letter-spacing: -0.045em;
  font-weight: 550;
  margin-top: 8px;
  color: var(--navy);
}
.stat-value.good,
.service-rate.good {
  color: var(--green);
}
.stat-value.warn {
  color: var(--amber);
}
.stat-value.bad {
  color: var(--red);
}
.stat-detail {
  font-size: 10px;
  color: var(--dim);
  margin-top: 4px;
}
.uptime-chart {
  display: flex;
  gap: 5px;
  height: 64px;
}
.chart-bar {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  border-radius: 3px;
  background: var(--line);
}
.chart-bar[aria-pressed="true"] {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.bar svg,
.chart-bar svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}
.bar-fill.operational {
  fill: var(--green);
}
.bar-fill.degraded {
  fill: var(--amber);
}
.bar-fill.outage {
  fill: var(--red);
}
.bar-fill.unknown {
  fill: var(--line);
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--dim);
  margin-top: 12px;
}
.bucket-detail {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
  min-height: 34px;
}
.service-rate {
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}
.period-detail {
  color: var(--dim);
}
.more-history {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  padding: 12px 20px;
  margin-top: 16px;
}
@media (max-width: 1000px) and (min-width: 801px) {
  .service summary,
  .table-heading {
    grid-template-columns: minmax(0, 1fr) 85px 155px 125px;
    gap: 16px;
  }
}
@media (max-width: 800px) {
  .service-rate {
    grid-row: 3;
    grid-column: 1 / -1;
    text-align: left;
    color: var(--dim);
    font-size: 10px;
  }
  .service-rate::before {
    content: "Disponibilité observée · ";
    font-weight: 400;
  }
  .state {
    grid-row: 1;
    grid-column: 2;
  }
  .uptime-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uptime-panel {
    padding: 22px;
  }
}
@media (max-width: 420px) {
  .history-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .uptime-panel {
    padding: 18px;
  }
  .uptime-stats {
    gap: 22px 14px;
  }
  .stat-value {
    font-size: 27px;
  }
  .uptime-chart {
    gap: 3px;
    height: 52px;
  }
  .chart-axis {
    font-size: 9px;
  }
}
