/* manrope-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/manrope-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* manrope-500 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/manrope-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* manrope-600 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/manrope-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* manrope-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/manrope-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* manrope-800 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/manrope-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  
  
  /* ── LIGHT THEME ── */
  :root {
    --black: #111111;
    --dark:rgb(5, 5, 5);
    --mid:rgb(145, 145, 145);
    --light: #ffffffaa;
    --border: #00000a;
    --bg: #f0f0f0;
    --white: #ffffff;
    --hl-bg: #b5ed5b;
    --hl-text: #111111;
    --font: "Manrope", sans-serif;
  }
  
  /* ── DARK THEME ── */
  [data-theme="dark"] {
    --black: #111111;
    --dark:rgb(5, 5, 5);
    --mid:rgb(145, 145, 145);
    --light: #ffffffaa;
    --border: #00000a;
    --bg: #f0f0f0;
    --white: #ffffff;
    --hl-bg: #b5ed5b;
    --hl-text: #111111;
    --font: "Manrope", sans-serif;
    /* --black: #f0f0f0;
    --dark: #efefef;
    --mid:rgb(138, 138, 138);
    --light: #ffffff;
    --border: #333333;
    --bg: #cfcfcfc2;
    --white: #242424;
    --hl-bg: rgb(0, 0, 0);
    --hl-text: #ffffff; */
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition:
      background 0.25s,
      color 0.25s;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  .wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  /* ── LOADER ── */
  #loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition:
      opacity 0.4s,
      visibility 0.4s;
  }
  #loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  #loader .brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.5px;
  }
  #loader .brand span {
    color: var(--mid);
  }
  .bar {
    width: 160px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }
  .bar-fill {
    height: 100%;
    width: 0;
    background: var(--black);
    border-radius: 2px;
    animation: prog 0.4s ease forwards;
  }
  @keyframes prog {
    to {
      width: 100%;
    }
  }
  
  /* ── TOP ── */
  .top {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 18px 0 15px;
    transition:
      background 0.25s,
      border-color 0.25s;
  }
  .top-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
  }
  
  /* Logo */
  .logo {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .logo-icon {
    width: 34px;
    height: 34px;
    background: var(--black);
    border-radius: 7px;
    display: grid;
    place-items: center;
    transition: background 0.25s;
  }
  .logo-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
  }
  .logo-text h1 {
    font-size: clamp(30px, 4vw, 21px);
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.4px;
    transition: color 0.25s;
  }
  .logo-text h1 span {
    color: var(--mid);
  }
  .logo-text small {
    font-size: 12px;
    color: var(--border);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
  }
  
  /* Search row */
  .search-row {
    width: 100%;
    max-width: 620px;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .search-box {
    flex: 1;
    display: flex;
    border: 1.5px solid var(--black);
    border-radius: 7px;
    overflow: hidden;
    transition: border-color 0.25s;
  }
  .search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 13.5px;
    background: var(--white);
    color: var(--black);
    transition:
      background 0.25s,
      color 0.25s;
  }
  .search-box input::placeholder {
    color: var(--dark);
  }
  .clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--light);
    font-size: 17px;
    line-height: 1;
    transition: color 0.15s;
  }
  .clear-btn:hover {
    color: var(--white);
  }
  .clear-btn.visible {
    display: flex;
  }
  
  .search-box button {
    background: var(--black);
    border: none;
    padding: 0 18px;
    cursor: pointer;
    color: var(--white);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    white-space: nowrap;
  }
  .search-box button:hover {
    opacity: 0.85;
  }
  
  
  /* Search tags */
  .search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .search-tags span {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    transition:
      border-color 0.2s,
      color 0.2s,
      background 0.25s;
  }
  .search-tags span:hover {
    border-color: var(--black);
    color: var(--black);
    background:rgb(255, 247, 0)
  }
  
  /* ── MAIN ── */
  main {
    flex: 1;
    padding: 20px 0 32px;
  }
  
  /* Dark mode toggle */
