@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap");

/* =====================================================
   GRUND – publika sidor
   ===================================================== */
  
   

body.public-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background: #0f1117;
  color: #fff;

  font-family: 'Source Sans Pro', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  letter-spacing: 0.2px;

  overflow-x: hidden;
}


.content,
.page-container {
  max-width: 800px;
  margin-inline: auto;
}


p {
  margin: 0 0 24px;
}

/* Bakgrund + overlay */
body.public-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url("images/webp/index-image.webp") center / cover no-repeat;
  pointer-events: none;
}

body.public-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(10,12,18,.45);
  pointer-events: none;
}

/*body.public-page > :not(.topnav):not(.cookie-consent):not(.scroll-to-top) {
  position: relative;
  z-index: 1;
}*/

.page-container{
  max-width:1000px;
  margin:0 auto;
  padding:20px 16px 80px;
}


@media (max-width: 999px) {
.page-container{
max-width:100%;
}}
	

#mainform {
  flex: 1;
}

/* visa endast på mobil */
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* DÖLJ PÅ MOBIL */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* =====================================================
   HERO
   ===================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 40px;
}



.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.2rem;
  color: #b8bcc6;
  margin-bottom: 28px;
}

/* CTA */
.hero-split .button-primary {
  display: inline-block;
  background: linear-gradient(90deg, #1ed760, #1fdf64);
  color: #000 !important;
  padding: 16px 42px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-split .button-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

.hero-ingress {
  max-width: 820px;
  margin: 12px 0 32px;

  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;

  color: rgba(255,255,255,.88);

  /* subtil framträdande effekt */
  text-shadow:
    0 1px 2px rgba(0,0,0,.55);

  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
	.hero-ingress {
  max-width: 100vw;
  margin: 6px 0 32px;

  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;

  color: rgba(255,255,255,.88);

  /* subtil framträdande effekt */
  text-shadow:
    0 1px 2px rgba(0,0,0,.55);

  letter-spacing: 0.01em;
}}


/* =====================================================
   CARDS – layout
   ===================================================== */
#cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 1400px;
  margin: 60px auto 100px;
  padding: 0 32px;
}

.gallery-column-3 {
flex: 1 1 320px;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

/* Kort */
.gallery-column-3 > .w3-white {
  background: #fff;
  color: #000;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-column-3 > .w3-white:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

/* Bild */
.gallery-column-3 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Text */
.heading4 {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4CAF50;
  margin: 14px 0 6px;
}

.gallery-column-3 h3 {
  min-height: 56px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-column-3 .normal {
  font-size: 0.95rem;
  color: #333;
  margin: 0 auto;
  max-width: 90%;
}

/* Ikoner */
#cards i {
  color: #4CAF50;
}

/* Knapp längst ner */
.gallery-column-3 .w3-row:last-child {
  margin-top: auto;
}

#cards button {
  margin-top: auto;
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease;
}

#cards button:hover {
  transform: scale(1.05);
}

/* Mobil */
@media (max-width: 900px) {
  #cards {
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
  }
  .gallery-column-3 {
    max-width: 420px;
    width: 100%;
  }
}

/* =====================================================
   HÖGSKOLEPROV-KALENDER + COUNTDOWN
   ===================================================== */
.hp-calendar-wrapper {
  display: flex;
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
}

/* Bas */
.hp-calendar {
  flex: 1;
  display: flex;
  gap: 16px;
  background: rgba(26,29,37,.92);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}

/* Datum */
.hp-calendar-date {
  text-align: center;
  min-width: 64px;
}

.hp-day {
  font-size: 1.8rem;
  font-weight: 800;
}

.hp-month {
  font-size: .8rem;
  letter-spacing: .12em;
}

/* Text */
.hp-calendar-text strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.hp-calendar-text span {
  font-size: .85rem;
  color: #ccc;
}

/* ===== VÅR / HÖST ===== */

.hp-spring {
  border-left: 5px solid #1ed760; /* grön */
}

.hp-autumn {
  border-left: 5px solid #f39c12; /* varm höstton */
}

/* MOBIL */
@media (max-width: 768px) {
  .hp-calendar-wrapper {
    flex-direction: column;
  }
}

/* =====================================================
   STANDARD-SIDOR (LISTOR, TABELLER)
   ===================================================== */

.page-container h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.page-container h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.page-container h3 {
  font-size: 1.2rem;
  margin:0;
}

.page-container .siteicon {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

/* Font Awesome-ikon */
.page-container .siteicon i{
  font-size: 2.2rem;
  color: #1ed760;
  transform: translateY(-20px); 
  margin-right:6px;
}

.page-container .siteicon .badge {
  transform: translateY(-20px); 
  margin-right:6px;
}

/* Bild-ikon – samma höjd, mindre "visuell" högermarginal */
.page-container .siteicon img {
  height: 2.2rem;
  width: auto;
  display: block;
  transform: translateY(-20px);    /* din vertikala fix */
  margin-right: -10px;              /* ← dra texten lite närmare */
  filter:
    brightness(1.35)
    saturate(1.25);
}



.mathp{
	margin-left:10px;
}




@media (max-width: 768px) {

.page-container h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.page-container h2 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}


p, p.section-intro, p.normal {
  font-size: clamp(1rem, 2vw, 1.125rem); /* Responsiv: 16px–18px */
  line-height: 1.6;
  max-width: 65ch; /* Optimal radlängd */
  margin-bottom: 1rem;
  color: rgba(255,255,255,.88); /* Inte helt vit, för mindre bländning */
}



/* Font Awesome-ikon */
.page-container .siteicon i{
  font-size: 1.8rem;
  color: #1ed760;
  transform: translateY(-12px); 
  margin-right:6px;
}

.page-container .siteicon .badge {
  transform: translateY(-20px); 
  margin-right:6px;
}

/* Bild-ikon – samma höjd, mindre "visuell" högermarginal */
.page-container .siteicon img {
  height: 1.8rem;
  width: auto;
  display: block;
  transform: translateY(-12px);    /* din vertikala fix */
  margin-right: -12px;              /* ← dra texten lite närmare */
  filter:
    brightness(1.55)
    saturate(1.35);
}

.mathp{
	margin-left:10px;
}


.page-container p.normal {
  max-width: 800px;
  color: #b8bcc6;
  margin-bottom: 24px;
}}	
	

/* =====================================================
   FILTER INPUT
   ===================================================== */
#filterInput {
  width: 100%;
  max-width: 480px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  margin: 12px 0 32px;
}

/* =====================================================
   DOWNLOAD-TABELL
   ===================================================== */
/* Tabell för köp */

table.download, table.w3-table {
	max-width: 100%;
    width: 100%;
	table-layout: auto;
    border-collapse: separate; /* Viktigt för rundade hörn */
    border-spacing: 0;
    border-radius: 6px; /* Rundar hela tabellen */
    overflow: hidden; /* Klipper hörnen */
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6); /* Liten skugga för djup */
}

