/* ============================================
   TerabitLab - Health Status page
   ============================================ */

.hs-page {
  --hs-green: #0F9F77;
  --hs-green-12: #0F9F771f;
  --hs-yellow: #B78912;
  --hs-yellow-12: #B789121f;
  --hs-red: #A61C1C;
  --hs-red-12: #A61C1C1f;
  --hs-grey: #D0D4D8;
  --hs-surface: #ffffff;
  --hs-bar-h: 32px;
  --hs-bar-gap: 2px;
  --color-bg-1: #E7ECF2;
  --color-dark: #1a1f36;
  --color-dark-8: #1a1f3614;
  --color-dark-16: #1a1f3629;
  --color-dark-32: #1a1f3652;
  --color-dark-48: #1a1f367a;
  --color-dark-64: #1a1f36a3;
  --site-padding: 24px;
  --radius-8: 8px;
  --radius-16: 16px;
  --radius-full: 999px;
  --font-primary: var(--e-global-typography-vamtam_primary_font-font-family, "Helvetica");
  --font-heading: var(--e-global-typography-vamtam_h1-font-family, "Inter Tight");
  background: var(--color-bg-1);
  padding: 100px var(--site-padding) 80px;
  min-height: 80vh;
  font-family: var(--font-primary), Arial, sans-serif;
}

.tlhs-status-template {
  --font-primary: var(--e-global-typography-vamtam_primary_font-font-family, "Helvetica");
  --font-heading: var(--e-global-typography-vamtam_h1-font-family, "Inter Tight");
  font-family: var(--font-primary), Arial, sans-serif;
}

.tlhs-maint-inline {
  margin: 0 0 26px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--color-dark-8);
  background: #f7f9fc;
}

.tlhs-maint-inline-kicker {
  margin: 0 0 8px;
  font-family: var(--font-heading), sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark-48);
}

.tlhs-maint-inline-title {
  margin: 0;
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--color-dark);
}

.tlhs-maint-inline-message {
  margin: 8px 0 0;
  font-family: var(--font-primary), Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-dark-64);
}

.tlhs-maint-inline-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tlhs-maint-inline-item {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(26, 31, 54, 0.05);
  color: var(--color-dark);
  font-family: var(--font-primary), Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.tlhs-maint-inline-label {
  color: var(--color-dark-64);
  font-weight: 500;
}

.tlhs-maint-inline-value {
  color: var(--color-dark);
  font-weight: 600;
}

.tlhs-maint-contact {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--color-dark-8);
}

.tlhs-maint-contact-title {
  margin: 0;
  font-family: var(--font-heading), sans-serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-dark);
}

.tlhs-maint-contact-subtitle {
  margin: 8px 0 0;
  font-family: var(--font-primary), Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark-64);
}

.tlhs-maint-contact-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tlhs-maint-contact-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--color-dark-8);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tlhs-maint-contact-link:hover,
.tlhs-maint-contact-link:focus-visible {
  border-color: var(--color-dark-32);
  background: #fdfefe;
}

.tlhs-maint-contact-link:focus-visible {
  outline: 2px solid rgba(26, 31, 54, 0.2);
  outline-offset: 1px;
}

.tlhs-maint-contact-label {
  font-family: var(--font-primary), Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark-48);
}

.tlhs-maint-contact-value {
  font-family: var(--font-primary), Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-dark);
  word-break: break-word;
}

.tlhs-maintenance-template .tlhs-footer,
.tlhs-maintenance-template .tlhs-footer * {
  font-family: 'Onest', sans-serif;
}

.tlhs-maintenance-template .tlhs-footer-col-hd {
  font-family: 'Bai Jamjuree', monospace;
}

@media (max-width: 1024px) {
  .tlhs-maint-inline {
    padding: 14px 14px;
  }
}

