/*===============================
  Typography
===============================*/

/* --- Default (Mobile) Font Sizes --- */
/* These styles apply to all screen sizes unless overridden by a media query. */

h1 {
    font-size: 1.8rem;
    margin-block-end: 1rem;
}

/* Base .site-title size is in the Navigation section */

h2 {
    font-size: 1.6rem;
    margin-top: 6rem;
    margin-block-end: 0em;
    margin-bottom: 0.4em;
    line-height: 1.2;
}

.callout-blue h2, .callout-yellow h2 {
  margin-top: 0rem;
}

h3 {
    font-size: 1.2rem;
    margin-top: 3rem;
    margin-block-end: 0em;
    margin-bottom: 0.4em;
    line-height: 1.2;
}

h4 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-block-end: 0em;
    margin-bottom: 0.4em;
    line-height: 1.2;
}

h5 {
    font-size: 1.0rem; /* Same as body text, but usually bold */
    margin-top: 2rem;
    margin-block-end: 0em;
    margin-bottom: 0.4em;
    line-height: 1.2;
}

h6 {
    font-size: 0.9rem;
    margin-top: 4rem;
    margin-block-end: 0em;
    margin-bottom: 0.4em;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
    margin-block-start: 0;
}

strong {
    font-style: italic;
    font-weight: 600;
}


/* --- Wide Screen Font Sizes --- */
/* We use min-width to apply larger sizes for tablets and desktops. */

@media (min-width: 60rem) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* h4, h5, h6 can remain the same or be slightly increased if desired */
}


/*===============================
  Navigation / Menu
===============================*/

.top-navigation {
  padding: 3rem 0 3rem 0;
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 205, 5, 0.3);
  color:  #0B1C46;
}

.nav-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  border-radius: 0 12px 0 12px;
  position: relative;
}


.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Default (mobile) .site-title size */
.site-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-decoration: none;
  
}

#menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.3s, opacity 0.3s;
  gap: 0;
}

.menuopen #menu {
  opacity: 1;
  max-height: 350px;
  pointer-events: auto;
}

#menu li {
  margin: 0;
  padding: 0.5rem 0;
  width: 100%;
  background: none;
  border: none;
  list-style: none;
}

#menu a {
  width: 100%;
  font-size: 1.1rem;
  border: none;
  text-align: left;
  margin: 4px;
  padding: 0 0 0 0.5rem;
}

#togglemenu {
  display: block;
}

@media (min-width: 60rem) {
  .nav-row {
    flex-direction: row;
    align-items: center;
  }
  #togglemenu {
    display: none;
  }
  #menu {
    display: flex !important; 
    flex-direction: row;
    align-items: center;
    position: static;
    opacity: 1 !important; 
    max-height: none !important;
    pointer-events: auto;
    width: auto;
    padding: 1rem 0 0 0;
    gap: 1rem;
  }
  #menu li {
    width: auto;
    padding: 0;
  }
  #menu a {
    display: block;
    width: auto;
    font-size: 1rem;
    padding: 0 0 0 0.5rem;
    margin: 0;
  }

  /* Increase .site-title size on wide screens */
  .site-title {
      font-size: 3.0rem;
  }
}




    /*===============================
    Header home
  ===============================*/
  
  .home {
    margin: 4rem 0 1rem 0;
    text-align: left;
  }
  
  /*===============================
    Lists
  ===============================*/

  ul {
    list-style-position: outside;
    list-style: none;
    margin-top: 2em;
    margin-bottom: 2em;
  }
  
 main ul li {
    margin: 1rem 0rem 1rem -2.6rem;
    padding-left: 1.4rem;
    list-style: none; /* Remove default bullet */
    position: relative;
}

main ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-size: 1rem;  
    color: var(--brand-orange);
}
  
  .alphabetical-list {
    list-style-type: upper-alpha;
    margin-top: 2em; 
    margin-bottom: 2em; 
  }
  
  .alphabetical-list li {
    background-image: unset; 
    margin: 1rem 0.2rem 1rem -0.6rem;
    padding-left: 0.5rem;
    position: relative;
  }
  
  .alphabetical-list li::marker {
    font-weight: bold;
  }
  
  /* Checkboxes */
  
  label {
    display: flex;
    align-items: baseline;
    margin-top: 1rem;
    user-select: text;
    -webkit-tap-highlight-color: transparent;
  }
  
  input[type="checkbox"] {
    margin-right: 1rem;
    transform: scale(1.5);
    accent-color: var(--accent-color);
  }
  
  /* Page Links */
  
  .page-links {
    font-size: 1.2em;
  }
  
  .page-links li {
    margin: 1rem 0.2rem 1rem -2rem;
    padding-left: 1.8em;
    background-image: var(--icon-path);
    background-repeat: no-repeat;
    background-position: 0px 2px;
    background-size: 20px 20px;
  }
  