/* Header */
.download th, .w3-table th {
    background-color: #101219;
    color: #FFF;
    font-size: 14px;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

/* Varannan rad */
.download tr:nth-child(odd), .w3-table tr:nth-child(odd) {
    background: #101219;
    color: #FFF;
}

.download tr:nth-child(even), .w3-table tr:nth-child(even) {
    background: #1B1D24;
    color: #FFF;
}

/* Celler */
.download td, .w3-table td {
    font-size: 13px;
    color: #FFF;
    padding: 10px 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

table.pdf-table td{
cursor: pointer;}
	

/* Hover-effekt */
.download tr:hover, .w3-table tr:hover {
    background: #4CAF50;
}

.download tr:hover td,
.download tr:hover i {
    color: white;
}

table.pdf-table td:first-child{
	display:none;
}


* Mobil: gör tabell mer luftig */
@media (max-width: 768px) {
  table.download th,
  table.download td {
    padding: 14px 12px;
  }
}

.download-white{
	border-collapse: collapse; 
}

.download-white, .download-white td {
    border: none;
}

/* Header */
.download-white th {
    background: #4c9b50;
    color: white;
    padding: 12px;
    font-weight: 600;
}

/* Varannan rad vit med svart text */
.download-white tr:nth-child(even) { 
    background: #fff;
    color: #000;
}

/* Varannan rad grön med vit text */
.download-white tr:nth-child(odd) { 
    background: #4c9b50;
    color: #fff;
}

/* Text i cellerna */
.download-white tr:nth-child(even) td {
    color: #000;
}

.download-white tr:nth-child(odd) td {
    color: #fff;
}

/* Hover-effekt */
.download-white tr:hover { 
    background: rgba(76, 175, 80, 0.2) !important;
}

.download-white tr:hover td,
.download-white tr:hover i { 
    color: #000 !important;
}

/* Länkar */
.download-white td a {
    color: inherit;
    text-decoration: none;
}

.download-white td a:hover {
    color: #4c9b50 !important;
    text-decoration: underline;
}

.download-white tr, .download-white td {
    border:none;
}


.table-left th,
.table-left td {
  text-align: left;
  padding: 6px 8px;
}


table.nog {
  width: 100%;
  border-collapse: separate;      /* VIKTIGT */
  border-spacing: 0;

  border-left: 6px solid rgb(76,155,80);
  background: transparent;
  backdrop-filter: blur(5px);

  border-radius: 0 0 6px 6px;

  margin: 20px 0;
  color: inherit;
  font-family: 'Source Sans Pro';
}

table.nog td {
  padding: 12px 16px;
  border: 0;
  font-size: 16px;
  vertical-align: top;
  color: #f5fff5;
}

table.nog td:first-child {
  color: rgb(76,155,80);
  font-weight: bold;
  white-space: nowrap;
}

table.nog tr:first-child td:first-child {
  border-top-left-radius: 0;
}
table.nog tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

/* Cookie consent - Garanterat högsta z-index */



.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-inner p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-inner a {
    color: #4a9eff;
    text-decoration: underline;
}

.cookie-inner a:hover {
    color: #6bb3ff;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-actions button {
    padding: 16px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

#cookie-accept {
    background: #4CAF50;
    color: white;
}

#cookie-accept:hover {
    background: #45a049;
    transform: translateY(-1px);
}

#cookie-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

#cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsiv design */
@media (max-width: 768px) {
    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
    }
}


.noscript-warning {
  background: #111;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #333;
}


/* =====================================================
   TOPLOGO ¨
   ===================================================== */

.toplogo {
  margin-top: 42px;
  text-align: center;
}

.toplogo img {
  display: block;
  width:220px;
  height: auto;
  margin: 0 auto 10px;
}

.toplogo span {
  font-size: 28px;
    font-weight: 700;
  letter-spacing: 6px;
}

@media (max-width: 768px) {
.toplogo {
  margin-top: 50px;
}

.toplogo img {
  display: block;
  width:120px;
  height: auto;
  margin: 0 auto 10px;
}

  .toplogo span {
    font-size: 16px;
    letter-spacing: 4px;
  }
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
/* =====================================================
   SCROLL TO TOP
   ===================================================== */
.scroll-to-top {
  position: fixed;
  right: 20px;
  top: 55%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1ed760;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  box-shadow:
    0 0 0 4px rgba(30,215,96,.35),
    0 12px 32px rgba(0,0,0,.7);
  cursor: pointer;
  z-index: 15000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.scroll-to-top:hover {
  transform: translateY(-50%) scale(1.12);
  box-shadow:
    0 0 0 6px rgba(30,215,96,.45),
    0 18px 42px rgba(0,0,0,.9);
}

.scroll-to-top.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 70px;
    top: auto;
    transform: none;
    right: 14px;
  }
  .scroll-to-top:hover {
    transform: scale(1.12);
  }
}

/* =====================================================
   PANEL – LISTOR / LEXIKON
   ===================================================== */

