/* ── Custom Font: Digital Regular ── */
@font-face {
  font-family: "Digital Regular";
  src: url("../fonts/Digital Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Base layout */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: #ffffff;
  cursor: auto;
  background: #0d0d0d;
  font-family: "League Spartan", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile: improve tap targets */
@media (max-width: 768px) {
  a,
  button,
  [role="button"],
  [tabindex="0"] {
    -webkit-tap-highlight-color: rgba(0, 238, 0, 0.15);
  }
  /* Minimum tap target size (exclude compact icon-only controls: author details, single share strip, news ticker arrows) */
  button:not(.author-details-btn):not(.single-share-icon):not(.ticker-nav),
  .hl-btn,
  .subscribe-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Reusable Squares Background ── */
.squares-bg {
  background-color: #0d0d0d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M 32 0 L 0 0 0 32' fill='none' stroke='%232d2d2d' stroke-width='0.52'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.26) 0%,
    rgba(0, 0, 0, 0.1) 55%,
    transparent 77%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.26) 0%,
    rgba(0, 0, 0, 0.1) 55%,
    transparent 77%
  );
}

/* ── Font Hierarchy ──
   Primary titles (h1, h2, .title, .titles, .news-title, .category-title, .modal-logo):
     font-family: 'Quantico', sans-serif;
   Secondary titles (h3, h4, h5, h6, .subtitle, .section-cap, .filter-btn, .wing-cat-label, .wing-label):
     font-family: 'Digital Regular', sans-serif;
   Body / paragraphs (p, span, a, li, .news-desc, .post-excerpt, etc.):
     font-family: 'League Spartan', sans-serif;
   Watermarks (.hibrid-watermark):
     font-family: 'Digital Regular', sans-serif;
*/

/* Primary title font */
h1,
h2,
.title,
.titles,
.news-title,
.category-title,
.modal-logo,
.mobile-menu-title,
.aside-title {
  font-family: "Quantico", sans-serif;
}

/* Inner spans in section titles: global `span` rule below uses League Spartan — keep brand Quantico */
.subscribe-title .subscribe-title-plain,
.subscribe-title .subscribe-title-green,
.hww-title .hww-title-plain,
.hww-title .hww-title-green,
.hww-title .hww-title-text {
  font-family: "Quantico", sans-serif;
}

/* Secondary title font */
h3,
h4,
h5,
h6,
.subtitle,
.section-cap,
.filter-btn,
.wing-cat-label,
.wing-label,
.wing-parent-label .wing-parent-text,
.mobile-menu-content .row a,
.scroll-down-text,
.truth-label,
.truth-status,
.news-meta {
  font-family: "Digital Regular", sans-serif;
}

/* Body / paragraph font */
p,
span,
a,
li,
td,
th,
input,
textarea,
select,
button,
.news-desc,
.post-excerpt,
.read-more,
.news-author,
.post-author,
.aside-link,
.hibrid-contact-info,
.hibrid-copyright,
.hibrid-network-title,
.desce,
.logo a,
.lang-switch,
#logo-hint {
  font-family: "League Spartan", sans-serif;
}
svg .flying-clone {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
}
#app {
  display: grid;
  place-items: center;
  perspective: 1200px;
  position: relative;
}

#logo-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  animation: introUp 1100ms cubic-bezier(0.22, 0.95, 0.25, 0.99) 80ms forwards;
}

body.home #logo-wrapper,
body.front-page #logo-wrapper {
  max-height: 100%;
}

#logo-wrapper {
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#logo-wrapper.zoomed {
  transform: translateY(0) scale(1.18);
}

@keyframes introUp {
  0% {
    transform: translateY(60px) scale(0.94);
    opacity: 0;
    filter: blur(4px);
  }
  40% {
    opacity: 0.6;
    filter: blur(1px);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

#logo {
  display: block;
  /* Fits inside #hero-grid; % height is relative to #logo-wrapper */
  width: min(40vw, 400px, 100%);
  height: auto;
  max-height: 72%;
  max-width: 100%;
  will-change: transform;
}

/* Front hero: tad smaller than base #logo + nudge up toward quadrant crosshair */
body.home #hero-grid #logo,
body.front-page #hero-grid #logo {
  width: min(38vw, 380px, 100%);
  max-height: 69%;
  margin-top: -1.5rem;
}
/* Slight nudge up only — stays in flex flow so #logo position is unchanged */
body.home #hero-grid #logo-hint,
body.front-page #hero-grid #logo-hint {
  position: relative;
  top: -30px;
  margin-bottom: 8px;
}
#logo {
  transition: transform 620ms cubic-bezier(0.22, 0.9, 0.22, 1);
  will-change: transform;
}