@media (max-width: 768px) {
  .tlhs-maint-inline {
    margin-bottom: 18px;
  }

  .tlhs-maint-inline-meta {
    gap: 8px;
  }

  .tlhs-maint-inline-item {
    width: 100%;
  }

  .tlhs-maint-contact-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.hs-page,
.hs-page *,
.hs-page *::before,
.hs-page *::after {
  box-sizing: border-box;
}

.hs-container {
  max-width: 940px;
  margin: 0 auto;
}

.hs-card {
  background: var(--hs-surface);
  border-radius: var(--radius-16);
  padding: 48px 52px 56px;
  box-shadow: 0 1px 3px rgba(26, 31, 54, 0.04);
}

.hs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 52px;
  gap: 24px;
}

.hs-eyebrow {
  font-family: var(--font-heading), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-green);
  margin-bottom: 12px;
}

.hs-headline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hs-headline h1 {
  font-family: var(--font-heading), sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0;
}

.hs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.hs-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0.2;
}

.hs-dot--up { background: var(--hs-green); }
.hs-dot--up::after { background: var(--hs-green); }
.hs-dot--degraded { background: var(--hs-yellow); }
.hs-dot--degraded::after { background: var(--hs-yellow); }
.hs-dot--down { background: var(--hs-red); }
.hs-dot--down::after { background: var(--hs-red); }
.hs-dot--unknown { background: var(--hs-grey); }
.hs-dot--unknown::after { background: var(--hs-grey); }

.hs-updated {
  font-size: 13px;
  color: var(--color-dark-48);
  white-space: nowrap;
  padding-top: 4px;
}

.hs-header[data-status="degraded"] .hs-eyebrow,
.hs-header[data-status="partial-outage"] .hs-eyebrow,
.hs-header[data-status="major-outage"] .hs-eyebrow {
  color: var(--hs-yellow);
}

.hs-header[data-status="unavailable"] .hs-eyebrow {
  color: var(--hs-grey);
}

.hs-services {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hs-service {
  padding: 28px 0;
  border-top: 1px solid var(--color-dark-8);
}

.hs-service:last-child {
  padding-bottom: 0;
}

.hs-service-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.hs-service-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hs-service-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-dark);
}

.hs-service-subtitle {
  font-size: 13px;
  color: var(--color-dark-48);
}

.hs-uptime {
  text-align: right;
  flex-shrink: 0;
}

.hs-uptime-value {
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.hs-uptime-value--up { color: var(--hs-green); }
.hs-uptime-value--degraded { color: var(--hs-yellow); }
.hs-uptime-value--down { color: var(--hs-red); }
.hs-uptime-value--unknown { color: var(--color-dark-48); }

.hs-uptime-label {
  font-size: 11px;
  color: var(--color-dark-32);
  margin-top: 1px;
}

.hs-bars-wrap {
  position: relative;
}

.hs-bars {
  display: flex;
  align-items: stretch;
  gap: var(--hs-bar-gap);
  height: var(--hs-bar-h);
}

.hs-bar {
  flex: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  position: relative;
  min-width: 0;
}

.hs-bar:hover {
  filter: brightness(0.9);
  transform: scaleY(1.15);
}

.hs-bar--up { background: var(--hs-green); }
.hs-bar--degraded { background: var(--hs-yellow); }
.hs-bar--down { background: var(--hs-red); }
.hs-bar--no-data { background: var(--hs-grey); }

.hs-bars-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-dark-32);
}

.hs-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: rgba(26, 31, 54, 0.98);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
  max-width: 220px;
}

.hs-tooltip.is-visible {
  opacity: 1;
}

.hs-tooltip-date {
  font-weight: 600;
  margin-bottom: 2px;
}

.hs-tooltip-status,
.hs-tooltip-uptime {
  font-size: 11px;
  opacity: 0.92;
}

.hs-unavailable {
  text-align: center;
  padding: 48px 24px;
}

.hs-unavailable-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-dark-32);
}

.hs-unavailable h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.hs-unavailable p {
  font-size: 14px;
  color: var(--color-dark-48);
}

