html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* Finding cards */
.card {
    transition: box-shadow 0.15s ease;
}

.card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Tab styling */
.nav-tabs .nav-link {
    color: #555;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

/* Pre-formatted remediation text */
.card-body [style*="white-space: pre-line"] {
    font-size: 0.9rem;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .nav-tabs {
        display: none !important;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    .collapse {
        display: block !important;
    }

    .card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
    }
}

/* Cookie banner (matches the Tridium website's). */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1080;
  max-width: 420px;
  padding: 18px 20px;
  background: #0d192a;
  color: #fff;
  border-radius: 6px;
  border-top: 4px solid #d2232a;
  box-shadow: 0 10px 30px rgba(13, 25, 42, .35);
  font-size: .92rem;
  line-height: 1.5;
  white-space: normal;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0 0 14px; }
.cookie-text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-btn {
  font: inherit;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}
.cookie-decline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cookie-decline:hover { border-color: #fff; }
.cookie-accept { background: #d2232a; color: #fff; border-color: #d2232a; }
.cookie-accept:hover { background: #a81c22; border-color: #a81c22; }
.cookie-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) {
  /* Sit above HubSpot's chat launcher, which spans the bottom of the screen on phones. */
  .cookie-banner { left: 16px; right: 16px; bottom: 76px; max-width: none; }
  .cookie-actions .cookie-btn { flex: 1; }
}
@media print {
  .cookie-banner { display: none !important; }
}