/* === NAVBAR === */
.site-header {
  background: #0d0d0d;
  color: #77e325;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo a {
  color: #77e325;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.6rem;
}
.lang-switch {
  color: #fff;
}

/* === CATEGORY HEADER === */
.category-header {
  margin-top: 8rem;
  text-align: center;
}
.category-title-wrap {
  position: relative;
  display: inline-block;
}
.category-title-wrap svg {
  width: 380px;
  height: 70px;
}
.category-title {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #111;
  font-family: "Quantico", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
}

/* === SUBCATEGORIES === */
.subcategory-filters {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.filter-btn {
  text-decoration: none;
  border: 1px solid #b5b5b5;
  background: transparent;
  color: #b5b5b5;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.filter-btn:hover {
  border-color: #00ee00;
  color: #00ee00;
  background: transparent;
}
.filter-btn.active {
  border-color: #00ee00;
  color: #00ee00;
  background: transparent;
}

/* === NEWS GRID === */
.news-section {
  margin: 3rem auto;
  width: 90%;
  max-width: 1200px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.news-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.news-title a {
  color: #fff;
  text-decoration: none;
}
.news-title a:hover {
  color: #77e325;
}

/* === PAGINATION === */
.pagination {
  position: relative;
  width: 100%;
  font-family: "League Spartan", sans-serif;
}
.pagination::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #2c2c2c;
  z-index: 0;
}
.pagination ul.page-numbers {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 24px 0 0;
  width: 100%;
  position: relative;
  z-index: 1;
}
.pagination ul.page-numbers li {
  display: flex;
  align-items: center;
}
.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #b5b5b5;
  text-decoration: none;
  transition: all 0.25s ease;
  border-radius: 4px;
  padding: 0 8px;
}
.pagination a:hover {
  color: #00ee00;
  background: rgba(0, 238, 0, 0.1);
}
.pagination .current {
  color: #00ee00;
  font-weight: 600;
  background: rgba(0, 238, 0, 0.15);
}
.pagination .prev,
.pagination .next {
  font-size: 16px;
  color: #b5b5b5;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  min-width: 40px;
  justify-content: center;
}
.pagination .prev:hover,
.pagination .next:hover {
  color: #00ee00;
  background: rgba(0, 238, 0, 0.1);
}
.pagination .arrow-left,
.pagination .arrow-right {
  font-size: 14px;
  line-height: 1;
  border: none;
  color: inherit;
}
.pagination .dots {
  pointer-events: none;
  color: #666;
}