.panel {
  background: rgba(26,29,37,.92);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.panel a{
	cursor:pointer;
}

.panel.shadow {
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(0,0,0,.65);
}

.panel-heading {
  padding: 14px 18px;
  background: rgba(15,17,23,.95);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.panel-heading a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor:pointer;
}


.panel-heading img {
  vertical-align: middle;
  margin-right: 6px;
}

.panel-heading p {
  margin: 4px 0 0;
}

.panel-heading .line {
  color: #1ed760;
  font-size: 0.9rem;
}

.panel-body {
  padding: 14px 18px;
  font-size: 0.95rem;
  color: #cfd3dc;
  line-height: 1.55;
}

.ul-none {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ul-none > li {
  margin-bottom: 12px;
}


/* PANEL – IKONER */
.panel i,
.panel .fa,
.panel .fas,
.panel .fab {
  font-size: 14px;
}

.panel img{
	height:20px;
	width:auto;
	  filter:
    brightness(1.35)
    saturate(1.25);
	
}

.panel-heading i{
  font-size: 14px;
  margin-right: 6px;
  
}

.panel-heading img{
	height:20px;
	width:auto;  filter:
    brightness(1.35)
    saturate(1.25);
}

.panel-body i{
  font-size: 13px;
}

.panel-body img{
	height:20px;
	width:auto;
	  filter:
    brightness(1.35)
    saturate(1.25);
}

.panel.notloggedin {
    position: relative;
}

.panel.notloggedin::after {
    content: "\f023"; /* fa-lock */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255,255,255,1);
    font-size: 13px;
}



.w3-amber,.w3-hover-amber:hover{color:#000!important;background-color:#ffc107!important}
.w3-aqua,.w3-hover-aqua:hover{color:#000!important;background-color:#00ffff!important}
.w3-blue,.w3-hover-blue:hover{color:#fff!important;background-color:#2196F3!important}
.w3-light-blue,.w3-hover-light-blue:hover{color:#000!important;background-color:#87CEEB!important}
.w3-jennyblue, ,.w3-hover-jennyblue:hover{color:#fff!important;background-color:#00ACE5!important}
.w3-brown,.w3-hover-brown:hover{color:#fff!important;background-color:#795548!important}
.w3-cyan,.w3-hover-cyan:hover{color:#000!important;background-color:#00bcd4!important}
.w3-blue-grey,.w3-hover-blue-grey:hover,.w3-blue-gray,.w3-hover-blue-gray:hover{color:#fff!important;background-color:#607d8b!important}
.w3-green,.w3-hover-green:hover{color:#fff!important;background-color:#4CAF50!important}
.w3-light-green,.w3-hover-light-green:hover{color:#000!important;background-color:#8bc34a!important}
.w3-indigo,.w3-hover-indigo:hover{color:#fff!important;background-color:#3f51b5!important}
.w3-khaki,.w3-hover-khaki:hover{color:#000!important;background-color:#f0e68c!important}
.w3-lime,.w3-hover-lime:hover{color:#000!important;background-color:#cddc39!important}
.w3-orange,.w3-hover-orange:hover{color:#000!important;background-color:#ff9800!important}
.w3-deep-orange,.w3-hover-deep-orange:hover{color:#fff!important;background-color:#ff5722!important}
.w3-pink,.w3-hover-pink:hover{color:#fff!important;background-color:#e91e63!important}
.w3-purple,.w3-hover-purple:hover{color:#fff!important;background-color:#9c27b0!important}
.w3-deep-purple,.w3-hover-deep-purple:hover{color:#fff!important;background-color:#673ab7!important}
.w3-red,.w3-hover-red:hover{color:#fff!important;background-color:#f44336!important}
.w3-sand,.w3-hover-sand:hover{color:#000!important;background-color:#fdf5e6!important}
.w3-teal,.w3-hover-teal:hover{color:#fff!important;background-color:#009688!important}
.w3-teal-blue,.w3-hover-teal-blue:hover{color:#fff!important;background-color:#00ADE8!important}
.w3-yellow,.w3-hover-yellow:hover{color:#000!important;background-color:#ffeb3b!important}
.w3-white,.w3-hover-white:hover{color:#000!important;background-color:#fff!important}
.w3-black,.w3-hover-black:hover{color:#fff!important;background-color:#000!important}
.w3-grey,.w3-hover-grey:hover,.w3-gray,.w3-hover-gray:hover{color:#000!important;background-color:#9e9e9e!important}
.w3-light-grey,.w3-hover-light-grey:hover,.w3-light-gray,.w3-hover-light-gray:hover{color:#000!important;background-color:#f1f1f1!important}
.w3-dark-grey,.w3-hover-dark-grey:hover,.w3-dark-gray,.w3-hover-dark-gray:hover{color:#fff!important;background-color:#616161!important}
.w3-pale-red,.w3-hover-pale-red:hover{color:#000!important;background-color:#ffdddd!important}
.w3-pale-green,.w3-hover-pale-green:hover{color:#000!important;background-color:#ddffdd!important}
.w3-pale-yellow,.w3-hover-pale-yellow:hover{color:#000!important;background-color:#ffffcc!important}
.w3-pale-blue,.w3-hover-pale-blue:hover{color:#000!important;background-color:#ddffff!important}
.w3-spring,.w3-hover-spring:hover{color:#fff!important;background-color:#4285F4!important}
.w3-darkblue,.w3-hover-darkblue:hover{color:#fff!important;background-color:#0000FF!important}
.w3-fall,.w3-hover-fall:hover{color:#fff!important;background-color:#DB4437!important}

@media (max-width:768px){.w3-hide-small{display:none!important}}
@media (max-width:1150px) and (min-width:769px){.w3-hide-medium{display:none!important}}
@media (min-width:1151px){.w3-hide-large{display:none!important}}

/* Synlig länk med underline-animation */
a.uline {
    position: relative;
    color: #40A9FF;             /* synlig blå */
    text-decoration: none;
    cursor: pointer;
}

/* Underline (startar från vänster) */
a.uline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: currentColor;   /* följer textfärgen */
    transition: width 0.3s ease;
}

/* Vid hovring – linjen expanderar */
a.uline:hover::after {
    width: 100%;
}

/* Liten färgförändring vid hover */
a.uline:hover {
    color: #66C0FF;
}



/* GRAFER */

div[id^="anmalda_hogskoleprovet"],
div[id^="fordelning_ratt_svar_hogskoleprovet"],
div[id^="medelresultat_hogskoleprovet"],
div[id^="fordelning_matteuppgifter"],
div[id^="fordelning_matteuppgifter_kapitel"] {
    border-radius: 14px;
    overflow: hidden;
}

.chart-wrapper {
    background: transparent;
    padding: 10px;
}

.white-wrapper {
    background: white;
    padding: 10px;
	width:80vw;
	max-width:1100px;
}


/* själva bilden */
.img-diagram {
  display:block;
  max-width:600px;   
  width:100%;
  margin:0 auto;
background:rgba(255,255,255,0.75);
  border-radius:12px;

  /* TA BORT DENNA ↓ */
  /* backdrop-filter: blur(8px); */
  /* background:rgba(255,255,255,0.05); */

  box-shadow:0 10px 40px rgba(0,0,0,.65);
}




/* Behåll radlayout även på mobil */
.statusdesc-inline {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
	justify-content: center !important;
        text-align: center !important;
        width: 100%;
		margin-top:6px;
}

/* Se till att dot + label håller ihop */
.statusdesc-inline span {
    display: inline-flex;
    align-items: center;
}

.w3-spring,.w3-hover-spring:hover{color:#fff!important;background-color:#4285F4!important}
.w3-fall,.w3-hover-fall:hover{color:#fff!important;background-color:#DB4437!important}

.dot{
  height: 14px;
  width: 14px;
  border-radius:50%;
  vertical-align:middle;
  background-color: #bbb;
  margin:0 3px 0 12px;
  display:inline-block;
}

.dia {
    width: 100%;
    max-width: 1000px;
    margin: 32px auto;
    aspect-ratio: 1.6 / 1;
    max-height: 500px;
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}




/* Mobil: mer kvadratisk */
@media (max-width: 600px) {
    .dia {

        aspect-ratio: 1.1 / 1;
        margin: 12px 10px;
    }
}

.question ol {
  text-align: left;
}


.question ol.decimal {
  list-style-type: decimal;
  padding-left: 22px;
  margin: 10px 0;
}

.question ol.decimal li {
  margin: 6px 0;
  color: #cfd3dc;
}



/* ============================
   ORDNAD LISTA – ROMERSKA SIFFROR
   ============================ */
ol.roman {
    list-style-type: upper-roman;
    padding-left: 28px;
    margin: 10px 0;
}
ol.roman li {
    margin: 6px 0;
    color: #cfd3dc;
}


/* ============================
   ORDNAD LISTA – ALFABETISK
   ============================ */

ol.alpha {
    list-style-type: upper-alpha; /* Gör A, B, C istället för a, b, c */
    padding-left: 12px;
    margin: 16px 0;
}

ol.alpha li {
    margin: 6px 16px;
    color: #cfd3dc;
}



/* ============================
   STANDARD UL – GLOBAL STYLING
   ============================ */
.page-container ul:not(.ul-none) {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}


.page-container ul:not(.ul-none) li {
    position: relative;
    padding-left: 18px;
    margin: 6px 0;
    color: #cfd3dc; /* textfärg matchar din design */
    line-height: 1.55;
}

/* Grön bullet-punkt */
.page-container ul:not(.ul-none) li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #1ed760; /* din gröna accentfärg */
    font-size: 18px;
    line-height: 1;
}

/* UL som inte ska stylas */
.ul-none,
.ul-none li,
.ul-none li::before {
    all: unset;
    display: block; /* behövs för li */
}



/* MATTE */

button.accordion {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: rgba(15,17,23,.95);
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
  margin-top: 12px;
}

button.accordion::after {
  content: "+";
  font-size: 1.4rem;
  color: #1ed760;
  transition: transform .25s ease;
}

button.accordion.active::after {
  transform: rotate(45deg);
}

.panel-accordion {
  max-height: 0;
  overflow: hidden;
  background: rgba(26,29,37,.92);
  transition: max-height .35s ease;
  padding: 0 20px;
  border-radius: 0 0 14px 14px;
  color: #cfd3dc;
}

.panel-accordion.open {
  padding: 16px 20px 20px;
}

/* PANEL – IKONER */
.panel-accordion i,
.panel-accordion .fa,
.panel-accordion .fas,
.panel-accordion .fab {
  font-size: 14px;
  margin-right: 6px;
}

.panel-accordion img{
	height:20px;
	width:auto;
	  filter:
    brightness(1.35)
    saturate(1.25);
	margin-right: 6px;
	
}

/* ===========================================
   EXEMPELRUTOR – BLURRAD GRÖN DESIGN
   =========================================== */

/* Toppraden */
.examplediv1 {
  position: relative;

  padding: 10px 18px;
  border-radius: 6px 6px 0 0;
  margin-bottom: -1px;

  /* 🔥 Djupare gradient */
  background: linear-gradient(
    90deg,
    rgba(20,40,25,0.95),
    rgba(30,80,40,0.95)
  );

  /* glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* accent */
  border-left: 6px solid #1ed760;

  /* subtil kant */
  border-bottom: 1px solid rgba(76,255,0,.18);

  /* glow + depth */
  box-shadow:
    inset 0 1px rgba(255,255,255,0.05),
    0 6px 18px rgba(0,0,0,0.35);

  color: #cfd3dc;
}

.examplediv1 mark {
  background: rgba(30,215,96,0.12);
  color: #1ed760;

  padding: 2px 8px;
  border-radius: 6px;

  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  /* glow */
  box-shadow: 0 0 8px rgba(30,215,96,0.35);
}

/* Innehållsrutan */
.examplediv {
    background: rgba(15, 20, 30, 0.85); /* istället för grön 0.06 */
    backdrop-filter: blur(6px);         /* mindre blur */
    -webkit-backdrop-filter: blur(6px);
    border-left: 5px solid #2f7d32;
    padding: 16px 20px;
    border-radius: 0 0 6px 6px;
    margin-bottom: 20px;
}

/* Rubrik */
.examplehead {
    color: #ffffff;
    padding-left: 6px;
    font-weight: 600;
}

/* Brödtext */
.examplediv p {
    color: rgba(255,255,255,0.92);  /* inte 100% vit */
    line-height: 1.6;
}

.examplediv p,
.exampletext {
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Exampletext – INGEN uppercase */
.exampletext {
    color: #ffffff;
    font-weight: 600;
    padding-bottom: 8px;
    letter-spacing: 0.01em !important; /* mycket mindre */
    line-height: 1.6;
}

.examplediv {
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.examplediv {
    background: rgba(15, 20, 30, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border-left: 5px solid #2f7d32;

    border-top: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);

    box-shadow:
      0 8px 24px rgba(0,0,0,0.35),
      inset 0 1px rgba(255,255,255,0.04);

    border-radius: 0 0 6px 6px;
}



/* -------------------------------------
   NAVX – Modern navigation bar
-------------------------------------- */

.navx-wrapper{
  position:relative;
  z-index:1000;

}

.navx-bar{
  display:flex;
  align-items:center;

  background:rgba(20,28,40,.55);
  backdrop-filter:blur(14px);

  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);

  overflow:visible;
}

/* knappar */
.navx-btn{
  flex:0 0 44px;
  width:44px;
  height:44px;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#fff;
  cursor:pointer;
  background:transparent;

  transition:.18s;
}

.navx-btn:hover{
  background:rgba(46,50,60,.9);
  color:#1ed760;
}

/* dots push */
.navx-more{
  margin-left:auto;
}


.navx-btn i {
  font-size: 18px;
}

.navx-bar > .navx-btn:first-child {
  border-radius: 10px 0 0 10px;
}

.navx-bar > .navx-btn:last-child {
  border-radius: 0 10px 10px 0;
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 769px) {
  .navx-wrapper {
    padding: 0 12px;
    position: relative;
    overflow: visible;
    z-index: 999999;
  }

  .navx-btn:not(.slider-btn) {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .slider-btn {
    flex: 0 0 auto;
    width: auto;
  }

  .navx-bar {
    align-items: center;
    white-space: nowrap;
  }

  .navx-dropdown {
    position: absolute;
    z-index: 999999;
  }
}

/* DROPDOWN (DESKTOP) */


/* Positionera relativt more-knappen */
.navx-more {
  position: relative;
}



/* Dropdown container måste vara relativ till navx-bar */
.navx-bar {
  position: relative;
}


/* DROPDOWN */
.navx-drop {
    position: relative;
	padding-bottom: 8px;
}

.navx-drop i {
    margin: 0 1px;
}

/* Hidden until hover */
.navx-drop{
    position:relative;
}

.navx-drop-panel{
 position:absolute;
    top:100%;
    left:0;   

    min-width:600px;
    max-width:90vw;

    display:none;   /* ← bara denna */

    gap:48px;
    padding:24px 32px;

    background:#111827;
    border-radius:0 16px 16px 16px;
    box-shadow:0 40px 90px rgba(0,0,0,.55);

    z-index:999999;
}


.navx-drop:hover .navx-drop-panel{
    display:grid;
    grid-template-columns:repeat(3,1fr);
}



.navx-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.navx-col a {
    color: #cfd3dc;
    padding: 10px 0;
    text-decoration: none;
    font-size: 14px;
}

.navx-col a:hover {
    color: #1ed760;
}

.navx-drop-icon i.fa-angles-up {
    display: none;
}

.navx-drop:hover .navx-drop-icon i.fa-angles-down {
    display: none;
}

.navx-drop:hover .navx-drop-icon i.fa-angles-up {
    display: inline-block;
}


/* Default (desktop) – ligger kvar i flödet */
.navx-wrapper {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 1000;
  margin: 0;
  padding: 0;
  background: none;
  overflow: visible !important;
  margin-bottom:18px;
}

/* Mobile: navigation sticky bottom */
@media (max-width: 768px) {
  .navx-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0!important;
    padding: 0;
    z-index: 10000;
  }

    /* Ikoner och knappar i mobil */
    .navx-wrapper .button,
    .navx-wrapper .navx-btn {
        flex: 1;
        text-align: center;
        border-radius: 0;
        background: none;
        box-shadow: none;
        padding: 10px 0;
    }

    /* Dropdown-panel reposition for mobile */
    .navx-drop-panel {
        top: -260px; /* Visas ovanför navigationen */
        left: 0;
        right: 0;
        margin: auto;
    }
}

@media (max-width: 768px) {
  .navx-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0!important;
    padding: 0;
    z-index: 10000;
  }

  .navx-bar {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0;
	margin: 0!important;
    padding: 6px 2px 6px 2px;
	border-top:0.1px solid rgba(255,255,255,.25);
  }

  .navx-btn, .navx-bar > .navx-btn, .navx-dropdown .navx-btn i {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
	border-radius:0!important;
	border:none;
  }
  
    
	.slider-btn, 
	.slider-btn input[type="range"]
  .navx-label,
  .uppgift-label,
  .navx-more,
  .navx-dropdown {
    display: none !important;
  }
}


/* ================================
   SAMMANFATTNINGSRUTA
   ================================ */

.summaryhead {
  position: relative;

  padding: 14px 18px;
  margin: 0;

  font-size: 1.3rem;
  font-weight: 700;

  /* snygg gradient */
  background: linear-gradient(
    90deg,
    rgba(20,40,25,0.95),
    rgba(30,80,40,0.95)
  );

  color: #e8f5ec;

  border-left: 6px solid #1ed760;
  border-bottom: 1px solid rgba(76,255,0,.18);

  border-radius: 6px 6px 0 0;

  /* depth */
  box-shadow:
    inset 0 1px rgba(255,255,255,0.05),
    0 8px 22px rgba(0,0,0,0.35);
}

@media (max-width: 600px) {
    .summaryhead {
        padding: 6px 10px;      /* mindre luft */
        font-size: 0.95rem;     /* lite mindre text */
        border-left-width: 4px; /* tunnare linje */
    }
}

.summarydiv {
  background: rgba(15, 20, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  padding: 16px 20px;
  margin-bottom: 24px;

  border-radius: 0 0 6px 6px;

 border-top: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 5px solid #2f7d32;

  box-shadow:
    0 10px 28px rgba(0,0,0,0.4),
    inset 0 1px rgba(255,255,255,0.04);

  color: rgba(255,255,255,0.95);
}

@media (max-width: 768px) {
  .summarydiv {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .summarydiv img.factsimg {
    max-width: 100% !important;
    width: 100% !important;
  }
}


.summarydiv img.factsimg,
.summarydiv p img {
  max-width: 100%!important;
  width: auto;
  height: auto;
  display: block;
}

.page-container ul.summaryul, ul.blue-ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.page-container ul.summaryul li, ul.blue-ul li {
    position: relative;
    padding-left: 18px;
    margin: 8px 0;
    color: rgba(255,255,255,0.95);
}

/* Snygg grön bullet */
.page-container ul.summaryul li::before, ul.blue-ul li::before{
    content: "●";               /* mindre än ● */
    color: #1ed760;
    font-size: 12px;            /* lagom stor */
    position: absolute;
    left: 0;
    top: 0.4em;                 /* centrerar vertikalt */
    line-height: 1;
}
ul.blue-ul li::before  {
color:#38bdf8!important;}

.summaryhead::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.06),
    transparent 80%
  );

  opacity: 0.5;
  pointer-events: none;
}


/* Andranivå — öppna cirklar */
.page-container ul.summaryulsecond {
    list-style: none !important;
    margin: 0 0 8px 16px;
    padding-left: 0;
}

.page-container ul.summaryulsecond li {
    position: relative;
    padding-left: 18px;
    margin: 8px 0;
color:rgba(255,255,255,0.95);
}

/* Cirkeln */
.page-container ul.summaryulsecond li::before {
    content: "○" !important;
    color: #6ddf8e !important;
    font-size: 14px !important;
    position: absolute;
    left: 0;
    top: 0.4em;
}


.styled-list {
  counter-reset: item; /* Startar en räknare */
  margin-left: 40px;   /* Rak vänstermarginal */
}

.styled-list div {
  counter-increment: item; /* Ökar räknaren för varje div */
  margin-bottom: 8px;
  position: relative;
}

.styled-list div::before {
  content: counter(item) ". "; /* Numrering som i <ol> */
  position: absolute;
  left: -30px; /* Justera så siffran hamnar utanför texten */
}


.question img.factsimg, .question img, .question .factsimg {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

@media screen and (min-width: 600px) {		
img.factsimg{width:auto;max-width:500px!important;height:auto;}
img.headimg{width:100%;max-width:1000px;border-radius: 10px!important;height:auto!important;}
img.lineimg{width:400px;height:auto;}
}


@media screen and (max-width: 1150px) {		
img.factsimg, img.lineimg{width:auto;max-width:calc(100% - 24px);height:auto;}
img.headimg{width:calc(100vw - 30px)!important;height:auto!important;border-radius: 10px;}

.page-container > p > img.factsimg {
  max-width: 100%;
  width: auto;
  height: auto;
}

}

@media screen and (max-width: 600px) {		
.question img.factsimg{width:calc(100% - 30px);height:auto;}}

@media screen and (min-width: 600px) {		
.question img.factsimg{width:auto;max-width:350px;height:auto;max-height:350px!important;}}


img.iconimage{
	filter: brightness(10) invert(1);}
	
img.poolicon {
    filter: invert(1) brightness(1.6) hue-rotate(180deg);
}

img.mathimg, .mathimg {
    display: block;
    max-width: 100%;
    background: rgba(20,20,20,0.65);
    padding: 8px;
    border-radius: 8px;
	mix-blend-mode: multiply;
    opacity: .92;
}

img.mathimg2 {
    display: inline-block;
    background: rgba(100, 100, 100, 0.55);
    padding: 10px;
    border-radius: 10px;
}

img.mathimg3 {
    display: block;
    background: rgba(255, 255, 255, 0.6); /* mjukt mörk */
    padding: 14px;
    border-radius: 10px;
    margin: 20px auto; /* centrerar snyggt */
    max-width: 100%; /* responsiv */
    filter: brightness(1.5) contrast(1.2);
}

img.mathimg4 {
background:rgba(255, 255, 255, 0.7);
display:inline-block;
border-radius:7px;
padding:4px;}

img.whitebg {
background-color:rgb(255, 255, 255);
display:inline-block;
border-radius:7px;
padding:4px;}

.img-container {
    background-color: white;
    display: inline-flex;
    align-items: center;
	max-width:100%;
    justify-content: center;
    border-radius: 7px;
    padding: 4px;
}

.img-container img {
    display: block; /* Tar bort extra space under bilden */
}

.white-p{background:rgba(255,255,255,.7);width:320px;height:auto;border-radius:7px;}


.badge, .badge-news, .badge-tips{display:inline-block;width:40px;padding:3px 7px;font-size:13px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;
vertical-align:baseline!important;background-color:#777;border-radius:999px;font-family:'Source Sans Pro';outline:none;
letter-spacing: 0.05em;
text-shadow: 0 1px 2px rgba(0,0,0,0.35);
text-transform: uppercase;
}

.badge-news {
  width: auto;
  background: linear-gradient(135deg, #4a0080 0%, #800080 50%, #4a0080 100%) !important;
  border: 1.5px solid rgb(140, 0, 140) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(140,0,140,0.25), 0 2px 8px rgba(128,0,128,0.3), inset 0 1px 0 rgba(220,80,220,0.2) !important;
}

.badge-tips {
  width: auto;
  background: linear-gradient(135deg, #7a2e00 0%, #FF6A00 50%, #7a2e00 100%) !important;
  border: 1.5px solid rgb(168, 80, 0) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(168,80,0,0.25), 0 2px 8px rgba(255,106,0,0.3), inset 0 1px 0 rgba(255,180,80,0.2) !important;
}

.badge.xyz, .badge.xyz2, .badge.xyz, .badge.xyz2, .badge.XYZ, .badge.XYZ2, .badge.XYZ, .badge.XYZ2 {  
background: linear-gradient(135deg, #7a5f00 0%, #c49b00 50%, #7a5f00 100%) !important;
border: 1.5px solid rgb(168,136,0) !important;
color: #fff !important;
box-shadow: 0 0 0 1px rgba(168,136,0,0.25), 0 2px 8px rgba(168,136,0,0.3), inset 0 1px 0 rgba(255,220,80,0.2) !important;}

.badge.kva, .badge.kva2, .badge.kva, .badge.kva2, .KVA, .KVA2, .badge.KVA, .badge.KVA2{  
 background: linear-gradient(135deg, #2d6e1a 0%, #4aaa28 50%, #2d6e1a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgb(50,120,20) !important;
  box-shadow: 0 0 0 1px rgba(50,120,20,0.25), 0 2px 6px rgba(74,170,40,0.35) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;}

.badge.nog, .badge.nog2, .badge.nog2, .badge.NOG, .badge.NOG, .NOG2, .badge.NOG2{
background: linear-gradient(135deg, #0a3550, #1e8ab4) !important;
box-shadow: 0 0 0 1px rgba(11,51,69,0.4), 0 2px 8px rgba(21,96,130,0.6) !important;
color: white !important;
border: 1px solid rgb(11,51,69) !important;}
  
.badge.dtk, .badge.dtk, .badge.dtk2, .badge.dtk2, .badge.DTK, .badge.DTK, .badge.DTK2, .badge.DTK2{
background: linear-gradient(135deg, #004a4d, #00c5ca) !important;
border: 1px solid rgb(0,41,42) !important;
box-shadow: 0 0 0 1px rgba(0,153,157,0.3), 0 2px 10px rgba(0,197,202,0.5) !important;}
  
.badge.ord, .badge.ord2, .badge.ord, .badge.ord2, .badge.ORD, .badge.ORD2, .badge.ORD, .badge.ORD2{  
background: linear-gradient(135deg, #bb1511, #f59391) !important;
color: white !important;
border: 1px solid rgb(187,21,17) !important;
box-shadow: 0 0 0 1px rgba(187,21,17,0.3), 0 2px 6px rgba(187,21,17,0.35) !important;}
  
.badge.las, .badge.las, .badge.las2, .badge.las2, .badge.LAS, .badge.LAS, .badge.LAS2, .badge.LAS2, .badge.läs, .badge.läs, .badge.läs2, .badge.läs2, .badge.LÄS, .badge.LÄS, .badge.LÄS2, .badge.LÄS2
{background: linear-gradient(135deg, #c9a800, #fff2b9) !important;
color: #3a2d00 !important;
border: 1px solid rgb(122,99,0) !important;
box-shadow: 0 0 0 1px rgba(122,99,0,0.25), 0 2px 6px rgba(122,99,0,0.2) !important;}
  
.badge.mek, .badge.mek, .badge.mek2, .badge.mek2, .badge.MEK, .badge.MEK, .MEK2, .badge.MEK2{
  background: linear-gradient(135deg, #2d5f7a 0%, #4a8aaa 50%, #2d5f7a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgb(40,90,120) !important;
  box-shadow: 0 0 0 1px rgba(40,90,120,0.25), 0 2px 8px rgba(74,122,155,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;}
  
.badge.elf, .badge.elf, .badge.elf2, .badge.elf2, .badge.ELF, .badge.ELF, .badge.ELF2, .badge.ELF2 {
  background: linear-gradient(135deg, #8a3005 0%, #d45a0a 50%, #8a3005 100%) !important;
  color: white !important;
  border: 1px solid rgb(160,60,8) !important;
  box-shadow: 0 0 0 1px rgba(160,60,8,0.3), 0 2px 6px rgba(192,78,8,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
  
.badge.ene, .badge.ene, .badge.ene, .badge.ENE {
background: linear-gradient(135deg, #0e4a7a, #5aaaf0) !important;
color: white!important;
border: 1px solid rgb(22,61,100) !important;
box-shadow: 0 0 0 1px rgba(78,149,217,0.3), 0 2px 10px rgba(90,170,240,0.5) !important;}
  
.badge.ens, .badge.ens, .badge.ens, .badge.ENS {
background: linear-gradient(135deg, #4a0046, #f000e0) !important;
color: white!important;
border: 1px solid rgb(100,0,93) !important;
box-shadow: 0 0 0 1px rgba(218,0,202,0.3), 0 2px 12px rgba(240,0,224,0.5) !important;}
  
.correctbadge, .badge.correctbadge{background:rgb(76, 155, 80);color:white;border:1px solid rgb(76, 155, 80);}

.w3-center{text-align:center!important}



/* Backdrop */
dialog::backdrop {
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}

/* Dialog */
dialog.modal {
  border: none;
  padding: 0;
  border-radius: 16px;
  max-width: 720px;
  height:auto;
  max-height:520px;
  width: calc(100% - 32px);
  background: transparent;
}

/* Kortet */
.modal-card {
  background: rgba(26,29,37,.96);
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  animation: modalIn .25s ease;
}

/* Header / footer */
.modal-header,
.modal-footer {
  padding: 14px 18px;
  background: rgba(15,17,23,.95);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-footer {
  text-align: center;
  color: #b8bcc6;
}

.modal-footer button{
  margin-right:18px;
}

/* Body */
.modal-body:not(#solution) {
  padding: 18px;
  text-align: center;
}

.modal-body#solution, #solution.question {
  padding: 18px;
  text-align: left!important;
}


.modal-left {
  text-align: left!important;
}

/* Stängknapp */
.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #1ed760;
}

.modal-body img, .modal-body img.factsimg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* Animation */
@keyframes modalIn {
  from {
    transform: translateY(20px) scale(.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.cta-primary{
  background:#32d865;
  color:#000;
  font-weight:800;
  font-size:18px;
  padding:16px 34px;
  border-radius:9px;
  border:0;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transition:.15s ease;
}

.cta-primary-small{
	  background:#32d865;
  color:#000;
  font-weight:800;
	padding:4px 8px;
	font-size:14px;
	margin:14px 0 22px; 
	text-align:center;
	border:0;
	  border-radius:9px;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transition:.15s ease;
 
}

.cta-primary:hover, .cta-primary-small:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 40px rgba(0,0,0,.45);
}

p.startBtn{
margin:14px 0 22px;
}

/* Spinner container */
.cta-primary .dots-spinner{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

/* dots */
.cta-primary .dots-spinner span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff;
  transform:scale(.7);
  animation: dotWave 1.2s infinite cubic-bezier(.4,0,.2,1);
}

/* delay = wave */
.cta-primary .dots-spinner span:nth-child(2){
  animation-delay:.2s;
}

.cta-primary .dots-spinner span:nth-child(3){
  animation-delay:.4s;
}


@keyframes dotWave{
  0%,80%,100%{
    transform:scale(.7);
    opacity:.4;
  }

  40%{
    transform:scale(1.3);
    opacity:1;
  }
}

@media (max-width: 768px) {
	
.cta-primary {
  position: relative;
}

.cta-primary.is-spinning .dots-spinner {
  display: flex !important;
}
.cta-primary.is-spinning i {
  opacity: 0;
}
	
.cta-primary .dots-spinner{
  -webkit-transform: translateZ(0);
}
	
.cta-primary .dots-spinner{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:5;
}


.cta-primary .dots-spinner span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff;
  opacity:.35;
  transform:scale(.6) translateZ(0);
  margin:0 3px;               /* istället för gap */
  display:inline-block;
  animation:dotWave .9s infinite cubic-bezier(.4,0,.2,1);
  will-change:transform,opacity;
}

.cta-primary .dots-spinner span{
  -webkit-animation: dotWave .9s infinite cubic-bezier(.4,0,.2,1);
  animation: dotWave .9s infinite cubic-bezier(.4,0,.2,1);
}

.cta-primary .dots-spinner span:nth-child(2){ animation-delay: -.75s; }
.cta-primary .dots-spinner span:nth-child(3){ animation-delay: -.60s; }

@-webkit-keyframes dotWave{
  0%,80%,100%{ opacity:.35; transform:scale(.6); }
  40%{ opacity:1; transform:scale(1); }
}
}


.align-left{
	text-align: left!important;
}

.align-center{
	display:block!important;
	text-align: center!important;
}

/* ============================
   Dark UI – Text inputs
   ============================ */
/* ============================
   Dark UI – visible inputs
   ============================ */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"] {
  background: linear-gradient(
    180deg,
    #151a28,
    #101522
  );

  color: #f0f0f0;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;

  padding: 9px 12px;
  font-size: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  outline: none;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.04),
    0 2px 6px rgba(0,0,0,0.35);

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

input[type="text"]:focus:not(.Se):not(.En),
input[type="search"]:focus:not(.Se):not(.En),
input[type="email"]:focus:not(.Se):not(.En),
input[type="password"]:focus:not(.Se):not(.En) {
  background: linear-gradient(
    180deg,
    #181f30,
    #12192a
  );

  border-color: rgba(76,255,0,0.7);

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.05),
    0 0 0 2px rgba(76,255,0,0.2),
    0 4px 12px rgba(0,0,0,0.45);
}

input[type="text"]::placeholder,
input[type="search"]::placeholder {
  color: rgba(255,255,255,0.55);
}


.claude-spinner {
  width: 12px;
  height: 12px;
  display: inline-block;
  position: relative;
  animation: claude-spin 0.8s steps(8) infinite;
  vertical-align: middle; /* Centrerar vertikalt */
}

.claude-spinner div {
  position: absolute;
  width: 2px;
  height: 6px;
  background: #4c9b50;
  border-radius: 1px;
  top: 50%;
  left: 50%;
  margin-top: -10px;  /* Halva höjden av spinnern */
  margin-left: -1px;  /* Halva bredden av strecket */
  transform-origin: 1px 10px;
}

.claude-spinner div:nth-child(1) { transform: rotate(0deg); opacity: 1; }
.claude-spinner div:nth-child(2) { transform: rotate(45deg); opacity: 0.85; }
.claude-spinner div:nth-child(3) { transform: rotate(90deg); opacity: 0.7; }
.claude-spinner div:nth-child(4) { transform: rotate(135deg); opacity: 0.55; }
.claude-spinner div:nth-child(5) { transform: rotate(180deg); opacity: 0.4; }
.claude-spinner div:nth-child(6) { transform: rotate(225deg); opacity: 0.25; }
.claude-spinner div:nth-child(7) { transform: rotate(270deg); opacity: 0.15; }
.claude-spinner div:nth-child(8) { transform: rotate(315deg); opacity: 0.1; }

@keyframes claude-spin {
  100% { transform: rotate(360deg); }
}


/* =========================================================
   ORDLISTA
   ========================================================= */
@media (min-width: 768px) {
#ordlista-wrapper {
  background: rgba(12, 18, 28, 0.05);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.45);
  border: 1px solid rgba(0,255,100,0.08);
  height:auto;
  min-height:310px;
}}



#ordlista div.box-body{
	height:auto;
}

.hp-examples {
  margin-top: 18px;
  font-size: 18px;
}

#explist {
  margin-top: 10px;
}

#intestx {
  margin-top: 14px;
}


.autocomplete-wrapper{
  position: relative;   
  width: 100%;
}



.autocomplete-container{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}


.autocomplete-wrapper input[type="text"]{
  width:100%;
  height:34px;
  border-radius:999px;
  background-color:#0f131b;    /* <— Viktigt! */
  color:#e8e8e8;
  border:1px solid rgba(255,255,255,.18);
  outline:none;
  padding:6px 10px 6px 36px;
  font-size:14px;
  transition:border .2s, box-shadow .2s;
}




/* gemensamma regler — utan shorthand */
input.Se,
input.En{
  background-color:#0f131b;
  color:#eee;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  height:36px;

  background-repeat:no-repeat;
  background-position:10px center;
  background-size:18px auto;

  padding-left:34px;
}

@media (min-width: 768px) {
.autocomplete-wrapper input[type="text"]{
padding: 14px 18px 14px 36px;}}


/* svensk */
input.Se{
  background-image:url('images/sveflag2.png');
}

/* engelsk */
input.En{
  background-image:url('images/engflag2.png');
}

input.Se:focus,
input.En:focus{
  border-color:rgba(76,255,0,.5);
}


#switchr{
	cursor: pointer;
	transition:transform .35s ease;
}

#switchr.spin{
  transform:rotate(-180deg);
}



.autocomplete-wrapper input[type="text"]:focus {
  border: 1px solid rgba(76, 255, 0, .4);
  box-shadow: 0 0 6px rgba(76,255,0,.25);
}

/* tar bort vit kant i vissa browsers */
.autocomplete-wrapper input[type="text"]::-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #0f131b inset;
  -webkit-text-fill-color: #e8e8e8;
}

input[type="text"],
input.Se,
input.En {
  background-color: #0f131b;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px;
  padding-left: 34px;
}

input[type="text"]:focus,
input.Se:focus,
input.En:focus {
  background-color: #0b0f16; /* ändra färg, inte background */
  border-color: rgba(76,255,0,0.7);
  box-shadow: 0 0 0 2px rgba(76,255,0,0.2);
}



/* ---- AUTOCOMPLETE DROPDOWN ---- */

#autocomplete-list{
  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;          /* matcha input */
  margin-top: 4px;

  background: #0f131b;
  border-radius: 8px;


  max-height: 260px;
  overflow-y: auto;

  z-index: 2000;        /* över andra paneler */
}


#autocomplete-list div {
  padding: 8px 10px;
  color: #e8e8e8;
  cursor: pointer;

  border-bottom: 1px solid rgba(255,255,255,.05);
}

#autocomplete-list div:last-child {
  border-bottom: none;
}

#autocomplete-list div:hover,
#autocomplete-list .selected,
#autocomplete-list .active {
  background: #18202d;
}


/* ---- SUGGESTIONS (chips) ---- */

#suggestions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  background: transparent;
  border: 0;
  padding: 8px 0;
}

.suggestion-item {
 background: linear-gradient(135deg, #2d6e1a 0%, #4aaa28 50%, #2d6e1a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgb(50,120,20) !important;
  box-shadow: 0 0 0 1px rgba(50,120,20,0.25), 0 2px 6px rgba(74,170,40,0.35) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 12px;
  cursor: pointer;
}

.suggestion-item:hover {
  transform: translateY(-2px);
}

.suggestion-chip {
  display: inline-block;
  padding: 6px 12px;
  margin: 6px 6px 0 0;
  border-radius: 999px;

  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.suggestion-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}

#cookie-consent{
	margin-top:100px;
	z-index: 9999999;
}

#cookie-consent .modal-footer{
    display:flex;
    justify-content:center; /* snyggare */
    align-items:center;
    gap:22px;
}



.locked{
 opacity:.65;
 cursor:not-allowed;
}

.locked:hover{
 background:rgba(255,255,255,.03);
}

:root {
  --alg: #3366cc;
  --ari: #dc3912;
  --fun: #ff9900;
  --geo: #109618;
  --sta: #990099;
  --dia: #3366cc;
  --tab: #dc3912;
  --kar: #ff9900;
}


.donut-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}

.donut-chart {
  width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
    cursor: pointer;

  /* Bara highlight + fallback */
  background:
    radial-gradient(
      circle at 60% 40%,
      rgba(255,255,255,0.18),
      transparent 60%
    ),
    conic-gradient(#444 0deg 360deg);

  -webkit-mask: radial-gradient(circle, transparent 44%, #000 45%);
  mask: radial-gradient(circle, transparent 44%, #000 45%);
}

.donut-tooltip {
  position: fixed;
  pointer-events: none;

  background: rgba(15, 20, 30, 0.95);
  color: #e8edf7;

  padding: 8px 10px;
  border-radius: 6px;

  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;

  box-shadow: 0 8px 24px rgba(0,0,0,0.6);

  z-index: 99999;          /* 🔑 högre än allt annat */
  opacity: 0;

  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 0.12s ease;
}

.donut-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  position: fixed; /* viktigt */

}

/* HP-CARDS */
/* Layout */
.hp-grid {
	
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows:
    auto   /* header */
    auto   /* stats */
    minmax(120px, auto) /* options (viktig skillnad!) */
    auto;  /* time */

  gap: 12px;
  margin-top:24px;
}


/* Kort (bas) */
.hp-card {
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  max-width: 520px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 4px 12px rgba(0,0,0,0.25);

  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  position:relative;
  overflow:hidden;
}


.hp-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}

.hp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(
    130deg,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.15) 25%,
    rgba(255,255,255,0.00) 45%,
    rgba(255,255,255,0.12) 70%,
    rgba(255,255,255,0.55) 100%
  );

  /* mask = visa endast kanten */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}




.hp-card.hp-nog, .hp-card.hp-dtk {
	margin:24px auto 0 auto;
}

.hp-nog .hp-options, .hp-dtk .hp-options {
  gap: 12px;
  margin:12px 0;
}

.hp-dtk .hp-stats{
	margin:18px 0;
}

.hp-dtk .hp-option{
	padding:12px;
}

.hp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: 0.2s;
}

.hp-header  { grid-row: 1; }
.hp-stats   { grid-row: 2; }
.hp-options { grid-row: 3; }
.hp-time    { grid-row: 4; }




/* Header */
.hp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}


.hp-stat,
.hp-option, 
.hp-tag {
  transition: transform 0.18s ease-out;
}


.hp-tag:hover, .hp-stat:hover, .hp-option:hover{
	transform:scale(1.05);
	cursor:pointer;
}
	
.hp-tag {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  background: rgba(255,255,255,0.15);
}

.hp-title {
  font-weight: bold;
}

.hp-sub {
  font-size: 13px;
  opacity: 0.85;
}

/* Stats (XYZ) */
.hp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.hp-stat {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
}

.hp-stat strong {
  display: block;
  font-size: 20px;
}

.hp-stat span {
  font-size: 12px;
  opacity: 0.8;
}

/* Alternativ */
.hp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hp-option {
  background: rgba(0,0,0,0.2);

  padding: 6px 10px;       /* viktig ändring */
  min-height: 24px;        /* låser höjden snyggt */

  border-radius: 16px;     /* lite mindre än 20 */
  display: flex;
  align-items: center;

  font-size: 14px;
}

/* Badge */
.hp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;
  border-radius: 50%;

  background: rgba(255,255,255,0.2);
  font-weight: bold;
  margin-right: 8px;
}

/* KVA compare */
.hp-compare {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.hp-box {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: rgba(0,0,0,0.2);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: bold;
}

.hp-vs {
  font-size: 14px;
  opacity: 0.8;
}

/* Footer */
.hp-footer {
  margin-top: 15px;
  font-size: 13px;
  text-align: center;
  opacity: 0.9;
}

/* FÄRGER */

/* XYZ (guld) */
.hp-xyz {
  background: linear-gradient(135deg, 
    #7a5f00 0%, 
    #c49b00 50%, 
    #7a5f00 100%) !important;

  border: 1.5px solid rgb(168,136,0) !important;

  box-shadow:
    0 0 0 1px rgba(168,136,0,0.25),
    0 2px 8px rgba(168,136,0,0.3),
    inset 0 1px 0 rgba(255,220,80,0.2);
}


.hp-time {
  display: grid;
  gap: 8px;
  margin-top:16px;
}


/* Header rad */
.hp-time-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.9;
}

/* Själva baren */
.hp-time-bar {
  position: relative;
  height: 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.25);
  overflow: hidden;
}


.hp-time-fill-xyz {
  position: relative;
  width: 50%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #c49b00 25%,
    rgba(255,210,0,0.95) 100%
  );
  box-shadow: 0 0 6px rgba(255,210,0,0.5);
}

.hp-time-bar::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -30%;

  width: 30%;
  height: 150%;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.55),
    rgba(255,255,255,0)
  );

  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}


@keyframes bar-shine-loop {
  0% {
    left: -30%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  20% {
    left: 120%;
    opacity: 0;
  }

  100% {
    left: 120%;
    opacity: 0;
  }
}


.hp-time-bar::after {
  animation: bar-shine-loop 4s ease-out infinite;
}





/* Skala */
.hp-time-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.8;
}

/* Total tid */
.hp-time-total {
  margin-top: 12px;
  font-size: 16px;
}

.hp-time-total strong {
  font-size: 26px;
}

/* KVA (grön) */
.hp-kva {
  background: linear-gradient(135deg, 
    #2d6e1a 0%, 
    #4aaa28 50%, 
    #2d6e1a 100%) !important;

  border: 1px solid rgb(50,120,20) !important;

  box-shadow:
    0 0 0 1px rgba(50,120,20,0.25),
    0 2px 6px rgba(74,170,40,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* KVA använder samma bas */
.hp-kva .hp-time-bar {
  background: rgba(0,0,0,0.3);
}

/* Istället för exakt punkt → spann */
.hp-kva .hp-time-fill-kva {
  position: absolute;
  width: 50%;  /* upp till ~1:30 */

  height: 100%;
  border-radius: 6px;

  background: linear-gradient(
    90deg,
    rgba(120,255,120,0.4),
    rgba(80,220,80,0.8)
  );

  box-shadow: 0 0 6px rgba(80,220,80,0.5);
}

/* NOG */

.hp-nog {
  background: linear-gradient(135deg,
    #0a3550 0%,
    #1e8ab4 50%,
    #0a3550 100%
  ) !important;

  color: #ffffff !important;

  border: 1px solid rgb(11,51,69) !important;

  box-shadow:
    0 0 0 1px rgba(11,51,69,0.4),
    0 2px 8px rgba(21,96,130,0.6),
   
}

.hp-nog .hp-time-bar {
  background: rgba(0,0,0,0.35);
}

/* Istället för exakt punkt → spann */
.hp-nog .hp-time-fill-nog {
  width: 83%; /* visar att man ofta går till steg 3 */
  height: 100%;
  border-radius: 6px;

  background: linear-gradient(
    90deg,
    rgba(120,180,255,0.5),
    rgba(120,180,255,0.9)
  );

  box-shadow: 0 0 8px rgba(30,138,180,0.6);
}

/* DTK */

.hp-dtk {

  background: linear-gradient(135deg,
    #00383b 0%,   /* mörk DTK-bas */
    #00c5ca 50%,  /* original highlight */
    #00383b 100%
  ) !important;

  color: #ffffff !important;

  border: 1px solid rgb(0,41,42) !important;

  box-shadow:
    0 0 0 1px rgba(0,153,157,0.35),
    0 2px 8px rgba(0,197,202,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}


.hp-dtk .hp-time-bar {
  background: rgba(0,0,0,0.35);
}

/* Istället för exakt punkt → spann */
.hp-dtk .hp-time-fill-nog {
  width: 96%;
  height: 100%;
  border-radius: 6px;

  background: linear-gradient(
    90deg,
    rgba(0, 197, 202, 0.35) 0%,
    rgba(0, 197, 202, 0.55) 30%,
    rgba(0, 197, 202, 0.85) 100%
  );

  box-shadow:
    0 0 6px rgba(0, 197, 202, 0.35);
}



/* ORD */

.hp-ord {
  background: linear-gradient(135deg,
    #8f120f 0%,
    #f59391 50%,
    #8f120f 100%
  ) !important;

  color: #ffffff !important;

  border: 1px solid rgb(187,21,17) !important;

  box-shadow:
    0 0 0 1px rgba(187,21,17,0.35),
    0 2px 8px rgba(187,21,17,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}


.hp-ord .hp-time-bar {
  background: rgba(0,0,0,0.35);
}

/* Istället för exakt punkt → spann */
.hp-ord .hp-time-fill-ord {
  width: 15%; 
  height: 100%;
  border-radius: 6px;
background: linear-gradient(175deg, #E82924, #f59391) !important;
color: white !important;
border: 1px solid rgb(187,21,17) !important;
box-shadow: 0 0 0 1px rgba(187,21,17,0.7), 0 2px 6px rgba(187,21,17,0.35) !important;
}

/* MEK */

.hp-mek {
 background: linear-gradient(135deg,
    #234b61 0%,
    #4a8aaa 50%,
    #234b61 100%
  ) !important;

  color: #ffffff !important;

  border: 1px solid rgb(40,90,120) !important;

  box-shadow:
    0 0 0 1px rgba(40,90,120,0.3),
    0 2px 8px rgba(74,122,155,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;

  text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;
}



.hp-mek .hp-time-bar {
  background: rgba(0,0,0,0.35);
}

/* Istället för exakt punkt → spann */
.hp-mek .hp-time-fill-mek {
  width: 40%;
  height: 100%;
  border-radius: 6px;

  background: linear-gradient(
    90deg,
    rgba(74,138,170,0.25) 0%,
    rgba(74,138,170,0.55) 100%
  );

  box-shadow:
    0 0 4px rgba(74,138,170,0.85);

  border: none;
}


/* LÄS */

.hp-las {
background: linear-gradient(135deg,
    #9e8400 0%,
    #fff2b9 50%,
    #9e8400 100%
  ) !important;

  color: #3a2d00 !important;

  border: 1px solid rgb(122,99,0) !important;

  box-shadow:
    0 0 0 1px rgba(122,99,0,0.3),
    0 2px 6px rgba(122,99,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
}




.hp-las .hp-time-bar {
  background: rgba(0,0,0,0.35);
}

/* Istället för exakt punkt → spann */
.hp-las .hp-time-fill-las {
  width: 100%;
  height: 100%;
  border-radius: 6px;

  background: linear-gradient(
    165deg,
	#E6C000 60%,
    #FFEC8F 100%
    
  );

  box-shadow:
    0 0 8px rgba(120,180,220,0.8),
    0 0 16px rgba(120,180,220,0.4);

  border: none;
}

/* ELF */

.hp-elf {

background: linear-gradient(135deg,
    #6f2604 0%,
    #d45a0a 50%,
    #6f2604 100%
  ) !important;

  color: #ffffff !important;

  border: 1px solid rgb(160,60,8) !important;

  box-shadow:
    0 0 0 1px rgba(160,60,8,0.35),
    0 2px 8px rgba(192,78,8,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;

  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}

.hp-elf .hp-time-bar {
  background: rgba(0,0,0,0.35);
}

/* Istället för exakt punkt → spann */
.hp-elf .hp-time-fill-elf {
  width: 100%;
  height: 100%;
  border-radius: 6px;

  background: linear-gradient(
    90deg,
	#F46C10 50%,
    #FBAC89 100%
	  
  );

  box-shadow:
    0 0 8px rgba(120,180,220,0.8),
    0 0 16px rgba(120,180,220,0.4);

  border: none;
}

@media (max-width: 768px) {
  .hp-grid {
    grid-template-columns: 1fr;
  }

  .hp-card {
    max-width: none;
  }
}