@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base styling */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F7F8FC; /* Aircall canvas (matches Statuspage admin "Body background") */
  color: #333333; /* Dark gray text */
}


h1, h2, h3, h4, h5, h6,
p, a, span, div, li, td, th, label,
button, input, select, textarea,
.cpt-button, .flat-button, .subscribe-btn,
.show-updates-dropdown, .updates-dropdown-section,
.subscribe-text-full, .subscribe-text-short,
.modal, .modal-header, .modal-body, .modal-footer,
.incident-title, .update-title, .actual-title,
.component-status, .component-container,
.layout-content, .container, .footer, .powered-by,
.color-secondary, .color-primary,
.font-regular, .font-small, .font-large, .font-largest,
p.color-secondary, p.font-regular,
p.color-secondary.font-regular {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif !important;
}

/* Exception: leave .fa / FontAwesome icon classes on FontAwesome */
.fa, [class^="fa-"], [class*=" fa-"] {
  font-family: 'FontAwesome' !important;
}

/* Header */
.statuspage-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
}
.statuspage-header .logo img {
  max-height: 36px;
}

/* Components & incidents styling */
.scheduled-maintenances-container, .component-container, .unresolved-incidents, .components-status, .incident-container {
  border-radius: 10px;
  background-color: #F4F6F9; /* Light gray background */
  border: 1px solid #e5e7eb;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Component status text */
.component-status {
  font-weight: 500;
  color: #4BB796; /* Primary Green */
}

/* Incident title and updates */
.incident-title, .update-title {
  font-weight: 600;
  color: #333333; /* Dark gray for text */
}

/* Incident message content */
.update-body {
  font-size: 15px;
  color: #4b5563; /* Gray for better readability */
}

/* Smaller timestamps */
.font-small,small {
  font-size: 14px;
  color: #6B7280;
}

/* Footer */
.footer {
  background-color: #ffffff;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
}

/* Links */
a {
  color: #4BB796; /* Aircall Primary Green */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Page Title (Headings) */
h1, h2, h3 {
  font-weight: 600;
  color: #111827; /* Darker gray */
}

/* Status summary bar */
.components-status {
  background-color: #ecfdf5; /* Very light green background */
  color: #065f46; /* Dark green for contrast */
  font-weight: 500;
}

/* Miscellaneous spacing cleanup */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* "About This Site" section — keep it discrete. */
.color-secondary {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
}

/* =====================================================================
   Logo — replicate the aircall.io header brand logo
   ---------------------------------------------------------------------
   SVG path data extracted directly from aircall.io's React-rendered
   header (viewBox 0 0 140 40). aircall.io's CSS overrides the SVG's
   inline #00BD82 to render the icon as #002620 (deep forest green),
   so we use that color here to match the live page exactly.
   Wordmark fill: #012635 (Aircall brand ink).
   ===================================================================== */
.logo-container img,
.statuspage-header .logo img {
  content: url("data:image/svg+xml;utf8,<svg viewBox='0 0 140 40' xmlns='http://www.w3.org/2000/svg' fill='%23012635'><path d='M30.07.86C27.82.34 24.123 0 19.943 0c-4.18 0-7.878.34-10.127.86C5.33 1.804 1.799 5.346.858 9.844.338 12.1 0 15.808 0 20s.339 7.9.858 10.156c.941 4.498 4.473 8.04 8.958 8.984 2.25.52 5.947.86 10.127.86 4.18 0 7.878-.34 10.127-.86 4.485-.944 8.017-4.486 8.958-8.984.52-2.256.858-5.964.858-10.156s-.339-7.9-.858-10.156c-.941-4.498-4.473-8.04-8.958-8.984z' fill='%23002620'/><path d='M24.735 30.705a3.023 3.023 0 00-2.16-1.79c-.584-.135-1.546-.223-2.632-.223-1.087 0-2.049.088-2.633.224-.97.204-1.77.876-2.151 1.77-.133.31-.45.499-.786.468a28.05 28.05 0 01-.215-.02c-1.564-.157-2.793-.375-3.507-.629a1.27 1.27 0 01-.816-1.354c.121-1.632 1.11-5.454 2.586-9.816 1.688-4.987 3.454-9.024 4.25-9.811a1.71 1.71 0 01.681-.436c.523-.177 1.487-.296 2.59-.296 1.104 0 2.068.119 2.59.296l.009.003a1.711 1.711 0 01.674.433c.796.787 2.561 4.824 4.249 9.81 1.477 4.363 2.465 8.185 2.587 9.817 0 .013 0 .027.002.041l.002.015a6.196 6.196 0 01.004.108 1.27 1.27 0 01-.824 1.19c-.714.254-1.942.472-3.504.628l-.246.023a.74.74 0 01-.75-.45z' fill='%23fff'/><path fill-rule='evenodd' clip-rule='evenodd' d='M63.708 12.993h3.812v17.346h-3.812v-3.264c-1.19 2.079-3.233 3.272-5.887 3.272-4.424 0-7.964-3.885-7.964-8.69 0-4.806 3.54-8.657 7.964-8.657 2.654 0 4.696 1.193 5.887 3.272v-3.28zm57.064 0h3.812v17.346h-3.812v-3.264c-1.191 2.079-3.233 3.272-5.887 3.272-4.424 0-7.963-3.885-7.963-8.69 0-4.806 3.539-8.657 7.963-8.657 2.654 0 4.696 1.193 5.887 3.272v-3.28zm-62.05 13.729c2.893 0 5.071-2.181 5.071-5.078 0-2.863-2.178-5.044-5.07-5.044a5.036 5.036 0 00-5.071 5.044 5.044 5.044 0 005.07 5.078zm56.865 0c2.893 0 5.071-2.181 5.071-5.078 0-2.863-2.178-5.044-5.071-5.044a5.036 5.036 0 00-5.071 5.044 5.044 5.044 0 005.071 5.078zM73.227 5c1.327 0 2.45 1.125 2.45 2.42a2.464 2.464 0 01-2.45 2.453c-1.328 0-2.417-1.09-2.417-2.453C70.81 6.125 71.9 5 73.226 5zm-1.872 7.947h3.777v17.346h-3.777V12.947zm15.643.007c.728 0 1.428.108 1.934.3.297.114.56.239.763.345l-1.537 3.222a5.321 5.321 0 00-1.534-.22c-1.838 0-3.88 1.533-3.88 4.464v9.228h-3.777V12.947h3.777v2.734c.749-1.602 2.62-2.727 4.254-2.727zm18.972 12.78c-1.259 2.76-4.186 4.567-7.657 4.567-4.935 0-8.712-3.715-8.712-8.656 0-4.942 3.743-8.69 8.678-8.69 3.233 0 5.955 1.6 7.18 4.055l-3.199 1.806c-.68-1.33-2.178-2.215-3.981-2.215-2.859 0-4.935 2.18-4.935 5.044 0 2.828 2.11 5.01 4.969 5.01 1.939 0 3.539-.92 4.288-2.454l3.369 1.533zM132.196 5v25.293h-3.778V5h3.778zm7.612 0v25.293h-3.778V5h3.778z' fill='%23012635'/></svg>") !important;
  width: auto !important;
  height: 42px !important;
  max-height: 42px !important;
}

/* =====================================================================
   "Subscribe to Updates" header button
   ---------------------------------------------------------------------
   The actual top-right header button on status.aircall.com is
   <a class="show-updates-dropdown"> — confirmed via DOM inspection.
   .cpt-button / .subscribe-btn are different elements (modal subscribe
   inputs on incident detail pages), so we target the correct selector
   here.

   Restyled to match aircall.io's top-right "GET FREE ACCESS" CTA exactly:
     bg            #216358 (deep forest green)
     color         #F7F6F0 (cream)
     radius        8px (slightly rounded — NOT pill)
     padding       12px 16px
     font-size     12px, weight 600, UPPERCASE
   Hover deepens to #002620 (the very dark forest used elsewhere in the
   aircall.io header palette).
   ===================================================================== */
a.show-updates-dropdown,
.show-updates-dropdown {
  background-color: #216358 !important;
  color: #F7F6F0 !important;
  border: 1px solid #216358 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
a.show-updates-dropdown:hover,
.show-updates-dropdown:hover {
  background-color: #002620 !important;
  border-color: #002620 !important;
  color: #F7F6F0 !important;
  text-decoration: none !important;
}

/* Inherit the button text color into the inner <span> labels too,
   since Statuspage hardcodes color on those spans. */
.show-updates-dropdown .subscribe-text-full,
.show-updates-dropdown .subscribe-text-short {
  color: #F7F6F0 !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

/* Keep the modal-subscribe buttons (.cpt-button / .flat-button) on
   their default Statuspage styling — they're separate components and
   don't need the forest-green CTA treatment. */

/* =====================================================================
   Rename "About This Site" → "Aircall Status Page"
   ---------------------------------------------------------------------
   Statuspage hardcodes the heading text in HTML, so we use a CSS-only
   trick: target the <h2> that's followed by a .color-secondary paragraph
   (i.e. the about section heading), hide its text via font-size: 0, and
   inject the new text via the ::before pseudo-element.

   Uses :has() — supported in Chrome 105+, Safari 15.4+, Firefox 121+.
   ===================================================================== */
h2:has(+ p.color-secondary) {
  font-size: 0 !important;
  letter-spacing: 0 !important;
}
h2:has(+ p.color-secondary)::before {
  content: "Aircall Status Page";
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: normal;
  display: inline-block;
}