@media (max-width: 768px) {
  .pagination {
    margin: 60px 0 30px;
  }
  .pagination ul.page-numbers {
    gap: 6px;
    padding-top: 20px;
  }
  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    padding: 0 6px;
  }
  .pagination .prev,
  .pagination .next {
    font-size: 14px;
    height: 36px;
    padding: 0 10px;
  }
  .pagination .arrow-left,
  .pagination .arrow-right {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .pagination {
    margin: 40px 0 20px;
  }
  .pagination ul.page-numbers {
    gap: 4px;
    padding-top: 16px;
  }
  .pagination a,
  .pagination span {
    min-width: 32px;
    height: 32px;
    font-size: 14px;
    padding: 0 4px;
  }
  .pagination .prev,
  .pagination .next {
    font-size: 13px;
    height: 32px;
    padding: 0 8px;
    gap: 4px;
  }
  .pagination .arrow-left,
  .pagination .arrow-right {
    font-size: 14px;
  }
  .pagination .prev span:not(.arrow-left),
  .pagination .next span:not(.arrow-right) {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-modal {
    width: 100%;
  }
  .category-title-wrap svg {
    width: 280px;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  color: #77e325;
}
.burger {
  cursor: pointer;
  font-size: 28px;
}
.lang-switch {
  cursor: default;
}
.menu-modal {
  align-items: center;
}
.modal-content {
  text-align: center;
}
.category-header {
  text-align: center;
  margin-top: 80px;
}
.category-title {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
  font-size: 20px;
}
.subcategory-filters {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}
.filter-btn {
  border: 1px solid #b5b5b5;
  background: transparent;
  color: #b5b5b5;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.category-separator {
  width: 100%;
  height: 2px;
  background: #00ee00;
  border: none;
  margin: 40px auto;
}
.category-post {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 90%;
  margin: 0 auto;
  flex-wrap: wrap;
}
.post-left {
  flex: 1 1 45%;
}
.post-right {
  flex: 1 1 45%;
}
.post-thumbnail img {
  width: 100%;
  border-radius: 6px;
}

/* Legacy block layout only — do not use bare .post-title globally (conflicts with archive cards) */
.category-post .post-title {
  color: #fff;
  font-size: 28px;
  margin-bottom: 10px;
}
.category-post .post-excerpt {
  color: #ccc;
  margin-bottom: 20px;
}
.post-author {
  text-align: right;
  color: #b5b5b5;
  font-size: 14px;
  margin-top: 15px;
}

.category-header {
  text-align: center;
  margin-top: 80px;
}
.category-svg {
  position: relative;
  width: 390px;
  margin: 40px auto;
}
.category-svg svg {
  width: 100%;
  height: auto;
  display: block;
}
.category-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  font-size: 22px;
  font-weight: 700;
  color: #000;
  text-align: center;
  line-height: 1.1;
  width: 80%;
  pointer-events: none;
}
.subcategory-filters {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid #b5b5b5;
  color: #b5b5b5;
  background: transparent;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  color: #00ee00;
  border-color: #00ee00;
}

/* --- News Cards --- */
.news-card-link {
  text-decoration: none;
}
.news-card {
  width: 100%;
  padding: 3rem 10px;
  margin: 0 0 10px 0;
}
.news-meta {
  margin: 0 30px;
  display: flex;
  justify-content: space-between;
  color: #ccc;
  font-size: 14px;
  margin-bottom: 10px;
}
.news-title {
  font-size: 35px;
  line-height: 35px;
  color: #fff;
  margin-bottom: 20px;
}
.news-desc {
  color: #ccc;
  font-size: 14px;
  line-height: 14px;
  margin-bottom: 30px;
}

.truth-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 85%;
}
.truth-label {
  font-size: 14px;
  color: #ccc;
}
.truth-line {
  flex-grow: 1;
  height: 2px;
  background: #333;
  position: relative;
}
.truth-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: #ff0000;
  transition: width 0.4s ease;
}
.truth-status {
  font-size: 14px;
  color: #ccc;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  margin: 0 30px;
  align-items: center;
  width: 100%;
}
.read-more {
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: start;
  text-decoration: underline;
}
.read-more:hover {
  color: #00ee00;
}
.news-author {
  color: #b5b5b5;
  font-size: 14px;
}
.news-body {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 0 30px;
  flex-wrap: wrap;
}
.news-thumb img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.news-desc {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.latest-fact-checks .card {
  height: 416px;
}
.object-fit-cover {
  object-fit: cover;
}
.btn-outline-success {
  border-color: #00ee00 !important;
  color: #00ee00 !important;
}
.btn-outline-success:hover {
  background-color: #00ee00 !important;
  color: #000 !important;
}
.classes {
  height: 416px;
}
.custom-container {
  max-width: 1720px;
  margin: 0 auto;
}

/* MODAL MENU (legacy fullpage sections — #menuModal drawer overrides in header.php) */
.menu-modal.active:not(#menuModal) {
  display: flex;
}
.modal-content {
  text-align: center;
  color: #fff;
  width: 80%;
  max-width: 700px;
  position: relative;
}
#menuModal.menu-modal.active {
  display: block;
}
#menuModal .modal-content {
  text-align: left;
  width: 100%;
  max-width: none;
}
.modal-logo {
  font-size: 30px;
  color: #77e325;
  margin-bottom: 10px;
}
.modal-lang {
  font-size: 18px;
  color: #999;
  margin-bottom: 30px;
}
.arrow {
  font-size: 16px;
  color: #77e325;
  transition: transform 0.3s ease;
}
.burger {
  font-size: 28px;
  cursor: pointer;
  color: #77e325;
  margin-left: 20px;
}

.fullpage-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  transition: transform 1s ease-in-out;
}
#animation-section {
  background: linear-gradient(135deg, #000, #111);
  color: #77e325;
}
#next-section {
  background: #111;
  color: #fff;
}
.fullpage-section .content,
.fullpage-section .animation-content {
  text-align: center;
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
}
.title {
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 20px;
}
.subtitle {
  font-size: 24px;
  color: #aaa;
}
.desce {
  font-size: 20px;
  line-height: 20px;
  color: #fff;
  text-align: center;
}
.titles {
  font-size: 100px;
  line-height: 100px;
  color: #fff;
  text-align: center;
}

