@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

/* ============================================
   Header dependencies (copied from global CSS)
   Keep in sync with the :root block in the global file
   ============================================ */

:root {
  --blue-600: #1769d2;
  --cyan-400: #3ed5f4;
  --indigo-500: #655eea;
  --navy-900: #091f43;
  --ink: #12233f;

  --color-blue: #3c77ec;
  --color-blue-light: #4a9eff;
  --color-dark-purple: #645279;
  --color-white: #ffffff;
  --color-border: #dde3ec;

  --shadow-sm: 0 1px 3px rgba(10, 30, 61, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 30, 61, 0.08);
  --transition: 0.25s ease;

  --desktop-header-height: 75px;
  --mobile-header-height: 95px;
}

* { box-sizing: border-box; }

a {
  color: inherit;
  text-decoration: none;
}

button, a { transition: .25s ease; }

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  padding-top: var(--desktop-header-height, 100px);
}

/* Header dropdown (Easy Nav) */
.form-select-sm.form-select-xs {
  height: 28px;
  min-height: 28px;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 8px;
  padding-right: 24px;
  font-size: 0.8125rem;
  line-height: 1.2;
  background-position: right 6px center;
  background-size: 12px 10px;
}

.form-select {
  font-size: 0.875rem;
  border-radius: 30px !important;
}

@media (max-width: 768px) {
  body {
    padding-top: var(--mobile-header-height, 100px);
  }

  #cboTopicNav {
    width: 100%;
    max-width: 100% !important;
  }

  .brand-stack {
    align-items: flex-start;
    width: 100%;
  }
}


/* ============================================
   Site Header & Logo
   ============================================ */      
    .site-header {
      padding: 0 0;
      background: rgba(255,255,255,.97);
      border-bottom: 1px solid rgba(220,230,242,.72);
      backdrop-filter: blur(14px);
      transition: padding .25s ease, box-shadow .25s ease; 
      margin-top:0px;
    }

    .site-header.scrolled { padding: 7px 0; box-shadow: 0 8px 28px rgba(8,31,67,.1); }

    /*Logo Ikawsoft by Devon*/
    .logo { display: inline-flex; align-items: center; gap: 12px; }

    .logo-lockup { 
      display: inline-flex; 
      flex-direction: column; gap: 4px; 
    }

    .logo-mark {
      width: 42px; height: 42px; display: flex; align-items: flex-end; justify-content: center; gap: 3px;
      padding: 8px 7px; background: linear-gradient(145deg,#edf7ff,#f5f2ff);
      border: 1px solid #d9e9fa; border-radius: 12px; box-shadow: 0 7px 18px rgba(23,105,210,.1);
      transform: skew(-8deg);
    }

    .logo-tagline {
      color: #43516a; font-size: .67rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
      white-space: nowrap;
    }

    .logo-mark span { display: block; width: 7px; border-radius: 3px 3px 1px 1px; background: var(--blue-600); }
    .logo-mark span:nth-child(1) { height: 15px; }
    .logo-mark span:nth-child(2) { height: 25px; background: var(--cyan-400); }
    .logo-mark span:nth-child(3) { height: 20px; background: var(--indigo-500); }
    .logo-name { display: inline-flex; align-items: baseline; gap: 9px; color: var(--navy-900); line-height: 1; }
    .logo-word { color: var(--navy-900); font-size: 1.5rem; font-weight: 800; letter-spacing: -.055em; }
    .logo-word strong { color: var(--blue-600); font-weight: 800; }
    .logo-byline {
      position: relative; padding-left: 10px; color: #607089;
      font-size: .76rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
    }

    .logo-byline::before {
      content: ""; position: absolute; width: 1px; height: 14px; left: 0; top: 50%;
      background: #cad7e5; transform: translateY(-50%);
    }

    .site-header .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }    