.theme-toggle {
    flex-shrink: 0;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 8px 13px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    transition:
      background 0.2s,
      color 0.25s,
      border-color 0.25s;
    white-space: nowrap;
  }
  .theme-toggle:hover {
    border-color: var(--black);
  }



  /* search result count */
  #search-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--mid);
    margin-bottom: 12px;
    display: none;
  }
  #search-status.visible {
    display: block;
  }
  #search-status strong {
    color: var(--black);
  }
  
  /* .grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px; */
  }
  @media (max-width: 780px) {
    .grid3 {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 480px) {
    .grid3 {
      grid-template-columns: 1fr;
    }
  }
  
  /* Column */
  .col {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition:
      background 0.25s,
      border-color 0.25s;
  }
  
  .col-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px 9px;
    border-bottom: 1px solid var(--border);
    background: var(--hl-bg);
    transition:
      background 0.25s,
      border-color 0.25s;
  }
  .col-head h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--black);
    flex: 1;
    transition: color 0.25s;
  }

  .badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9px;
    background: rgba(255, 242, 100, 0.92);
    color: var(--black);
    letter-spacing: 0.3px;
    transition: background 0.25s;
  }
  /* match count badge per column */
  .col-match-count {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9px;
    background: var(--hl-bg);
    color: var(--hl-text);
    display: none;
  }
  .col-match-count.visible {
    display: inline-block;
  }
  
  .col-body {
    flex: 1;
  }
  
  .item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition:
      background 0.15s,
      border-color 0.25s;
    order: 1; /* default order */
  }
  .item:last-child {
    border-bottom: none;
  }
  .item:hover {
    background: var(--bg);
  }
  
  /* matched item floats to top with yellow bg */
  .item.matched {
    background: var(--hl-bg) !important;
    order: 0;
  }
  /* non-matched items dimmed during search */
  .item.dimmed {
    opacity: 0.35;
  }
  
  /* col-body becomes flex column so order works */
  .col-body {
    display: flex;
    flex-direction: column;
  }
  
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--black);
    margin-top: 5px;
    flex-shrink: 0;
    transition: background 0.25s;
  }
  .dot.pulse {
    animation: blink 1.5s ease-in-out infinite;
  }
  @keyframes blink {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.2;
    }
  }
  
  .info {
    flex: 1;
    min-width: 0;
  }
  .info .title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0800ff;
    line-height: 1.45;
    transition: color 0.25s;
  }
  .info .meta {
    font-size: 11px;
    color: var(--black);
    background:rgb(254, 250, 2);
    margin-top: 2px;
    font-weight: 500;
    transition: color 0.25s;
  
  }
  
  /* highlight span inside title */
  mark {
    background: var(--hl-bg);
    color: var(--hl-text);
    border-radius: 2px;
    padding: 0 1px;
  }
  /* on matched item, mark is darker so it stands out */
  .item.matched mark {
    background: #e6b800;
    color: #111;
    font-weight: 800;
  }
  
  .tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--black);
    color: var(--hl-bg);
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 2px;
    flex-shrink: 0;
    transition: background 0.25s;
  }
  
  .col-foot {
    padding: 9px 14px;
    border-top: 1px solid var(--border);
    transition: border-color 0.25s;
  }
  .view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    padding: 7px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition:
      border-color 0.2s,
      color 0.2s,
      background 0.1s;
  }
  .view-all:hover {
    border-color: var(--black);
    color: var(--hl-bg);
    background: var(--black)
  }
  
  /* ── FOOTER ── */
  footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.84);
    padding: 15px 0;
    margin-top: auto;
    transition: background 0.25s;
  }
  [data-theme="dark"] footer {
    background: #111;
  }
  .foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .foot-logo {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
  }
  .foot-logo span {
    color: rgba(255, 255, 255, 0.45);
  }
  .foot-copy {
    font-size: 11px;
  }
  .foot-links {
    display: flex;
    gap: 14px;
  }
  .foot-links a {
    font-size: 11px;
    color: rgb(214, 214, 214);
    transition: color 0.2s;
  }
  .foot-links a:hover {
    color: #fff;
  }
  
  @media (max-width: 480px) {
    .foot-inner {
      flex-direction: column;
      text-align: center;
    }
    .foot-links {
      justify-content: center;
    }
  }
  
  .head{
    font-size: 32px;
    font-weight: 700;
  };