/* Single post */
body.single .content {
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.single .content img,
body.single .content figure,
body.single .content iframe {
  max-width: 100%;
  height: auto;
}
body.single .content a {
  color: #00ee00 !important;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
body.single .content a:hover {
  color: #00cc00 !important;
  text-decoration: underline;
}
body.single .content ul,
body.single .content ol {
  padding-inline-start: 1.6rem;
  margin: 0 0 1.1em;
}
body.single .content ul ul,
body.single .content ul ol,
body.single .content ol ul,
body.single .content ol ol {
  margin-top: 0.4em;
  padding-inline-start: 1.4rem;
}
body.single .content li > p {
  margin: 0.25em 0;
}
/* Breadcrumb only — not header .navbar (would style Kryefaqja / logo / Raporto) */
body.single .single-breadcrumb a,
body.single .single-breadcrumb a:hover {
  text-decoration: none;
}

/* Global responsive typography */
:root {
  --fs-base: clamp(14px, 1.6vw, 16px);
}
body {
  font-size: var(--fs-base);
}
h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
}
h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.2;
}
h3 {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.25;
}

@media (max-width: 992px) {
  .news-body {
    gap: 24px;
    margin: 0 16px;
  }
  .news-left,
  .news-right {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .news-left {
    order: 2;
  }
  .news-right {
    order: 1;
  }
  .news-title {
    font-size: clamp(22px, 5vw, 32px);
    line-height: 1.2;
  }
  .news-desc {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    word-wrap: break-word;
  }
  .news-thumb img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 576px) {
  .navbar {
    padding: 12px;
  }
  .pagination ul.page-numbers {
    gap: 12px;
  }
  #next-section .tabs {
    gap: 8px;
    padding: 16px;
  }
}

/* Category layout */
.category-layout {
  display: grid;
  grid-template-columns: 70% minmax(0, 30%);
  gap: 32px;
  align-items: start;
  max-width: 1680px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  margin-top: 30px;
  padding-right: 24px;
}
.category-main,
.category-aside {
  min-width: 0;
}
@media (min-width: 993px) {
  .category-aside {
    position: sticky;
    top: 96px;
    overflow: visible;
  }
}
.category-aside .aside-widget {
  background: #171717;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.category-aside .aside-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
}
.aside-latest {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.aside-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
}
.aside-thumb {
  display: block;
  width: 84px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
}
.aside-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.aside-link {
  color: #eaeaea;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}
.aside-link:hover {
  color: #00ee00;
  text-decoration: underline;
}
.thumb-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: #3d3d3d;
  border-radius: 8px;
}
.aside-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.aside-cats a {
  color: #b5b5b5;
  text-decoration: none;
  font-size: 14px;
}
.aside-cats a:hover {
  color: #00ee00;
}
.aside-cats a.current {
  color: #00ee00;
  font-weight: 700;
}
.category-main,
.category-aside,
.category-posts {
  max-width: 100%;
}
@media (max-width: 992px) {
  .category-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Raport section */
.raport {
  padding: 24px 0 48px;
}
.raport .custom-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.raport .box {
  background: #171717;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.raport .inner {
  width: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 992px) {
  .raport .inner {
    width: 70%;
  }
}
@media (max-width: 640px) {
  .raport .custom-container {
    padding: 0 16px;
  }
  .raport .box {
    padding: 24px;
  }
  .raport .inner {
    width: 100%;
  }
  .raport .titles {
    font-size: 36px;
    line-height: 1.1;
  }
  .raport .desce {
    font-size: 16px;
    line-height: 1.5;
  }
}

body.home,
body.front-page {
  overflow-x: hidden;
}

#app {
  width: 100%;
  min-height: 0;
  /* First-screen hero: dynamic viewport, clip overflow; no page scroll from hero */
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  height: calc(100dvh - 36px);
  max-height: calc(100dvh - 36px);
  margin-top: 0;
  position: relative;
  display: block;
  background-color: #0d0d0d;
  overflow: hidden;
}

/*
 * Hero grid: full width (edge-to-edge), only height is inset.
 * Top = 0 so the quadrants align with the first row of the #app::before grid
 * (cells are 32×32px).
 */
body.home #hero-grid,
body.front-page #hero-grid {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  top: 0;
  /* ↑ shorter frame so bottom quadrants fit first screen; sync section-animation.php */
  bottom: clamp(36px, 8vh, 76px);
  z-index: 1;
  overflow: visible;
  pointer-events: none;
  --quad-row-top: 50%;
  --quad-row-bottom: 50%;
  --hibrid-quad-split-pct: 50%;
}

/*
 * Only the logo + scroll hint take clicks — NOT #quadrants / #quad-overlay.
 * A blanket `> * { pointer-events: auto }` was overriding #quadrants { none }
 * and the full grid sat on top of the SVG, so wings never received clicks.
 */
body.home #hero-grid > #logo-wrapper,
body.home #hero-grid > #scrollDownIndicator,
body.front-page #hero-grid > #logo-wrapper,
body.front-page #hero-grid > #scrollDownIndicator {
  pointer-events: auto;
}

@media (max-width: 768px) {
  #app {
    height: calc(100vh - 34px);
    max-height: calc(100vh - 34px);
    height: calc(100dvh - 34px);
    max-height: calc(100dvh - 34px);
    margin-top: 0;
  }
}