/* About link */
    .about-link {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 0px;       
        margin-right: 30px;               
        color: #3b5bdb;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-decoration: none;
    }

    .about-link__icon {
        width: 10px;
        height: 10px;
        box-sizing: border-box;
        border: 1.5px solid currentColor;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0;
        transition: background-color .15s ease, color .15s ease;
    }

    .about-link:hover .about-link__text { color: var(--color-dark-purple); text-underline-offset: 3px; }
    .about-link:hover .about-link__icon,
    .about-link:focus-visible .about-link__icon { background: #3b5bdb; color: #fff; }
    
    .about-link:focus-visible { outline: 2px solid #3b5bdb; outline-offset: 4px; border-radius: 4px; }

    /* Logo on top, About link underneath, both left-aligned */
    .brand-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

/* ============================================
   Navigation
   ============================================ */   
      .navbar {
          padding-left: 0 !important;
      }

      .navbar .nav-link {
        font-size: 14px !important;
      }


      .navbar-nav {
          flex-wrap: wrap;
      }

      .navbar-logo.logo {
          margin-left: 25px;
      }

      .navbar {
          padding-left: 0 !important;
          padding-right: 0 !important;
      }

      .navbar-nav .nav-item {
          white-space: nowrap;
          padding-left: 3px;
          padding-right: 3px;
      }

      .navbar-nav .nav-link {
          display: flex;
          align-items: center;
          font-size: 1rem;
      }

      .roll-again-badge {
          width: 60px; 
          height: auto; 
      }


      .navbar-nav { gap: 6px; }
      .navbar .nav-link {
        color: var(--color-blue); font-size: .91rem; font-weight: 600; padding: 9px 12px !important; border-radius: 9px;
      }

      .navbar .nav-link:hover, .navbar .nav-link.active { color: var(--blue-600); background: #edf5ff; }

      .navbar-toggler { border: 0; box-shadow: none !important; }     


      .whats-new .detail-container {
        display: flex;
        align-items: center;
        gap: 16px;
      }

      .whats-new__title {
        font-size: 15px;
        font-weight: 700;
        color: var(--color-blue);
        margin-bottom: 0;  /* remove this */
        white-space: nowrap;
      }

      .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }

      .tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 500;
        /*color: var(--color-text-muted);*/
        color: var(--color-blue);
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: 100px;
        box-shadow: var(--shadow-sm);
        transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
      }

      .tag:hover {
        border-color: var(--color-blue-light);
        color: var(--color-blue);
        box-shadow: var(--shadow-md);
      }

      .tag__icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        opacity: 0.6;
      }      
      
    .logo-name { 
      font-family: "Manrope", 
      sans-serif; 
    }      

    .logo__text {
      font-size: 13px;
    }

    .logo__icon {
      width: 28px;
      height: 28px;
    }

    .logo-mark { }

    .logo-byline { color: #a9bad0; }
    .logo-byline::before { background: rgba(255,255,255,.25); }    

    /* Column wrapper: dropdown row on top, About link underneath, both right-aligned */
    .topic-nav-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        margin-left: auto;        /* pushes the whole stack to the right of the navbar */
    }    

    .Topic-Nav-Menu-Item {
        display: flex;
        align-items: center;
        gap: 10px; /* optional spacing */
        padding-left: 12px; /* keep your padding */
        padding-right: 20px;
    }

    .topic-nav-title { 
      font-size: .91rem;
      font-weight: 600;
      color: var(--color-blue);
      margin-bottom: 0;  /* remove this */
      white-space: nowrap;
    }  

    @media (max-width: 1250px) {

        .navbar-expand-lg .navbar-collapse {
              flex-basis: 100%;
          }
          .navbar-expand-lg .navbar-toggler {
              display: block;
          }
          .navbar-expand-lg .navbar-collapse.collapse {
              display: none !important;
          }
          .navbar-expand-lg .navbar-collapse.show {
              display: block !important;
          }
      }

    @media (max-width: 768px) {
        .site-header .header-container {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .topic-nav-stack {
            width: 100%;
            align-items: stretch;
        }

        .Topic-Nav-Menu-Item {
            padding-left: 0;
            padding-right: 0;
        }      

        .topic-nav-title {
            display: none;
        }      

        .about-link {
            margin-right: 0;
            justify-content: center;
            display: none !important;
        }      
    }