/* SundK Årsrapport Styles */

:root {
  --colorSundK-primary-blue: #162e59;
  --colorSundK-primary-lightblue: #D8E5FF;
  --colorSundK-secondary-dark-purple: #231b63;
  --colorSundK-secondary-light-purple: #e6e0ff;
  --colorSundK-secondary-yellow: #ffde50;
  --colorSundK-tertiary-mint: #46ded1;
  --colorSundK-tertiary-light-mint: #ecffed;
  --colorSundK-tertiary-petroleum: #243547;
  --colorSundK-tertiary-light-yellow: #ffffe0;
  --colorSundK-tertiary-orange: #ff8b25;
  --colorSundK-tertiary-brown: #684800;
  --colorSundK-tertiary-light-red: #ffd7e0;
  --colorSundK-tertiary-pink: #d0396b;
  --colorSundK-tertiary-green: #30cb72;
  --colorSundK-tertiary-light-green: #dfffea;
  --colorSundK-tertiary-dark-green: #243634;
  --colorSundK-light-blue-60: #e8efff;
  --colorSundK-light-blue-20: #f7faff;
  --sidebar-width: 340px;
  --font-size-7: 0.8rem;
  --roundness-small: 7px;
  --roundness-medium: 12px;
  --roundness-large: 20px;
}

/* ===================
   Base Styles
   =================== */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #000;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Custom 1.5 column offset classes to match Bootstrap offset system */
@media (min-width: 576px) {
  .offset-sm-1-5 {
    margin-left: calc(100% / 12 * 1.5);
  }
}

@media (min-width: 768px) {
  .offset-md-1-5 {
    margin-left: calc(100% / 12 * 1.5);
  }
}

@media (min-width: 992px) {
  .offset-lg-1-5 {
    margin-left: calc(100% / 12 * 1.5);
  }
}

@media (min-width: 1200px) {
  .offset-xl-1-5 {
    margin-left: calc(100% / 12 * 1.5);
  }
}

@media (min-width: 1400px) {
  .offset-xxl-1-5 {
    margin-left: calc(100% / 12 * 1.5);
  }
}

.report-logo {
  height: 40px;
}

/* ===================
   Cross-Reference Links
   =================== */

/* Cross-reference links */
a.cross-ref-link {
  color: #0d6efd;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 110, 253, 0.3);
  transition: border-color 0.2s ease;
}

a.cross-ref-link:hover {
  border-bottom-color: #0d6efd;
}

/* Highlight animation for datacards and headings */
.data-card.hash-target {
  animation: slideHighlight 1.5s ease-out;
}

h1.hash-target, h2.hash-target, h3.hash-target,
h4.hash-target, h5.hash-target, h6.hash-target {
  animation: slideHighlight 1.5s ease-out;
}

/* ===================
   Header styling
   =================== */

#reportTitleHeader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#reportTitleHeader.show-title {
  opacity: 1;
  visibility: visible;
}

#header-title-database {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--colorSundK-primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#header-title-separator {
  color: #ccc;
  font-weight: 300;
}

#header-title-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--colorSundK-primary-blue);
  opacity: 0.85;
}

#header-title-date {
  font-size: 0.75rem;
  color: #888;
  padding-left: 0.5rem;
  border-left: 1px solid #ddd;
  margin-left: 0.25rem;
}

.navbar {
  border-bottom: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease, left 0.3s ease, width 0.3s ease;
  height: 4.5rem;
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(22, 46, 89, 0.1);
}

.header-wrapper {
  transition: margin-left 0.2s ease;
}

/* ===================
   Hero styling
   =================== */

.hero-main {
  background: #1c2c4e;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  transition: margin-left 0.2s ease;
}

/* Glass wrapper with left margin */
.glass-wrapper {
  margin-left: 2rem;
  padding: 3rem 0rem;
}

/* Glass card */
.glass {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

/* Glass top section */
.glass__top {
  padding: 2.5rem 2rem;
}

.glass__title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 8px;
  color: #ffffff;
  text-wrap: balance;
}

.glass__subtitle {
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.005em;
  text-align: center;
}

/* Glass footer strip with labelled cells */
.glass__footer {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.glass__footer:empty {
  display: none;
  border-top: none;
}

.glass__cell {
  padding: 14px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.glass__cell:last-child {
  border-right: none;
}

.glass__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.glass__value {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* Decorative elements */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-3 {
  width: 516px;
  height: 516px;
  background: rgb(255 255 255 / 15%);
  bottom: 81px;
  right: 5%;
}

.hero-logo-bg {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
  filter: brightness(1.5);
}

.hero-logo-top-right {
  width: 600px;
  height: auto;
  top: 6rem;
  right: 1rem;
}

/* Responsive: stack footer cells on narrow screens */
@media (max-width: 640px) {
  .glass__top {
    padding: 36px 24px 28px;
  }

  .glass__title {
    font-size: 36px;
  }

  .glass__subtitle {
    font-size: 18px;
  }

  .glass__footer {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  .glass__cell {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .glass__cell:first-child {
    border-top: none;
  }
}

@media (max-width: 768px) {
  .hero-logo-bg {
    display: none;
  }

  .hero-logo-top-right, .hero-logo-bottom-right {
    display: none;
  }
}

/* ===================
   Footer styling
   =================== */

.footer {
  background-color: var(--colorSundK-primary-blue);
  color: white;
}

.footer-wrapper {
  transition: margin-left 0.2s ease;
}

.footer-content {
  padding: 0rem 2rem;
}


.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--roundness-small);
  transition: all 0.25s ease;
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.footer-logo {
  height: 40px;
  width: 2p;
  filter: brightness(0) invert(1);
}

.footer-right {
  text-align: right !important;
  margin-left: auto !important;
}

.footer-buttons {
  justify-content: flex-end !important;
}