/* Quadrants background — no pointer events so clicks reach #logo / #wings paths */
#quadrants {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: var(--quad-row-top, 50%) var(--quad-row-bottom, 50%);
  z-index: 1;
  pointer-events: none;
}
.quad {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Hover highlight (class set by JS — :hover can’t fire while pointer-events: none) */
#quadrants .quad.quad-hover {
  background-color: rgba(0, 238, 0, 0.02);
}
/* absolute inside #app so it scrolls away with the hero (fixed stuck the layer + grid feel) */
#quad-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: var(--quad-row-top, 50%) var(--quad-row-bottom, 50%);
  z-index: 3;
  pointer-events: none;
}
#quad-overlay .quad {
  position: relative;
  width: 100%;
  height: 100%;
}
.wing-slot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Logo — centered inside #hero-grid (full width; height only inset) */
body.home #hero-grid #logo-wrapper,
body.front-page #hero-grid #logo-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  z-index: 2;
}

#logo-wrapper {
  z-index: 2;
}
#logo-wrapper.scratchy #logo {
  will-change: transform, filter;
}

/* ═══════════════════════════════════════════════════════
   WINGS — PRESSED PLATE / PISTON EFFECT
   
   Each wing translates toward its quadrant corner when
   pressed, simulating a physical button sinking into the
   ground. The transform-origin is set to the outer corner
   so the wing appears to pivot/sink away from center.
   ═══════════════════════════════════════════════════════ */

/* Base wing styles */
#wings path {
  cursor: pointer;
  pointer-events: auto;
  fill: #00ee00;
  /* Use the standalone `translate` property so it composites ON TOP of
     the SVG attribute transform="translate(...)" without replacing it.
     Mixing CSS `transform` with SVG attribute transforms causes paths
     to jump to raw coordinates and disappear in most browsers. */
  translate: 0px 0px;
  transition:
    fill 180ms ease,
    opacity 220ms ease,
    translate 90ms cubic-bezier(0.4, 0, 0.6, 1),
    filter 180ms ease;
}

/* ── RAISED STATE (default) — full #00ee00 + subtle drop shadow ── */
#wings path:not(.pressed) {
  fill: #00ee00;
  opacity: 1;
  filter: url(#raised-filter);
}

/* ── HOVER ── */
#wings path:not(.pressed):hover {
  fill: #00ee00;
  opacity: 1;
  filter: url(#raised-filter);
}

/* ── PRESSED STATE ── */
#wings path.pressed {
  fill: #00ee00;
  opacity: 1;
  filter: url(#pressed-filter);
  transition:
    fill 80ms ease,
    opacity 80ms ease,
    filter 80ms ease,
    translate 200ms cubic-bezier(0.22, 0.9, 0.22, 1);
}

/* Each wing sinks outward toward its quadrant corner.
   overflow="visible" on the SVG prevents clipping. */
#wings path#leftup.pressed {
  translate: -5px -5px;
}
#wings path#rightup.pressed {
  translate: 5px -5px;
}
#wings path#leftbottom.pressed {
  translate: -5px 5px;
}
#wings path#rightbottom.pressed {
  translate: 5px 5px;
}

/* ── MOUSEDOWN instant feedback (before .pressed class is set) ── */
#wings path#leftup:active:not(.pressed) {
  translate: -3px -3px;
  filter: url(#pressed-filter);
}
#wings path#rightup:active:not(.pressed) {
  translate: 3px -3px;
  filter: url(#pressed-filter);
}
#wings path#leftbottom:active:not(.pressed) {
  translate: -3px 3px;
  filter: url(#pressed-filter);
}
#wings path#rightbottom:active:not(.pressed) {
  translate: 3px 3px;
  filter: url(#pressed-filter);
}

/* Utility classes */
#wings path.dimmed {
  opacity: 0.2;
}
#wings path.active {
  opacity: 1;
}
#wings path.extracted {
  opacity: 0;
  pointer-events: none;
}
#wings path:focus {
  outline: none;
}

/* Category label */
.wing-cat-label {
  font-size: 22px;
  font-weight: 800;
  color: #00ee00;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);

  pointer-events: auto;
  white-space: nowrap;
  transition: opacity 300ms ease-out;
}
.wing-cat-label:hover {
  text-decoration: underline;
  color: #00ee00;
  opacity: 0.9;
}

/* UI Layer */
#wing-ui-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999;
  isolation: isolate;
}

/* Wing overlay */
.wing-overlay {
  position: fixed !important;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1000000 !important;
}
.wing-overlay svg {
  display: block;
  background: transparent !important;
  position: relative;
  z-index: inherit;
}
.wing-overlay,
.wing-overlay * {
  outline: none !important;
  box-shadow: none !important;
}