/*===============================
  Links / anchors
===============================*/
  
*:target {
  background-color: var(--text-color);
  color: var(--background-color);
}

a {
  color: var(--text-color);
  text-decoration: underline;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: text-shadow 0.2s ease-in-out;
}

a:hover, a:focus {
  color: var(--link-hover);
  outline: none;
}

  
  /* Navigational links */
  
  nav a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
  }

  
  .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}
  
  .nav-home {
    font-size: 1.2rem;
    padding: 0;
  }
  
  .nav-home a {
    padding: 0;
  }
  
/*===============================
  Horizontal Rule
===============================*/


hr {
  margin: 4rem auto;
  border: 0;
  height: 2px;
  position: relative;
  overflow: visible;
  max-width: 400px;
  background: none;
}

hr::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 4px;
  
  /* Glass effect base */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(5, 180, 255, 0.15) 10%,
    rgba(255, 180, 5, 0.4) 50%,
    rgba(5, 222, 255, 0.15) 90%,
    transparent 100%
  );
  
  box-shadow: 
    0 0 20px rgba(255, 205, 5, 0.3),
    inset 0 0 4px rgba(255, 255, 255, 0.3);
  
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 2px;
}

/* Glowing orb */
hr::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  
  background: radial-gradient(
    circle,
    rgba(255, 205, 5, 0.9) 0%,
    rgba(255, 205, 5, 0.1) 60%,
    transparent 90%
  );
  
  box-shadow: 
    0 0 12px rgba(255, 205, 5, 0.6),
    0 0 24px rgba(255, 205, 5, 0.3);
  
  border-radius: 90%;
}


  
  /*===============================
    Tables
  ===============================*/
  
  .table-container {
    overflow-x: auto;
    width: 100%;
    &::-webkit-scrollbar {
      display: none; /* Or width/height: 0; */
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */

  }

  table {
  margin: 1rem 0 4rem 0;
  width: auto;
  min-width: 100%;
}


  table,
  th,
  td {
    border: thin solid;
    border-collapse: collapse;
    padding: 0.4rem;    
    table-layout: fixed;
  }

  table strong {
    font-style: normal;
  }
  
  /*===============================
    Code
  ===============================*/
  
  .small {
    color: var(--text-color-dim);
    font-family: inherit;
    font-size: calc(var(--font-size) * 0.9);
    font-style: normal;
  }
  
 /*===============================
   Blockquote
===============================*/

blockquote {
  font-style: normal;
  padding: 0rem 2.4rem;
  margin-bottom: 2.8rem;
  margin-block-start: 0;
  margin-block-end: 2rem;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

blockquote p {
  margin: 0.4rem 0;
}

blockquote strong {
  font-weight: 500;
  font-style: normal;
}
  
.wrong {
  text-decoration: underline wavy red;
  border-bottom: none;
  font-weight: unset;
  font-style: normal;
}
  
  /*===============================
    Images
  ===============================*/
  
  img {
    max-width: 100%;
    display: block;
  }
  
  .center {
    margin: 0 auto;
  }
  
  .no-results-images {
    display: flex;
    justify-content: flex-start;
    gap: 0.8rem;
  }
  
  .no-results-images img {
    max-width: 1.5rem;
    height: auto;
    margin: 0;
  }
  
  /*===============================
    Miscellaneous
  ===============================*/
  
  .post-meta {
    text-align: right;
  }
  
  .space-above {
    margin-top: 6rem;
  }
  
  .small-print {
    font-size: 0.5rem;
  }
  
  /*===============================
    Search
  ===============================*/
  
  #search-area {
    margin-top: 1rem;
  }
  
  #search-input {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
  }
  
  @media (max-width: 430px) {
    #search-input {
        font-size: 1rem;
    }
  }
  
  #search-results-container {
    height: 1rem;
    overflow: hidden;
    transition: height 1s ease-out;
  }
  
  #search-results {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
  }
  
  #search-results li {
    margin-bottom: 0.5rem;
    margin-left: 0;
  }

