:root {
  color-scheme: light;
  --service-ink: #102a43;
  --service-muted: #486581;
  --service-blue: #126ca8;
  --service-blue-dark: #0b4f7a;
  --service-green: #2f9d57;
  --service-border: #cbdbea;
  --service-surface: #ffffff;
  --service-soft: #eef6fb;
  --service-warning: #fff5d9;
  --service-warning-border: #d79b18;
}

* {
  box-sizing: border-box;
}

.service-state-page {
  margin: 0;
  background: #f3f7fb;
  color: var(--service-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.service-state-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.service-state-panel {
  width: min(100%, 640px);
  padding: 36px;
  border: 1px solid var(--service-border);
  border-top: 4px solid var(--service-blue);
  border-radius: 8px;
  background: var(--service-surface);
  box-shadow: 0 18px 44px rgba(16, 42, 67, 0.1);
}

.service-state-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--service-soft);
  color: var(--service-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-state-panel h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.service-state-message {
  margin: 14px 0 0;
  color: var(--service-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.service-state-next {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--service-green);
  background: #f1f9f3;
}

.service-state-next h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.service-state-next ol {
  margin: 0;
  padding-left: 20px;
}

.service-state-next li {
  padding-left: 3px;
  line-height: 1.65;
}

.service-state-action,
.insight-freshness-notice__action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--service-blue);
  border-radius: 6px;
  background: var(--service-blue);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.service-state-action {
  padding: 10px 18px;
}

.service-state-action:hover,
.service-state-action:focus-visible,
.insight-freshness-notice__action:hover,
.insight-freshness-notice__action:focus-visible {
  border-color: var(--service-blue-dark);
  background: var(--service-blue-dark);
}

.service-state-action:focus-visible,
.insight-freshness-notice__action:focus-visible {
  outline: 3px solid rgba(18, 108, 168, 0.3);
  outline-offset: 3px;
}

.insight-freshness-notice {
  position: relative;
  z-index: 10000;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--service-warning-border);
  background: var(--service-warning);
  color: var(--service-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.insight-freshness-notice__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.insight-freshness-notice__copy strong {
  font-size: 0.9rem;
}

.insight-freshness-notice__copy span {
  color: #5d4b1f;
  font-size: 0.82rem;
  line-height: 1.4;
}

.insight-freshness-notice__action {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .service-state-main {
    align-items: start;
    padding: 20px 14px;
  }

  .service-state-panel {
    padding: 26px 22px;
  }

  .service-state-panel h1 {
    font-size: 1.65rem;
  }

  .service-state-action {
    width: 100%;
  }

  .insight-freshness-notice {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }

  .insight-freshness-notice__action {
    min-width: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