.wing-overlay .wing-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;

  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  pointer-events: auto !important;
  user-select: none;
  white-space: nowrap;
  z-index: 1000001 !important;
  text-decoration: none;
}
.wing-label:hover {
  opacity: 0.9;
  text-decoration: underline;
}

/* Subcategory content panel */
.wing-content {
  position: fixed !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 300px;
  pointer-events: auto;
  z-index: 999000 !important;
  animation: none !important;
  opacity: 0;
  transition: opacity 220ms ease;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0;
}
.wing-content .wing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.wing-content .wing-row:hover {
  transform: translateX(6px);
  opacity: 0.95;
}
.wing-content .wing-row svg,
.wing-content .wing-row img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
.wing-content .wing-row svg {
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  opacity: 0.8;
}
.wing-content .wing-row a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.wing-content .wing-row:hover a {
  color: #fff;
}

/* Parent category label */
.wing-parent-label {
  padding: 8px 8px 12px;
  margin-bottom: 4px;
}
.wing-parent-label .wing-parent-text {
  color: #00ee00;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 12px rgba(0, 238, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.6);
  transition:
    text-shadow 200ms ease,
    opacity 200ms ease;
  display: inline-block;
}
.wing-parent-label + .wing-row,
.wing-content .wing-row {
  padding-left: 22px;
}

/* Hint */
#logo-hint {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #e6e6e6;
  opacity: 0;
  margin-bottom: 15px;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    transform 550ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 550ms ease;
}
#logo-hint.reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  #logo-hint {
    font-size: 13px;
    padding: 0 16px;
    margin-bottom: 10px;
  }
}

/* Scroll lock */
body.wings-open,
html.wings-open,
body.popup-open,
html.popup-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Mobile overlay */
.mobile-wing-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-wing-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200000;
  opacity: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}
.mobile-menu-overlay.show {
  display: flex;
  opacity: 1;
}
.mobile-menu-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
  text-align: center;
}
.mobile-menu-content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-content .row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}
.mobile-menu-content .row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.mobile-menu-content .row svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  opacity: 0.8;
  flex-shrink: 0;
}
.mobile-menu-content .row a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.mobile-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1000002;
}
.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.mobile-close-btn:active {
  transform: scale(0.95);
}

.mobile-wing-content .wing-row {
  padding: 14px 12px !important;
  margin-bottom: 0 !important;
  min-height: 52px;
}
.mobile-wing-content .wing-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-wing-content .wing-row:hover,
.mobile-wing-content .wing-row:active {
  transform: translateX(0) !important;
  background: transparent !important;
}
.mobile-wing-content .wing-row a {
  font-size: 16px !important;
}

.mobile-wing-content::-webkit-scrollbar {
  width: 6px;
}
.mobile-wing-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.mobile-wing-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.mobile-wing-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  #wings path {
    transition: opacity 150ms ease;
    translate: 0px 0px !important;
  }
  .wing-popup-mobile,
  .wing-popup-overlay {
    transition: none;
  }
  .wing-content {
    transition: none;
  }
}

/* Responsive */
@media (min-width: 1025px) {
  .wing-overlay .wing-label {
    font-size: 20px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .wing-overlay .wing-label {
    font-size: 16px;
  }
  .wing-content {
    width: min(320px, calc(50vw - 24px));
  }
}
@media (max-width: 768px) {
  #wing-ui-layer {
    display: none;
  }
  #logo {
    width: min(68vw, 100%);
    max-height: 70%;
  }
  body.home #hero-grid #logo,
  body.front-page #hero-grid #logo {
    width: min(64vw, 100%);
    max-height: 66%;
    margin-top: -1.5rem;
  }
}
@media (max-width: 480px) {
  .mobile-wing-content .wing-row a {
    font-size: 15px !important;
  }
}

/* Intro flicker — opacity only (no brightness / glow) */
#logo-wrapper.flicker-on #wings path {
  animation: wingFlicker 1200ms linear 1 both !important;
}
#logo-wrapper.flicker-on #wings path:nth-child(1) {
  animation-delay: 0ms;
}
#logo-wrapper.flicker-on #wings path:nth-child(2) {
  animation-delay: 80ms;
}
#logo-wrapper.flicker-on #wings path:nth-child(3) {
  animation-delay: 160ms;
}
#logo-wrapper.flicker-on #wings path:nth-child(4) {
  animation-delay: 240ms;
}
#logo-wrapper.flicker-on #wings path:nth-child(5) {
  animation-delay: 320ms;
}

