@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
  background-color: #F7F7F7 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Hide default Statuspage masthead */
.masthead-container { display: none !important; }

/* Close gap between custom header and Statuspage content */
.layout { padding-top: 0 !important; margin-top: 0 !important; }
.layout > .container { padding-top: 0 !important; margin-top: 0 !important; }

/* Page status banner — compact card with left border accent */
.page-status {
  background: #FFFFFF !important;
  border: 1px solid #E4E7EC !important;
  border-left: 4px solid #2FCC66 !important;
  border-radius: 4px !important;
  padding: 1rem 1.25rem !important;
  max-width: 850px;
  margin: 0 auto 0.75rem auto !important;
  font-family: 'Inter', sans-serif;
}
.page-status .status {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #161616 !important;
}
/* Atlassian uses severity-level class names (status-minor/major/critical),
   not color names. Keep color names as fallback in case of variation. */
.page-status.status-red,
.page-status.status-critical,
.page-status.status-major {
  border-left-color: #C7262E !important;
}
.page-status.status-yellow,
.page-status.status-orange,
.page-status.status-minor {
  border-left-color: #D97900 !important;
}
.page-status.status-green,
.page-status.status-none {
  border-left-color: #2FCC66 !important;
}

/* All component cards */
.components-container.one-column .component-container {
  border-radius: 4px !important;
  -webkit-border-radius: 4px !important;
  -moz-border-radius: 4px !important;
  margin-bottom: 0.5rem !important;
  border: 1px solid #E4E7EC !important;
  background: #FFFFFF !important;
  padding: 0.75rem 1rem !important;
}
.components-container.one-column .component-container:first-child {
  border-radius: 4px !important;
  -webkit-border-radius: 4px !important;
  -moz-border-radius: 4px !important;
}
.components-container.one-column .component-container:last-child {
  border-radius: 4px !important;
  -webkit-border-radius: 4px !important;
  -moz-border-radius: 4px !important;
}
.component-inner-container {
  border: none !important;
  padding: 0 !important;
}
.component-container .name {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #161616;
}

/* Component group wrappers */
.component-group {
  border-radius: 4px !important;
  overflow: hidden !important;
  border: 1px solid #E4E7EC !important;
  margin-bottom: 0.5rem !important;
}
.child-components-container {
  border-radius: 4px !important;
  overflow: hidden !important;
}
.component-group .component-container {
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  margin-bottom: 0 !important;
}
.component-group .component-container:first-child {
  border-top: none !important;
}
.component-group .component-container:last-child {
  border-bottom: none !important;
}

/* Component status labels — pill badge (CompassBadge small) */
.component-status {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.625rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.01em !important;
  padding: 0 0.5rem !important;
  border-radius: 100px !important;
  line-height: 1rem !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  width: fit-content !important;
  background: rgba(148, 229, 171, 1) !important;
  color: rgba(0, 56, 26, 1) !important;
}
.component-status.icon-indicator {
  background: none !important;
  padding-left: 0 !important;
}
.component-inner-container.status-green .component-status {
  background-color: rgba(148, 229, 171, 1) !important;
  color: rgba(0, 56, 26, 1) !important;
}
/* data-component-status lives on the parent .component-inner-container, not on
   the .component-status span itself — use a descendant selector */
.component-inner-container.status-yellow .component-status,
.component-inner-container.status-orange .component-status {
  background: rgba(221, 159, 84, 1) !important;
  color: rgba(79, 38, 0, 1) !important;
}
.component-inner-container.status-red .component-status {
  background: rgba(204, 66, 66, 1) !important;
  color: #FFFFFF !important;
}

/* Uptime bar colors (SVG fill) */
.uptime-day.color-green { fill: #2FCC66 !important; }
.uptime-day.color-red   { fill: #C7262E !important; }
.uptime-day.color-yellow,
.uptime-day.color-orange { fill: #D97900 !important; }

/* Component group headers */
.component-group-name {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: #161616 !important;
}

/* Timeline legend labels */
.legend .legend-item {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #404040 !important;
}

/* Segmented control — override Statuspage link color */
.cci-segment-option {
  color: #6A6A6A !important;
  text-decoration: none !important;
}
.cci-segment-option:hover,
.cci-segment-option:focus {
  color: #6A6A6A !important;
  text-decoration: none !important;
}
.cci-segment-option[data-selected] {
  color: #161616 !important;
}

/* Supply chain callout */
.cci-sc-callout {
  display: none;
  align-items: flex-start;
  gap: 8px;
  background: #FFF9F0;
  border: 1px solid #FFD9A0;
  border-radius: 8px;
  padding: 12px 16px;
  max-width: 850px;
  margin: 0 auto 0.75rem auto;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.cci-sc-icon { color: #D97900; flex-shrink: 0; margin-top: 2px; }
.cci-sc-text { flex: 1; color: #161616; }
.cci-sc-text strong { color: #D97900; font-weight: 600; }
.cci-sc-action {
  color: #D97900; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap;
  flex-shrink: 0; margin-top: 2px;
}
.cci-sc-action:hover { text-decoration: underline; }

/* ─── Restore global "Subscribe to Updates" control ───
   Atlassian's default masthead (which normally carries the page-level
   subscribe widget) is hidden above via `.masthead-container { display: none }`.
   Atlassian still renders the widget's markup (trigger + full email/SMS/Slack/
   webhook/RSS panel) into `.custom-header-container`, just permanently hidden —
   using a custom header opts you out of their default UI, not just their layout.
   The header script below moves that widget into `.cci-header-inner` so it sits
   next to the logo; these rules restore visibility (tied to the trigger's own
   `aria-expanded`, which Atlassian's JS already toggles correctly) and style the
   trigger as a button matching the rest of this header. Nothing about the
   widget's own form/captcha/Slack-OAuth logic is touched — it's 100% Atlassian's
   existing, working implementation. */
.updates-dropdown-container {
  display: inline-flex !important;
  position: relative;
}
/* The panel (#updates-dropdown) is a SIBLING of the trigger inside
   .updates-dropdown-container, not a descendant of it — keep the trigger
   itself unconditionally visible/clickable and only hide the panel, or the
   button that's supposed to open it disappears too and can never be clicked. */
#updates-dropdown { display: none; }
#show-updates-dropdown[aria-expanded="true"] ~ #updates-dropdown {
  display: block !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  z-index: 400 !important;
  width: 340px !important;
  max-width: calc(100vw - 2.5rem) !important;
  background: #FFFFFF !important;
  border: 1px solid #E4E7EC !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 32px rgba(22,22,22,0.18) !important;
  padding: 1rem !important;
  font-family: 'Inter', sans-serif !important;
}
#show-updates-dropdown {
  display: inline-flex !important;
  align-items: center !important;
  background: #00DB75 !important;
  color: #005700 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 100px !important;
  border: 1px solid rgba(0,87,0,0.25) !important;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(0,219,117,0.3);
  transition: transform 0.12s, box-shadow 0.15s;
}
#show-updates-dropdown:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,219,117,0.4);
}
@media (max-width: 480px) {
  #show-updates-dropdown .subscribe-text-full { display: none; }
  #show-updates-dropdown .subscribe-text-short { display: inline; }
}