html {
  font-size: 14px;
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-bottom: 0;
  background-color: #f8f9fa;
}

main {
  flex: 1 0 auto;
}

/* Headings use the Bebas Neue display font */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Hero section for the home page */
.hero-section {
  background-image:
    linear-gradient(135deg, rgba(26, 41, 128, 0.75) 0%, rgba(38, 208, 206, 0.5) 100%),
    url('https://images.unsplash.com/photo-1567612509739-26465255d986?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Cards */
.guide-card,
.calculator-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover,
.calculator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Forum post content and guide content */
.post-content,
.guide-content {
  white-space: pre-line;
}

/* Footer */
.footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Admin / Private layouts */
.navbar-dark.bg-primary .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark.bg-primary .nav-link:hover,
.navbar-dark.bg-primary .nav-link.active {
  color: #fff;
}

.navbar-dark.bg-success .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark.bg-success .nav-link:hover,
.navbar-dark.bg-success .nav-link.active {
  color: #fff;
}

/* Importmap script tag is empty by default in templates; avoid showing it */
script[type="importmap"] {
  display: none;
}

/* Centered authentication pages (login / register / external login) */
.auth-body {
  background-color: #eef1f5;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1rem;
}

.auth-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d2137;
  margin-bottom: 1.5rem;
}

.auth-brand:hover {
  color: #0d2137;
}

.auth-brand i {
  font-size: 1.6rem;
}

.auth-card {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  box-shadow: 0 0.75rem 1.5rem rgba(13, 33, 55, 0.08);
  padding: 2rem;
}

@media (max-width: 576px) {
  .auth-card {
    padding: 1.5rem;
  }
}

.auth-divider {
  border-top-color: #e5e9ee;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.auth-foot {
  text-align: center;
  font-size: 0.8rem;
  margin: 1.25rem 0 0;
}

/* Cookie / privacy consent gate */
.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(2px);
}

.cookie-consent__panel {
  width: 100%;
  max-width: 640px;
  background: #fff;
  color: #1f2937;
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.cookie-consent__panel a {
  color: #0d6efd;
}

/* Lock background scrolling while the consent gate is shown (no JS required). */
body:has(.cookie-consent) {
  overflow: hidden;
}