@keyframes wingFlicker {
  0% {
    opacity: 0;
    filter: url(#raised-filter);
  }
  8% {
    opacity: 0.15;
  }
  12% {
    opacity: 1;
    filter: url(#raised-filter);
  }
  22% {
    opacity: 0.35;
  }
  30% {
    opacity: 1;
  }
  45% {
    opacity: 0.2;
  }
  55% {
    opacity: 1;
  }
  70% {
    opacity: 0.4;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    filter: url(#raised-filter);
  }
}

/* Quadrant divider lines — vertical + horizontal at 50% / 50% (balanced grid; JS refreshes vars) */
#quadrants::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      transparent calc(50% - 0.5px),
      rgba(0, 238, 0, 0.06) calc(50% - 0.5px),
      rgba(0, 238, 0, 0.06) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(var(--hibrid-quad-split-pct, 50%) - 0.5px),
      rgba(0, 238, 0, 0.06) calc(var(--hibrid-quad-split-pct, 50%) - 0.5px),
      rgba(0, 238, 0, 0.06) calc(var(--hibrid-quad-split-pct, 50%) + 0.5px),
      transparent calc(var(--hibrid-quad-split-pct, 50%) + 0.5px)
    );
  z-index: 1;
}

/* Corner accent marks on each quadrant — subtle tech aesthetic */
.quad.q1::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 18px;
  height: 18px;
  border-top: 1.5px solid rgba(0, 238, 0, 0.2);
  border-left: 1.5px solid rgba(0, 238, 0, 0.2);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.quad.q2::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 18px;
  height: 18px;
  border-top: 1.5px solid rgba(0, 238, 0, 0.2);
  border-right: 1.5px solid rgba(0, 238, 0, 0.2);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.quad.q3::before {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 18px;
  height: 18px;
  border-bottom: 1.5px solid rgba(0, 238, 0, 0.2);
  border-left: 1.5px solid rgba(0, 238, 0, 0.2);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.quad.q4::before {
  content: "";
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 18px;
  height: 18px;
  border-bottom: 1.5px solid rgba(0, 238, 0, 0.2);
  border-right: 1.5px solid rgba(0, 238, 0, 0.2);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quad.q1:hover::before,
.quad.q2:hover::before,
.quad.q3:hover::before,
.quad.q4:hover::before,
.quad.q1.quad-hover::before,
.quad.q2.quad-hover::before,
.quad.q3.quad-hover::before,
.quad.q4.quad-hover::before {
  opacity: 0.7;
  border-color: rgba(0, 238, 0, 0.5);
}

@media (max-width: 768px) {
  .quad.q1::before {
    top: 16px;
    left: 16px;
    width: 16px;
    height: 16px;
  }
  .quad.q2::before {
    top: 16px;
    right: 16px;
    width: 16px;
    height: 16px;
  }
  .quad.q3::before {
    bottom: 16px;
    left: 16px;
    width: 16px;
    height: 16px;
  }
  .quad.q4::before {
    bottom: 16px;
    right: 16px;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .quad.q1::before,
  .quad.q2::before,
  .quad.q3::before,
  .quad.q4::before {
    width: 14px;
    height: 14px;
  }
  .quad.q1::before {
    top: 12px;
    left: 12px;
  }
  .quad.q2::before {
    top: 12px;
    right: 12px;
  }
  .quad.q3::before {
    bottom: 12px;
    left: 12px;
  }
  .quad.q4::before {
    bottom: 12px;
    right: 12px;
  }
}

/* Wing content row transitions */
.wing-content .wing-row {
  transition:
    opacity 300ms ease-out,
    transform 250ms ease-out;
}
.wing-content .wing-row:hover {
  opacity: 0.95;
}

/* Homepage highlights CTA */
.hl-cta {
  text-transform: none;
}

/* ── Post cards — index / category / author / search / tag / AJAX (single source of truth) ── */
:root {
  --post-card-border: #00ee00;
}

article.post-card {
  background: #111111;
  border: 1px solid #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  border-radius: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    border-width 0.35s ease;
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card .post-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
  margin: 0; /* reset <figure> */
}

.post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card .post-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.post-card footer.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 0.5px solid #2a2a2a;
  transition: border-color 0.3s ease;
}

.post-card .post-date {
  font-size: 10px;
  color: #666666;

  margin: 0;
  flex-shrink: 0;
}

.post-card .post-title {
  font-size: 18px;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1.4;
  margin: 0 0 10px;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.4em * 3);
  max-height: calc(1.4em * 3);
  word-break: break-word;
}

.post-card .post-excerpt {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #a0a0a0;
  flex: 0 0 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.65em * 4);
  max-height: calc(1.65em * 4);
  word-break: break-word;
}

.post-card .post-read-more {
  font-size: 11px;
  font-weight: 700;

  color: #888888;
  text-transform: none;
  font-family: "Quantico", sans-serif;
  margin: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.post-card .post-read-more .post-read-more-icon {
  font-size: 0.85em;
  line-height: 1;
}

.post-card:hover .post-title {
  color: #00ee00;
}

.post-card:hover footer.post-footer {
  border-top-color: var(--post-card-border);
}

/* Bottom edge only: drawn left → right (2px); top/right/left use box border */
.post-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--post-card-border);
  pointer-events: none;
  z-index: 2;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
  background-color: #111111;
  background-image: linear-gradient(
    rgba(0, 238, 0, 0.045),
    rgba(0, 238, 0, 0.045)
  );
  border-style: solid;
  border-color: var(--post-card-border);
  border-left-width: 4px;
  border-top-width: 0.5px;
  border-right-width: 0.5px;
  border-bottom-width: 0;
}