/*===============================
  Glass Effect System
===============================*/

:root {
  /* Base glass effects */
  --glass-backdrop-blur: blur(12px) saturate(120%);
  --glass-white-overlay-1: rgba(255, 255, 255, 0.08);
  --glass-white-overlay-2: rgba(255, 255, 255, 0.02);
  
  /* Border and mask properties */
  --glass-border-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  --glass-border-mask-webkit: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
}

/*===============================
  Callouts
===============================*/

/* Callout Blue - Using light mode glass theme */
.callout-blue {
  position: relative;
  padding: 2rem;
  margin: 4rem 0;
  border-radius: 20px;
  border: none;
  
  background: 
    linear-gradient(135deg, 
      rgba(18, 87, 226, 0.03) 0%,
      rgba(18, 39, 226, 0.02) 50%,
      rgba(18, 39, 226, 0.04) 100%
    ),
    linear-gradient(-45deg, var(--glass-white-overlay-1), var(--glass-white-overlay-2));
  
  box-shadow: 
    inset 0 1px 4px rgba(255, 255, 255, 0.04),
    inset 0 -1px 4px rgba(147, 51, 234, 0.1),
    0 4px 16px rgba(18, 39, 226, 0.05);
  
  backdrop-filter: var(--glass-backdrop-blur);
  -webkit-backdrop-filter: var(--glass-backdrop-blur);
  color: var(--text-color);
}

.callout-blue::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 23px;
  padding: 4px;
  
  background: conic-gradient(
    from 0deg,
    rgba(13, 221, 245, 0.25) 0%,
    rgba(255, 0, 68, 0.15) 30%,
    rgba(255, 183, 0, 0.32) 60%,
    rgba(255, 108, 248, 0.38) 80%,
    rgba(18, 205, 226, 0.25) 100%
  );
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  
  filter: blur(4px);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}

.callout-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  
  background: linear-gradient(
    45deg,
    rgba(18, 39, 226, 0.02) 0%,
    transparent 40%,
    rgba(147, 51, 234, 0.01) 60%,
    transparent 100%
  );
  
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

/* Callout Yellow - Using dark mode glass theme */
.callout-yellow {
  position: relative;
  padding: 2rem;
  margin: 4rem 0;
  border-radius: 20px;
  border: none;
  
  background: 
    linear-gradient(135deg, 
      rgba(255, 205, 5, 0.09) 0%,
      rgba(255, 205, 5, 0.10) 60%,
      rgba(255, 205, 5, 0.08) 100%
    );
  
  box-shadow: 
    inset 0 1px 4px rgba(255, 255, 255, 0.04),
    inset 0 -1px 4px rgba(255, 205, 5, 0.12),
    0 4px 16px rgba(255, 205, 5, 0.15);
  
  backdrop-filter: var(--glass-backdrop-blur);
  -webkit-backdrop-filter: var(--glass-backdrop-blur);
  color: var(--text-color);
}

.callout-yellow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 23px;
  padding: 4px;
  
  background: conic-gradient(
    from 0deg,
    rgba(255, 205, 5, 0.25) 0%,
    rgba(251, 60, 194, 0.38) 30%, 
    rgba(34, 211, 238, 0.25) 60%, 
    rgba(251, 95, 60, 0.38) 80%, 
    rgba(255, 205, 5, 0.25) 100%
  );
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  
  filter: blur(10px); 
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

.callout-yellow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  
  background: linear-gradient(
    45deg,
    rgba(255, 205, 5, 0.02) 0%,
    transparent 30%,
    rgba(34, 211, 238, 0.015) 80%,
    transparent 100%
  );
  
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

/* Callout content positioning */
.callout-yellow *, .callout-blue * {
  position: relative;
  z-index: 1;
}

.callout-yellow p:first-child, .callout-blue p:first-child { margin-top: 0; }
.callout-yellow p:last-child, .callout-blue p:last-child { margin-bottom: 0; }
.callout-yellow h2, .callout-blue h2 { margin-top: 0rem; }
.callout-yellow h3, .callout-blue h3 { margin-top: 0rem; }
.callout-yellow h4, .callout-blue h4 { margin-top: 0rem; }