.hs-skeleton {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-dark-8) 30%, var(--color-dark-16) 50%, var(--color-dark-8) 70%);
  background-size: 200% 100%;
  animation: hs-shimmer 1.4s ease-in-out infinite;
}

@keyframes hs-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hs-skeleton-line {
  height: 14px;
  width: 160px;
  margin-bottom: 8px;
}

.hs-skeleton-line--short {
  width: 80px;
}

.hs-skeleton-bar {
  height: var(--hs-bar-h);
  width: 100%;
  border-radius: 2px;
}

.hs-skeleton-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hs-skeleton-headline {
  height: 30px;
  width: 320px;
}

.hs-skeleton-uptime {
  height: 15px;
  width: 60px;
  margin-left: auto;
}

.hs-stale-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--hs-yellow);
  background: var(--hs-yellow-12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 8px;
  font-weight: 500;
}

.tlhs-footer {
  padding: 64px 0 44px;
  background: var(--color-bg-1);
  border-top: 1px solid var(--color-dark-8);
}

.tlhs-footer-container {
  width: min(1200px, calc(100% - (var(--site-padding) * 2)));
  margin: 0 auto;
}

.tlhs-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 40px;
}

.tlhs-footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-dark);
}

.tlhs-footer-brand-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  font-family: 'Onest', sans-serif;
  line-height: 1.4;
  white-space: nowrap;
}

.tlhs-footer-brand-tm {
  font-weight: 400;
  font-size: 10px;
  vertical-align: super;
  margin-left: 1px;
}

.tlhs-footer-tagline {
  font-family: 'Onest', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.tlhs-footer-cta {
  display: inline-flex;
  padding: 10px 24px;
  border: 1px solid var(--color-dark-16);
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.tlhs-footer-cta:hover {
  border-color: var(--color-dark-48);
  background: var(--color-dark-8);
}

.tlhs-footer-line {
  height: 1px;
  background: var(--color-dark-8);
  margin-bottom: 36px;
}

.tlhs-footer-bottom {
  width: 100%;
  display: block;
}

.tlhs-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 220px));
  column-gap: 72px;
  row-gap: 24px;
}

.tlhs-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tlhs-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tlhs-footer-col-hd {
  font-family: 'Bai Jamjuree', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-dark-48);
  margin-bottom: 4px;
}

.tlhs-footer-link {
  display: inline-block;
  font-family: 'Onest', sans-serif;
  font-size: 0.875rem;
  color: var(--color-dark-64);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.55;
}

.tlhs-footer-link:hover {
  color: var(--color-dark);
}

.tlhs-footer-copy {
  min-width: 0;
  text-align: left;
  font-family: 'Onest', sans-serif;
  line-height: 1.45;
  font-size: 0.8125rem;
  color: var(--color-dark-48);
  margin: 28px 0 0;
}

@media (max-width: 1024px) {
  .tlhs-footer-cols {
    width: 100%;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    column-gap: 40px;
  }
}

@media (max-width: 768px) {
  .hs-card {
    padding: 32px 24px 40px;
    border-radius: var(--radius-8);
  }

  .hs-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 36px;
  }

  .hs-headline h1 {
    font-size: 22px;
  }

  .hs-updated {
    padding-top: 0;
  }

  .hs-service-top {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }

  .hs-uptime {
    text-align: left;
  }

  .hs-bars {
    height: 26px;
  }

  .tlhs-footer {
    padding: 40px 0 28px;
  }

  .tlhs-footer-cols {
    width: 100%;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hs-page {
    padding-top: 80px;
  }

  .hs-headline h1 {
    font-size: 18px;
  }

  .hs-card {
    padding: 24px 16px 32px;
  }

  .tlhs-footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.tlhs-status-template .elementor-location-popup,
.tlhs-status-template [data-elementor-type="popup"],
.tlhs-status-template .dialog-widget,
.tlhs-status-template .dialog-widget-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tlhs-hosting-toggle .tlhs-numa-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.08);
}

.tlhs-hosting-toggle .tlhs-numa-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cfd5ff;
}