.post-card:hover::after {
  width: 100%;
}

.post-card:not(:hover)::after {
  width: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .post-card::after {
    transition-duration: 0.05s;
  }

  .post-card:not(:hover)::after {
    transition-duration: 0.05s;
  }
}

/* Post listing grids — index / category / author / search / tag (single class name site-wide) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Verdict filter bar (category / author / search / tag) ── */
body.category:not(.front-page) .cat-filter-bar,
body.author .cat-filter-bar,
body.search .cat-filter-bar,
body.tag .cat-filter-bar,
body.blog .cat-filter-bar,
body.hibrid-watermark-archive .cat-filter-bar {
  position: relative;
  z-index: 1;
}

.cat-filter-inner--sort-only {
  justify-content: flex-end;
}

.cat-filter-bar {
  background: #0d0d0d;
  padding: 16px 0;
  border-bottom: 1px solid #1a1a1a;
}

.cat-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.category:not(.front-page) .cat-filter-inner {
  max-width: var(--cat-inline-max, 1200px);
  padding: 0 var(--cat-inline-gutter, 24px);
}

.cat-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Quantico", sans-serif;
  border: none;
  border-radius: 0;
  color: #777;
  background: transparent;
  text-decoration: none !important;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.cat-filter-chip:hover,
.cat-filter-chip:focus,
.cat-filter-chip:focus-visible,
.cat-filter-chip:visited,
.cat-filter-chip:active {
  text-decoration: none !important;
}

.cat-filter-chip-text {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.cat-filter-chip.active .cat-filter-chip-text {
  gap: 8px;
}

.cat-filter-chip-dot {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-filter-chip.active .cat-filter-chip-dot {
  display: inline-block;
  vertical-align: middle;
}

/* Të gjitha — inactive: text only, no dot slot; active: dark gray fill, white text, green dot right */
.cat-filter-chip--all:not(.active) {
  color: #777;
  background: transparent;
}

.cat-filter-chip--all:not(.active):hover {
  color: #999;
  background: transparent;
}

.cat-filter-chip--all.active {
  background: #222222;
  color: #ffffff;
  box-shadow: none;
}

.cat-filter-chip--all.active .cat-filter-chip-dot {
  background: #00ee00;
}

/* Watermark chips — inactive: same as all; active: same gray pill, DB-colored dot on the right */
.cat-filter-chip--wm:not(.active) {
  color: #777;
  background: transparent;
}

.cat-filter-chip--wm:not(.active):hover {
  color: #999;
  background: transparent;
}

.cat-filter-chip--wm:not(.active) .cat-filter-chip-icon svg {
  color: #666;
  opacity: 0.85;
}

.cat-filter-chip--wm.active {
  background: #222222;
  color: #ffffff;
  box-shadow: none;
}

.cat-filter-chip--wm.active .cat-filter-chip-dot {
  background: var(--vfilter-dot, #888888);
}

.cat-filter-chip--wm.active .cat-filter-chip-icon svg {
  color: #ffffff;
}

.cat-filter-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  line-height: 0;
}

.cat-filter-chip-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  color: inherit;
}

.cat-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-sort-label {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  font-family: "Quantico", sans-serif;
}

.cat-sort-select {
  background: #111111;
  border: 1px solid #2a2a2a;
  color: #aaa;
  padding: 5px 10px;
  font-size: 11px;
  font-family: "Quantico", sans-serif;
  cursor: pointer;
  border-radius: 4px;
  outline: none;
}

.cat-sort-select:focus {
  border-color: #00ee00;
}

@media (max-width: 768px) {
  body.author .cat-filter-inner,
  body.search .cat-filter-inner,
  body.tag .cat-filter-inner {
    padding: 0 16px;
  }
}