/*===============================
  Header Glass Effect
===============================*/

.top-navigation {
  position: relative;
  padding: 2rem 0 2rem 0;
  width: 100%;
  border: none;
  color: var(--brand-dark-text);
  
  /* Light mode */
  background: 
    linear-gradient(135deg, 
      rgba(255, 205, 5, 0.09) 0%,
      rgba(255, 205, 5, 0.10) 60%,
      rgba(255, 205, 5, 0.08) 100%
    );
  
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(255, 205, 5, 0.02),
    0 4px 16px rgba(255, 205, 5, 0.15);
  
  backdrop-filter: var(--glass-backdrop-blur);
  -webkit-backdrop-filter: var(--glass-backdrop-blur);
}

.top-navigation::after {
  content: '';
  position: absolute;
  bottom: -1px; 
  left: 0;
  right: 0;
  height: 4px;
  
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 205, 5, 0.85) 10%,
    rgba(255, 108, 248, 0.35) 30%,
    rgba(13, 221, 245, 0.40) 50%,
    rgba(255, 183, 0, 0.38) 70%,
    rgba(255, 205, 5, 0.5) 90%,
    transparent 100%
  );
  
  filter: blur(1px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;

}


.top-navigation::before {
  content: '';
  position: absolute;
  inset: 0;
  
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {

   .top-navigation {
    background: 
      linear-gradient(135deg, 
        rgba(220, 177, 6, 0.13) 0%,
        rgba(220, 177, 6, 0.15) 60%,
        rgba(220, 177, 6, 0.11) 100%
      ),
      linear-gradient(-45deg, var(--glass-white-overlay-1), var(--glass-white-overlay-2));
    
    box-shadow: 
      inset 0 -8px 16px rgba(255, 179, 0, 0.04),
      inset 0 -1px 4px rgba(220, 177, 6, 0.01),
      0 4px 16px rgba(220, 177, 6, 0.12);
    
    color: var(--text-color);
  }
  
  .top-navigation::after {
    bottom: -1px;
    height: 4px;

    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(220, 177, 6, 0.6) 10%,
      rgba(251, 60, 194, 0.3) 30%, 
      rgba(34, 211, 238, 0.4) 50%, 
      rgba(251, 95, 60, 0.4) 70%, 
      rgba(220, 177, 6, 0.5) 90%,
      transparent 100%
    );
    
    filter: blur(1px);
    opacity: 0.3;
  }
}
  
  .top-navigation::before {
    background: linear-gradient(
      45deg,
      rgba(220, 177, 6, 0.06) 0%,
      transparent 30%,
      rgba(238, 133, 34, 0.04) 80%,
      transparent 100%
    );
  }


/*===============================
  Recent and Related Posts List
===============================*/

.recent-posts,
.related-posts {
    margin-top: 4rem;
}

.recent-posts h2,
.related-posts h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
    padding: 1rem 0.75rem 1rem 2rem;
    position: relative;
    border-bottom: 1px solid;
    border-color: rgba(11, 28, 70, 0.08);
    transition: background-color 0.4s ease-in-out;
}

.post-list li:hover {
    background-color: rgba(11, 28, 70, 0.02);
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list li::before {
    content: "→";
    position: absolute;
    left: 0.4rem;
    top: 1.1rem;
    font-size: 1rem;
    color: var(--brand-orange);
}

.post-list a {
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    flex-grow: 1;
}

.post-list .post-date {
    font-size: 0.9rem;
    color: var(--text-color-dim);
    text-align: right;
    flex-shrink: 0;
    padding-left: 1rem;
}

@media (prefers-color-scheme: dark) {
  .post-list li {
    border-color: rgba(223, 223, 223, 0.1);
  }
  .post-list li:hover {
    background-color: rgba(223, 223, 223, 0.05);
  }
}

/*===============================
  Dagens artikel
===============================*/

.article-header {
  display: flex; 
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem; 
  width: 100%; 
}

.article-header h2 {
  margin-top: 0.5rem;
  margin-bottom: 0; 
  align-self: flex-start;
  flex-grow: 1; 
}

.caption {
  color: var(--text-color-dim);
  font-family: inherit;
  font-size: calc(var(--font-size) * 0.9);
  font-style: normal;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem; 
  align-self: flex-end;
}

.daily-article ul, .daily-article li {
  margin-bottom: 0;
}