@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap');

/* Collab Sans Typeface Family (fallback) */
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/CollabSans-Regular.woff2') format('woff2'),
       url('https://yugal.one/fonts/woff2/CollabSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/CollabSans-Italic.woff2') format('woff2'),
       url('https://yugal.one/fonts/woff2/CollabSans-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/CollabSans-Medium.woff2') format('woff2'),
       url('https://yugal.one/fonts/woff2/CollabSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/CollabSans-SemiBold.woff2') format('woff2'),
       url('https://yugal.one/fonts/woff2/CollabSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/CollabSans-Bold.woff2') format('woff2'),
       url('https://yugal.one/fonts/woff2/CollabSans-Bold.woff2') format('woff2');
}

:root {
  --bg-canvas: #000000;
  --bg-surface: #1d1d1d;
  --bg-surface-hover: #262626;
  --bg-chip: #000000;
  --bg-chip-hover: #222222;
  --bg-btn-primary: #ffffff;
  --text-btn-primary: #000000;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --border-subtle: #2d2d2d;
  --border-divider: #333333;
  --radius-main: 9999px;
  --radius-pill: 9999px;
  --radius-dropdown: 10px;
  --radius-chip: 6px;
  --radius-popup: 12px;
  --radius-card-img: 3px;
  --font-main: "Host Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --strip-h: clamp(38px, calc((100dvh - 84px) / 18), 44px);
}

/* Base Styles & Typography (Host Grotesk strictly constrained to 300-400) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-weight: 300;
}

b, strong, h1, h2, h3, h4, h5, h6,
th,
.font-bold, .font-semibold, .font-medium, .font-normal,
#desktop-brand-box, #desktop-brand-box *,
.left-sidebar-col, .left-sidebar-col *,
.category-nav-btn, .category-nav-btn *,
.nav-content-item, .nav-content-item *,
#mobile-nav-menu, #mobile-nav-menu *,
#mobile-cat-menu, #mobile-cat-menu *,
button, input, select, textarea, label {
  font-weight: 400 !important;
}

.font-light, .font-thin {
  font-weight: 300 !important;
}

html,
body,
button,
input,
select,
textarea,
table,
th,
td {
  font-family: var(--font-main) !important;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #000000;
  min-height: 100vh;
  font-family: var(--font-main);
}

/* ================= HERO & FILTER BAR ================= */
/* Normal compact filter capsule: adapts to content/tags selected */
.filter-unit-container {
  width: fit-content;
  max-width: calc(100vw - 32px);
  position: relative;
  pointer-events: auto;
  margin-left: auto;
  margin-right: auto;
  transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-bar-row {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar: normal compact capsule fitting text */
.search-bar {
  background: rgba(30, 30, 30, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-pill);
  box-shadow: none !important;
  height: 48px;
  width: fit-content !important;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border: none !important;
  outline: none !important;
  overflow: hidden;
  transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.nav-tab {
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 400;
  user-select: none;
  padding: 0 18px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  transition: background-color 0.16s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s;
}

.nav-tab:first-child {
  border-top-left-radius: var(--radius-pill);
  border-bottom-left-radius: var(--radius-pill);
  padding-left: 24px;
  padding-right: 18px;
}

.nav-tab:last-child {
  border-top-right-radius: var(--radius-pill);
  border-bottom-right-radius: var(--radius-pill);
  padding-right: 24px;
  padding-left: 18px;
}

.nav-tab:first-child {
  border-top-left-radius: var(--radius-pill);
  border-bottom-left-radius: var(--radius-pill);
  padding-left: 26px;
  padding-right: 20px;
}

.nav-tab:last-child {
  border-top-right-radius: var(--radius-pill);
  border-bottom-right-radius: var(--radius-pill);
  padding-right: 26px;
  padding-left: 20px;
}

/* Frosted glass effect for hover, touch and active states (pure neutral grey) */
.nav-tab:hover {
  background-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
}

.nav-tab.active,
.nav-tab:active {
  background-color: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
}

.nav-tab.has-selection {
  color: #ffffff;
  font-weight: 600;
}

.nav-tab.disabled,
.nav-tab:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.nav-tab.disabled .chevron-icon,
.nav-tab:disabled .chevron-icon {
  opacity: 0.3 !important;
}

.nav-tab.active .chevron-icon {
  transform: rotate(180deg);
}

/* Browse / Search Button */
/* Browse / Search Button (Solid White Pill, No Icon) */
.browse-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600 !important;
  height: 48px;
  padding: 0 24px !important;
  border: none !important;
  border-radius: var(--radius-pill);
  outline: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  white-space: nowrap;
  user-select: none;
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
  transition: background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.12s !important;
}

.browse-btn span,
#label-browse {
  color: #000000 !important;
}

.browse-btn:hover {
  background: #e4e4e7 !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.browse-btn:active {
  transform: scale(0.97) !important;
}

.browse-btn-pending,
.browse-btn-ready {
  background: #ffffff !important;
  color: #000000 !important;
}

/* Shake Animation when Browse is clicked before selecting 3 tags */
@keyframes shakeRow {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake-animate {
  animation: shakeRow 0.35s ease-in-out;
}

/* ================= DROPDOWN PANEL (Neutral Grey Glass, Reduced Corners) ================= */
/* Positioned absolute directly below the filter bar row, exact same width as filter capsule */
.dropdown-panel {
  background: rgba(22, 22, 22, 0.88) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border-radius: var(--radius-dropdown);
  border: none !important;
  box-shadow: none !important;
  position: absolute;
  top: calc(100% + 8px);
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  transform: translateY(-4px);
  max-height: 75vh;
  overflow-y: auto;
  z-index: 55;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-panel.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* ================= FILTER BACKDROP BLUR (Active when filter is open on Desktop & Mobile) ================= */
.filter-backdrop-blur {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

.filter-backdrop-blur.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Smooth background elements blur when filter is clicked / opened */
body.filter-active #catalog-section,
body.filter-active #home-dither-container,
body.filter-active #top-navbar {
  filter: blur(8px);
  transition: filter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

body.filter-active #mobile-bottom-nav {
  filter: blur(8px) !important;
  opacity: 0.35 !important;
  pointer-events: none !important;
  transition: filter 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s !important;
}

#catalog-section,
#home-dither-container,
#top-navbar,
#mobile-bottom-nav {
  transition: filter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-container,
.toast-container,
.toast-pill {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Typography helpers */
.text-justify {
  text-align: justify !important;
  text-justify: inter-word !important;
}

#hero-section {
  z-index: 50 !important;
}

#hero-section.docked-bottom {
  position: fixed !important;
  bottom: 24px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 16px !important;
  pointer-events: none !important;
  z-index: 50 !important;
}

#hero-section.docked-bottom #home-hero-heading {
  display: none !important;
}

.filter-unit-container {
  width: fit-content !important;
  max-width: calc(100vw - 32px) !important;
  position: relative !important;
  pointer-events: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  z-index: 50 !important;
  transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-bar-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ================= DOCKED BOTTOM (Search Results View: Filter Bar at Bottom, Dropdown on Top) ================= */
.docked-bottom {
  pointer-events: auto !important;
}

.docked-bottom .filter-unit-container {
  width: fit-content !important;
  max-width: calc(100vw - 32px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.docked-bottom .dropdown-panel {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(6px);
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  background: rgba(22, 22, 22, 0.88) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border-radius: var(--radius-dropdown) !important;
  border: none !important;
}

.docked-bottom .dropdown-panel.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.docked-bottom #selection-warning {
  bottom: auto !important;
  top: -28px !important;
}

.docked-bottom .nav-tab .chevron-icon {
  transform: rotate(180deg);
}

.docked-bottom .nav-tab.active .chevron-icon {
  transform: rotate(0deg);
}

.docked-bottom .search-bar {
  background: rgba(30, 30, 30, 0.72) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.docked-bottom .browse-btn {
  box-shadow: none !important;
}

/* All tags inside expansion/filter panels strictly left-aligned */
.dropdown-subpanel > div,
.mobile-tags-panel > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: left !important;
}

/* Category & Industry & Pricing Chips (Select & Unselect toggle) - Neutral Grey & 6px Corners */
.category-chip {
  cursor: pointer;
  font-family: inherit;
  background: rgba(40, 40, 40, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  border-radius: var(--radius-chip);
  border: none !important;
  font-size: 14px;
  padding: 6.5px 12.5px;
  outline: none;
  text-align: left !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
  border: none !important;
  transform: translateY(-1px);
}

.category-chip:active {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transform: translateY(0);
}

.category-chip.active {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.btn-clear-filter {
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11px;
  color: #888888;
  transition: color 0.15s ease;
  padding: 1px 4px;
}

.btn-clear-filter:hover {
  color: #ffffff;
  text-decoration: underline;
}

.filter-pill-badge {
  background-color: #1d1d1d;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill-badge:hover {
  background-color: #282828;
  border-color: #555555;
  transform: translateY(-1px);
}

/* ================= RESULTS TABLE VIEW (Minimalist Dark Index) ================= */
#resources-table,
.favorites-table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: transparent;
}

/* ALL dividers use the same subtle line — no exceptions */
.table-row-item td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.table-row-item td.cell-star {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
}

#resources-table th {
  user-select: none;
  font-family: var(--font-main);
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 500;
  color: #71717a;
}

/* ================= ROW BLUR REVEAL ANIMATION (Ultra Smooth) ================= */
@keyframes rowBlurReveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

.table-row-item.row-blur-reveal {
  opacity: 0;
  animation: rowBlurReveal 0.54s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.table-row-item {
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.table-row-item:hover {
  background-color: rgba(255, 255, 255, 0.045);
}

.table-row-item:hover .cell-name {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-row-item:hover .redirect-icon-link {
  color: #ffffff;
  background: transparent !important;
}

.table-row-item:hover .redirect-icon-link svg {
  color: #ffffff;
  transform: none;
}

.favicon-icon-wrapper {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.table-row-item:hover .favicon-icon-wrapper {
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.favicon-icon-wrapper img,
.favicon-img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: contain;
  display: block;
}

.redirect-icon-link svg {
  transition: color 0.15s ease;
}

.badge-tag-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-tag-zinc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  border: 1px solid rgba(161, 161, 170, 0.25);
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-tag-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.visit-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 5px;
  background-color: #141416;
  border: 1px solid #27272b;
  color: #a1a1aa;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.visit-site-btn:hover {
  background-color: #1e1e23;
  border-color: #3b3b42;
  color: #ffffff;
}

.visit-site-btn svg {
  width: 12px;
  height: 12px;
  stroke: #71717a;
  transition: transform 0.12s ease, stroke 0.12s ease;
}

.visit-site-btn:hover svg {
  transform: translate(1px, -1px);
  stroke: #ffffff;
}

/* Unified font size for all table text (a small bit higher) */
.cell-text-unified {
  font-family: var(--font-main) !important;
  line-height: 1.45 !important;
}

.cell-name {
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em;
}

.cell-desc {
  font-size: 14px !important;
  color: #8e8e93 !important;
  line-height: 1.45 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 480px;
}

.cell-clicks-val {
  font-size: 14px !important;
  color: #71717a !important;
  font-variant-numeric: tabular-nums;
}

/* Standalone redirect icon — NO hover background */
.redirect-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 0;
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
  background: transparent !important;
  box-shadow: none !important;
}

.redirect-icon-link:hover,
.redirect-icon-link:active,
.redirect-icon-link:focus {
  color: #ffffff;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

.redirect-icon-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.redirect-icon-link:hover svg {
  transform: none;
}

/* Custom scrollbars — hidden globally */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

/* Standalone Fallbacks */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

/* ================= DESKTOP DEFAULTS (HIDE MOBILE-SPECIFIC ELEMENTS) ================= */
#mobile-top-bar,
#mobile-bottom-nav,
#mobile-nav-wrapper,
#mobile-filter-view,
#mobile-docked-filter-trigger,
#mobile-filter-menu,
#mobile-filter-body {
  display: none !important;
}
/* Ensure closed dropdown panels on desktop never leave ghost artifact */
.dropdown-panel:not(.open) {
  display: none !important;
}

/* ================= COMPREHENSIVE MOBILE RESPONSIVE SYSTEM ================= */
@media (max-width: 768px) {
  /* Prevent horizontal scroll entirely */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Hide desktop multi-capsule navbar on mobile */
  .desktop-nav-container,
  #top-navbar {
    display: none !important;
  }

  /* 1. Mobile Top: Absolutely nothing on top in mobile */
  #mobile-top-bar {
    display: none !important;
  }

  /* 2. Mobile Navigation Bar at the TOP: Left Capsule + Separate Auth Button */
  #mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    top: 14px !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 12px !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: auto !important;
    z-index: 50 !important;
    box-shadow: none !important;
  }

  @supports (padding-top: env(safe-area-inset-top)) {
    #mobile-bottom-nav {
      top: max(14px, env(safe-area-inset-top, 14px)) !important;
      bottom: auto !important;
    }
  }

  .mobile-bottom-nav-dock {
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    height: 48px !important;
    border-radius: 9999px !important;
    background: rgba(20, 20, 20, 0.88) !important;
    border: none !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
  }

  .mobile-bottom-auth-btn {
    height: 48px !important;
    padding: 0 18px !important;
    border-radius: 9999px !important;
    background: #ffffff !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    transition: background-color 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.12s !important;
  }

  /* Guest Mobile Log In: Solid White */
  .mobile-bottom-auth-btn.btn-auth-solid-white,
  .mobile-bottom-auth-btn:not(.btn-auth-logged-in) {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 600 !important;
  }

  .mobile-bottom-auth-btn.btn-auth-solid-white span,
  .mobile-bottom-auth-btn:not(.btn-auth-logged-in) span {
    color: #000000 !important;
  }

  .mobile-bottom-auth-btn.btn-auth-solid-white:hover,
  .mobile-bottom-auth-btn:not(.btn-auth-logged-in):hover {
    color: #000000 !important;
    background: #e4e4e7 !important;
  }

  .mobile-bottom-auth-btn:active {
    transform: scale(0.96) !important;
  }

  /* Logged-In Mobile Profile: Dark Glass Capsule - NOT white */
  .mobile-bottom-auth-btn.btn-auth-logged-in {
    background: rgba(20, 20, 20, 0.88) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500 !important;
  }

  .mobile-bottom-auth-btn.btn-auth-logged-in span {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .mobile-bottom-auth-btn.btn-auth-logged-in:hover,
  .mobile-bottom-auth-btn.btn-auth-logged-in:active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
  }

  .mobile-bottom-auth-btn.btn-auth-logged-in.active {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
  }

  /* Mobile Brand Capsule (/CC/ on Left of Navbar) - Strictly unhighlighted on Home page */
  #mobile-nav-brand {
    height: 48px !important;
    padding: 0 14px !important;
    border-radius: 9999px !important;
    background: rgba(20, 20, 20, 0.88) !important;
    border: none !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: background-color 0.16s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s, transform 0.12s !important;
  }

  #mobile-nav-brand:hover,
  #mobile-nav-brand:active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
  }

  #mobile-nav-brand.active {
    /* Guard: strictly unhighlighted on Home page */
    background: rgba(20, 20, 20, 0.88) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: none !important;
  }

  /* Mobile Submit Capsule (Outside on Right of Navbar) */
  #mobile-nav-submit {
    height: 48px !important;
    padding: 0 13px !important;
    border-radius: 9999px !important;
    background: rgba(20, 20, 20, 0.88) !important;
    border: none !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: background-color 0.16s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s, transform 0.12s !important;
  }

  #mobile-nav-submit:hover,
  #mobile-nav-submit:active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
  }

  #mobile-nav-submit.active {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
  }

  .mobile-tab-btn,
  .mobile-tab-item {
    height: 48px !important;
    padding: 0 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    outline: none !important;
    cursor: pointer !important;
    transition: background-color 0.16s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s, transform 0.12s !important;
  }

  @media (max-width: 375px) {
    #mobile-bottom-nav {
      gap: 5px !important;
      padding: 0 6px !important;
    }
    .mobile-tab-btn,
    .mobile-tab-item {
      padding: 0 8.5px !important;
      font-size: 12px !important;
    }
    .mobile-bottom-auth-btn {
      padding: 0 11px !important;
      font-size: 12px !important;
    }
    #mobile-nav-brand {
      padding: 0 9px !important;
      font-size: 12px !important;
    }
    #mobile-nav-submit {
      padding: 0 9px !important;
      font-size: 12px !important;
    }
  }

  .mobile-tab-btn:hover,
  .mobile-tab-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .mobile-tab-btn:active,
  .mobile-tab-item:active {
    transform: scale(0.96) !important;
    background: rgba(255, 255, 255, 0.15) !important;
  }

  .mobile-tab-btn.active,
  .mobile-tab-item.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    font-weight: 500 !important;
  }

  .mobile-tab-divider {
    height: 18px !important;
    width: 1px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
  }

  /* ================= MOBILE FILTER ================= */
  .filter-unit-container {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    box-shadow: none !important;
  }

  /* Hide desktop filter bar row and desktop dropdown panel completely on mobile */
  #filter-bar-row,
  .filter-bar-row,
  #dropdown-menu,
  .dropdown-panel {
    display: none !important;
  }

  /* Show mobile filter view */
  #mobile-filter-view {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    position: relative !important;
  }

  /* Mobile Filter Bar Row: Filter Capsule + Search Button outside */
  .mobile-filter-bar-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* --- Mobile Filter Trigger Capsule (Resources | Pricing) --- */
  #mobile-docked-filter-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 48px !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: 9999px !important;
    background: rgba(30, 30, 30, 0.72) !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    outline: none !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
  }

  #mobile-docked-filter-trigger.active {
    background: rgba(30, 30, 30, 0.95) !important;
    border: none !important;
    box-shadow: none !important;
  }

  #mobile-docked-search-btn {
    height: 48px !important;
    padding: 0 20px !important;
    border-radius: 9999px !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    transition: transform 0.12s, background-color 0.15s !important;
  }

  #mobile-docked-search-btn span {
    color: #000000 !important;
  }

  #mobile-docked-search-btn:hover {
    background: #e4e4e7 !important;
    color: #000000 !important;
  }

  #mobile-docked-search-btn:active {
    transform: scale(0.95) !important;
  }

  #mobile-filter-apply-btn {
    height: 42px !important;
    border-radius: 9999px !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: transform 0.12s, background-color 0.15s !important;
  }

  #mobile-filter-apply-btn span {
    color: #000000 !important;
  }

  #mobile-filter-apply-btn:hover {
    background: #e4e4e7 !important;
    color: #000000 !important;
  }

  #mobile-filter-apply-btn:active {
    transform: scale(0.96) !important;
  }

  /* --- Search Results Page State: Full Length Block & Button --- */
  .docked-bottom .filter-unit-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .docked-bottom #mobile-filter-view {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Mobile Filter Menu (contains ONLY tags, NO dropdowns inside) */
  #mobile-filter-menu.hidden,
  #mobile-filter-body.hidden {
    display: none !important;
  }

  /* Mobile tags drawer: opens below filter on Home, and opens above when docked at bottom */
  #mobile-filter-menu:not(.hidden),
  #mobile-filter-body:not(.hidden) {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(50vh - 30px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 60 !important;
    box-shadow: none !important;
  }

  .docked-bottom #mobile-filter-menu:not(.hidden),
  .docked-bottom #mobile-filter-body:not(.hidden) {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    max-height: calc(100vh - 170px) !important;
  }

  .docked-bottom .mobile-filter-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* The Dark Rounded Card on Mobile (No borders, NO shadows, exact desktop colors) */
  .mobile-filter-card {
    display: block !important;
    width: 100% !important;
    border-radius: 20px !important;
    background: rgba(22, 22, 22, 0.88) !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    overflow: hidden !important;
    padding: 14px !important;
  }

  .mobile-tags-panel.hidden {
    display: none !important;
  }

  .mobile-tags-panel:not(.hidden) {
    display: block !important;
  }

  .category-chip {
    font-size: 13px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: none !important;
    background: rgba(40, 40, 40, 0.72) !important;
    color: #ffffff !important;
    text-align: left !important;
  }

  .category-chip.active {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Mobile: Filter Capsule Sits in the Center on Home, and Docks to the Bottom on Search Results */
  /* Typography helpers */
.text-justify {
  text-align: justify !important;
  text-justify: inter-word !important;
}

#hero-section {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 45 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  #hero-section.docked-bottom {
    top: auto !important;
    bottom: 16px !important;
    left: 0 !important;
    right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
  }

  .filter-unit-container.docked-bottom {
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    #hero-section.docked-bottom {
      bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    }
    .filter-unit-container.docked-bottom {
      bottom: auto !important;
      width: 100% !important;
      max-width: 100% !important;
    }
  }

  /* Catalog Table on Mobile */
  #catalog-section {
    padding-top: 76px !important;
    padding-bottom: 90px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #catalog-table-wrapper {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  #resources-table,
  .favorites-table {
    width: 100% !important;
  }

  /* Hide description column on mobile so the table fits comfortably without horizontal scrolling */
  #resources-table td:nth-child(3),
  #resources-table th:nth-child(3),
  .favorites-table td:nth-child(3),
  .favorites-table th:nth-child(3) {
    display: none !important;
  }

  .table-row-item td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .table-row-item td:first-child {
    width: 28px !important;
    padding-left: 6px !important;
  }

  .table-row-item td:nth-child(2) {
    width: auto !important;
    min-width: 0 !important;
  }

  .table-row-item td:nth-child(2) a,
  .table-row-item td:nth-child(2) .cell-name {
    font-size: 13.5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    max-width: 140px !important;
  }

  .table-row-item td:nth-child(4) {
    width: 44px !important;
    font-size: 11.5px !important;
    padding-right: 4px !important;
  }

  .table-row-item td:nth-child(5) {
    width: 28px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .table-row-item td:nth-child(6),
  .table-row-item td.cell-star {
    width: 30px !important;
    padding-left: 2px !important;
    padding-right: 6px !important;
  }

  /* Touch-friendly star button (visible without hover on mobile touchscreens) */
  .btn-star-resource {
    opacity: 0.65 !important;
  }

  .btn-star-resource.is-starred {
    opacity: 1 !important;
  }

  /* Content Pages (About, Favorites, Sponsor, Submit) on Mobile */
  main {
    padding-top: 76px !important;
    padding-bottom: 40px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  main header h1 {
    font-size: 21px !important;
    line-height: 1.25 !important;
  }

  #submission-container,
  #sponsor-inquiry-box > div {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  /* Dialog popups on mobile */
  dialog.modern-dialog,
  dialog#login-modal,
  dialog#settings-modal,
  dialog#shortcuts-modal,
  dialog#add-resource-modal,
  dialog#resource-detail-modal {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 88vh !important;
    border-radius: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    background: #141416 !important;
  }
}

/* Touchscreens: ensure touch targets remain visible and accessible */
@media (hover: none) and (pointer: coarse) {
  .btn-star-resource {
    opacity: 0.65 !important;
  }
  .btn-star-resource.is-starred {
    opacity: 1 !important;
  }
}

/* ================= REACT BITS DITHER BACKGROUND ================= */
.dither-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18; /* Barely visible, ultra-subtle atmospheric texture */
  transition: opacity 0.5s ease;
}

.dither-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ================= PROGRESSIVE GLASS BLUR (BETWEEN RESULTS & FILTER DOCK) ================= */
.results-progressive-blur {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 190px; /* High enough above the docked filter bar (87px) so approaching rows visibly blur */
  pointer-events: none;
  z-index: 35; /* Positioned directly between scrolling results (z-0) and floating filter bar (z-40) */
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.p-blur-step {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  background: rgba(0, 0, 0, 0.005); /* Microscopic alpha prevents Chrome from dropping transparency matrices */
}

/* Layer 1: Gentle initial softening as content enters blur zone (0% to 37.5%) */
.p-blur-1 {
  z-index: 1;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 37.5%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 37.5%);
}

/* Layer 2: Light optical blur (12.5% to 50%) */
.p-blur-2 {
  z-index: 2;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 0) 50%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 0) 50%);
}

/* Layer 3: Medium blur - clearly visible on rows approaching filter bar (25% to 62.5%) */
.p-blur-3 {
  z-index: 3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 62.5%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 62.5%);
}

/* Layer 4: Strong frosted blur (37.5% to 75%) */
.p-blur-4 {
  z-index: 4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 1) 62.5%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 1) 62.5%, rgba(0, 0, 0, 0) 75%);
}

/* Layer 5: Heavy blur as content passes filter bar (50% to 87.5%) */
.p-blur-5 {
  z-index: 5;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 1) 75%, rgba(0, 0, 0, 0) 87.5%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 1) 75%, rgba(0, 0, 0, 0) 87.5%);
}

/* Layer 6: Deep frosted glass blur behind filter dock (62.5% to 100%) */
.p-blur-6 {
  z-index: 6;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 1) 87.5%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 1) 87.5%, rgba(0, 0, 0, 0) 100%);
}

/* Layer 7: Maximum deep blur at bottom edge (75% to 100%) */
.p-blur-7 {
  z-index: 7;
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 1) 100%);
}

/* Progressive glass tint: subtle dark scrim that preserves luminous glass texture */
.p-blur-tint {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 30%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.58) 85%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

/* ================= TOP NAVBAR CAPSULES (Neutral Grey Glass) ================= */
.nav-capsule {
  background: rgba(30, 30, 30, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-pill);
  border: none !important;
  box-shadow: none !important;
  height: 48px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a.nav-capsule:not(.nav-capsule-submit):not(.nav-capsule-sponsor):hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
}

a.nav-capsule:not(.nav-capsule-submit):not(.nav-capsule-sponsor):active {
  background-color: rgba(255, 255, 255, 0.18) !important;
}

/* Brand Capsule (/CC/ on Left of Desktop Navbar) - Strictly unhighlighted on Home page */
#btn-nav-brand {
  height: 48px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(30, 30, 30, 0.72) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  user-select: none;
  flex-shrink: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#btn-nav-brand:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

#btn-nav-brand:active {
  background-color: rgba(255, 255, 255, 0.18) !important;
}

#btn-nav-brand.active {
  /* Guard: strictly unhighlighted on Home page */
  background: rgba(30, 30, 30, 0.72) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: none !important;
}

/* Standalone Submit Capsule Button (Outside on Right of Navbar) */
#btn-nav-submit {
  height: 48px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(30, 30, 30, 0.72) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  user-select: none;
  flex-shrink: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#btn-nav-submit:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

#btn-nav-submit:active,
#btn-nav-submit.active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.nav-capsule-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  height: 100%;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  white-space: nowrap;
  outline: none;
  transition: background-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease !important;
}

.nav-capsule-btn:first-child {
  border-top-left-radius: var(--radius-pill);
  border-bottom-left-radius: var(--radius-pill);
  padding-left: 24px;
  padding-right: 20px;
}

.nav-capsule-btn:last-child {
  border-top-right-radius: var(--radius-pill);
  border-bottom-right-radius: var(--radius-pill);
  padding-right: 24px;
  padding-left: 20px;
}

#btn-nav-login {
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

/* Hover, Touch & Active with frosted glass effect & background blur (matching dropdowns) */
.nav-capsule-btn:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
}

.nav-capsule-btn.active,
.nav-capsule-btn:active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
}


/* ================= REDESIGNED TOAST PILL (Dark Glassmorphism Aligned with UI) ================= */
#toast-container {
  position: fixed !important;
  top: 80px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 1200 !important;
  pointer-events: none !important;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.toast-pill {
  background: rgba(24, 24, 24, 0.90) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  padding: 8px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  letter-spacing: -0.01em !important;
  user-select: none !important;
  max-width: calc(100vw - 32px) !important;
}

/* ================= MODERN DIALOGS & LOGIN POPUP (Centered & Styled) ================= */
dialog.modern-dialog,
dialog#login-modal,
dialog#settings-modal,
dialog#settings-dialog,
dialog#add-resource-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-width: 400px !important;
  width: min(400px, calc(100vw - 32px)) !important;
  background: #141416 !important;
  backdrop-filter: blur(36px) !important;
  -webkit-backdrop-filter: blur(36px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.95) !important;
  color: #ffffff !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-family: inherit !important;
  z-index: 1000 !important;
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

dialog.modern-dialog::backdrop,
dialog#login-modal::backdrop,
dialog#settings-modal::backdrop,
dialog#add-resource-modal::backdrop {
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  animation: backdropFadeIn 0.2s ease-out forwards;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================= CUSTOM DROPDOWN SYSTEM (Aligned with UI) ================= */
.custom-dropdown-btn {
  background: rgba(30, 30, 30, 0.72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #ffffff;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.custom-dropdown-btn:hover {
  background: rgba(38, 38, 38, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.custom-dropdown-btn.open {
  border-color: rgba(255, 255, 255, 0.38) !important;
  background: rgba(42, 42, 42, 0.9) !important;
}

.custom-dropdown-btn.open .chevron-icon {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  background: rgba(22, 22, 22, 0.95) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-dropdown) !important;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.95) !important;
  z-index: 60 !important;
}

.custom-dropdown-opt {
  transition: all 0.12s ease;
  user-select: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-dropdown-opt:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff !important;
}

.custom-dropdown-opt.selected {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 500;
}

.custom-dropdown-opt .opt-check {
  transition: opacity 0.15s ease;
}

.custom-dropdown-opt.selected .opt-check {
  opacity: 1 !important;
}

/* ================= FAQ ACCORDION ================= */
.faq-question {
  transition: color 0.18s ease;
}

.faq-chevron {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-chevron.rotate-180 {
  transform: rotate(180deg) !important;
}

/* ================= USER NAVIGATION DROPDOWN ================= */
.user-nav-dropdown {
  background: rgba(20, 20, 20, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-dropdown) !important;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.95);
  animation: fadeInDown 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= STAR BUTTON & FAVORITES (Vibrant Orange) ================= */
.btn-star-resource {
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}

.btn-star-resource .star-svg {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), fill 0.15s ease, color 0.15s ease;
}

.btn-star-resource:hover {
  color: #ff7a00 !important;
}

.btn-star-resource:hover .star-svg {
  transform: scale(1.18);
  color: #ff7a00 !important;
}

.btn-star-resource.is-starred {
  color: #ff7a00 !important;
  opacity: 1 !important;
}

.btn-star-resource.is-starred .star-svg {
  fill: #ff7a00 !important;
  color: #ff7a00 !important;
}

.fav-item-row {
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.fav-chip {
  transition: all 0.16s ease;
  user-select: none;
}

/* ================= UNIFIED NAVBAR CAPSULE BUTTONS (All Four in One Capsule) ================= */
/* Submit and Sponsor now seamlessly share .nav-capsule-btn glass styling within the single capsule */
#btn-nav-submit,
#btn-nav-sponsor {
  border: none !important;
  box-shadow: none !important;
}

/* ================= FAVORITES TABLE HOVER-ONLY STAR ================= */
.favorites-table .btn-star-resource {
  opacity: 0 !important;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s ease, color 0.15s ease !important;
}

.favorites-table tr:hover .btn-star-resource,
.favorites-table tr:focus-within .btn-star-resource {
  opacity: 1 !important;
}

/* Starred items in table are always visible and filled orange */
.favorites-table .btn-star-resource.is-starred,
.btn-star-resource.is-starred {
  opacity: 1 !important;
  color: #ff7a00 !important;
}

.favorites-table .btn-star-resource.is-starred .star-svg,
.favorites-table .btn-star-resource.is-starred svg,
.btn-star-resource.is-starred .star-svg,
.btn-star-resource.is-starred svg,
.favorites-table .btn-star-resource.is-starred .star-svg path,
.favorites-table .btn-star-resource.is-starred svg path,
.btn-star-resource.is-starred .star-svg path,
.btn-star-resource.is-starred svg path {
  fill: #ff7a00 !important;
  stroke: #ff7a00 !important;
  color: #ff7a00 !important;
}

/* ================= 1-CLICK RESET / CLEAR FILTER BUTTONS ================= */










/* Secondary metadata contrast boost (WCAG AA 4.5:1+) */
.cell-desc {
  color: #8e8e93 !important;
}
.cell-clicks-val {
  color: #a1a1aa !important;
}

/* ================= NAVBAR AUTH CAPSULE ITEM ================= */
.nav-capsule #btn-nav-auth {
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  height: 100% !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none !important;
  white-space: nowrap !important;
  outline: none !important;
  border-top-right-radius: var(--radius-pill) !important;
  border-bottom-right-radius: var(--radius-pill) !important;
  transition: background-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease !important;
}

.nav-capsule #btn-nav-auth span,
.nav-capsule #btn-nav-auth #nav-auth-label {
  color: #ffffff !important;
}

.nav-capsule #btn-nav-auth:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
}

.nav-capsule #btn-nav-auth.active,
.nav-capsule #btn-nav-auth:active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
}

/* ================= PROFILE SUBMIT & SETTINGS BUTTONS (Borderless) ================= */
#btn-profile-submit,
#btn-profile-settings {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ================= SETTINGS POPUP MODAL (Borderless) ================= */
dialog#settings-dialog,
dialog#settings-modal,
#settings-dialog {
  border: none !important;
  outline: none !important;
}

/* ================= 2026 SPLIT DIRECTORY WIREFRAME STYLES ================= */
@media (min-width: 768px) {
  .desktop-layout-container {
    display: flex !important;
    flex-direction: row !important;
  }
  .mobile-layout-container {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .desktop-layout-container {
    display: none !important;
  }
  .mobile-layout-container {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Resource scroll container — no horizontal scroll, no visible scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: transparent;
}
.custom-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overflow-x: hidden !important;
}

/* ================= UNIFORM STRIP HEIGHT SYSTEM =================
   All horizontal strips across every block (Logo, Categories, Navbar,
   Resource Header, and every Resource Row) share the EXACT same height.
*/
.strip-item {
  height: var(--strip-h) !important;
  min-height: var(--strip-h) !important;
  max-height: var(--strip-h) !important;
  box-sizing: border-box !important;
}

#desktop-brand-box {
  height: var(--strip-h) !important;
  min-height: var(--strip-h) !important;
  max-height: var(--strip-h) !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

#desktop-right-header {
  height: var(--strip-h) !important;
  min-height: var(--strip-h) !important;
  max-height: var(--strip-h) !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

#desktop-brand-box a,
#desktop-brand-box #btn-nav-brand {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #000000 !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}

#desktop-brand-box #btn-nav-brand:hover,
#desktop-brand-box #btn-nav-brand:active,
#desktop-brand-box #btn-nav-brand.active {
  background: transparent !important;
  background-color: transparent !important;
  color: #000000 !important;
}

#desktop-brand-box a span,
#desktop-brand-box #btn-nav-brand span {
  color: #000000 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

#desktop-categories-box {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.category-nav-btn {
  width: 100% !important;
  height: var(--strip-h) !important;
  min-height: var(--strip-h) !important;
  max-height: var(--strip-h) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-nav-btn span,
.category-nav-btn .category-name {
  font-size: 14.5px !important;
  font-weight: 400 !important;
}
.category-nav-btn.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
}
.category-nav-btn.active .category-name {
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
}

.nav-content-item {
  width: 100% !important;
  height: var(--strip-h) !important;
  min-height: var(--strip-h) !important;
  max-height: var(--strip-h) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  transition: all 0.15s ease;
}
.nav-content-item span {
  font-size: 14.5px !important;
  font-weight: 400 !important;
}
.nav-content-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
}
.nav-content-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.nav-content-item.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-weight: 400 !important;
}

/* Nav Item Accents: Solid Sponsor in Gold, Solid Submit Resource in Blue, white text, NO hover effect */
.nav-sponsor-item {
  background-color: #f59e0b !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  transition: none !important;
}
.nav-sponsor-item:hover,
.nav-sponsor-item:active,
.nav-sponsor-item.active {
  background-color: #f59e0b !important;
  color: #ffffff !important;
}
.nav-sponsor-item span {
  color: #ffffff !important;
}
.nav-sponsor-item:hover span {
  color: #ffffff !important;
}

.nav-submit-item {
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  transition: none !important;
}
.nav-submit-item:hover,
.nav-submit-item:active,
.nav-submit-item.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}
.nav-submit-item span {
  color: #ffffff !important;
}
.nav-submit-item:hover span {
  color: #ffffff !important;
}

/* Resource Table Rows: Exact uniform height identical to strips */
.table-row-item {
  height: var(--strip-h) !important;
  min-height: var(--strip-h) !important;
  max-height: var(--strip-h) !important;
  box-sizing: border-box !important;
}

.table-row-item td {
  height: var(--strip-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

/* Star cell: extra right padding to create gap before favicon */
.table-row-item td.cell-star {
  padding-right: 6px !important;
}

/* Favicon cell: extra left padding to widen gap from star */
.table-row-item td.cell-star + td {
  padding-left: 6px !important;
}

/* Arrow cell: match the left-side padding and stretch width for perfect symmetry */
.table-row-item td:last-child {
  width: 46px !important;
  min-width: 46px !important;
  padding-right: 12px !important;
  padding-left: 4px !important;
  text-align: right !important;
}

/* Arrow redirect link: NO hover background at all, exact 22x22 matching star button */
.redirect-icon-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Favorites star on left side of favicon: CONSTANTLY visible */
.table-row-item .btn-star-resource,
.table-row-item td.cell-star .btn-star-resource {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  transition: transform 0.15s ease, color 0.15s ease !important;
}
.table-row-item .btn-star-resource:hover {
  transform: scale(1.15) !important;
}

/* Arrow redirect link: NO hover background at all */
.redirect-icon-link {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.redirect-icon-link:hover,
.redirect-icon-link:active,
.redirect-icon-link:focus {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

/* Layout container: ZERO gutter between boxes, exact matching heights (Desktop) */
@media (min-width: 768px) {
  :root {
    --strip-h: calc((100dvh - 28px) / 17);
  }

  .desktop-layout-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important; /* Zero gutter between boxes */
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 6px !important; /* Sharper edges */
    background-color: #141416 !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 980px !important;
    height: calc(100dvh - 28px) !important;
    max-height: calc(100dvh - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .left-sidebar-col {
    width: 240px !important;
    flex-shrink: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background-color: #141416 !important;
    overflow: hidden !important;
  }

  #desktop-brand-box {
    width: 100% !important;
    height: var(--strip-h) !important;
    min-height: var(--strip-h) !important;
    max-height: var(--strip-h) !important;
    box-sizing: border-box !important;
    border-top-left-radius: 5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  #desktop-categories-box {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
  }

  #desktop-navbar-box {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  #desktop-navbar-box a:last-child {
    border-bottom-left-radius: 5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  .right-content-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background-color: #141416 !important;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
  }

  #desktop-right-header {
    height: var(--strip-h) !important;
    min-height: var(--strip-h) !important;
    max-height: var(--strip-h) !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top-right-radius: 5px !important;
  }

  /* Profile Bento Header & Buttons (Image 2) */
  #profile-top-strip {
    height: var(--strip-h) !important;
    min-height: var(--strip-h) !important;
    max-height: var(--strip-h) !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    display: flex !important;
  }

  .profile-tab-btn {
    height: 100% !important;
    border-radius: 0 !important;
    transition: all 0.15s ease;
  }

  .profile-tab-btn.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
  }
}

/* Zero-gap table — standard border-collapse, no horizontal overflow */
#desktop-resources-scroll-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#desktop-resources-scroll-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

#resources-table,
.favorites-table {
  display: table !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  table-layout: fixed !important;
}

/* Keep tbody as table-row-group so <tr> stays display: table-row */
#resources-table-body,
#fav-table-body,
#subs-table-body {
  display: table-row-group !important;
}

/* Table rows must remain display: table-row for TDs to work properly */
.table-row-item {
  display: table-row !important;
  box-sizing: border-box !important;
}

/* ALL TDs get the same 1px divider bottom — no doubling, no exceptions */
.table-row-item td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  height: var(--strip-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Description cell takes all remaining space and clips text */
.table-row-item td.cell-line:nth-child(4),
.table-row-item td[class*="max-w-0"] {
  width: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Arrow redirect link: NO hover background at all */
.redirect-icon-link {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.redirect-icon-link:hover,
.redirect-icon-link:active,
.redirect-icon-link:focus {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

/* Sharp inputs, forms, and buttons (Image 4 & popups) */
#resource-submit-form input,
#resource-submit-form select,
#resource-submit-form textarea,
.custom-dropdown-btn,
.custom-dropdown-menu,
#submission-container,
#btn-submit-resource,
#btn-google-sso,
.user-nav-dropdown,
.user-nav-dropdown a,
.user-nav-dropdown button,
dialog.modern-dialog,
dialog#login-modal,
dialog#settings-dialog,
dialog#settings-dialog button {
  border-radius: 0 !important;
}

#btn-submit-resource {
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  border: none !important;
  transition: none !important;
  box-shadow: none !important;
}

#btn-submit-resource:hover,
#btn-submit-resource:active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

#btn-google-sso {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  box-shadow: none !important;
  transition: none !important;
}

#btn-google-sso:hover,
#btn-google-sso:active {
  background-color: #e4e4e7 !important;
  color: #000000 !important;
}

.user-nav-dropdown {
  background: #141416 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.9) !important;
}

/* ================= 2026 MOBILE EDGE-TO-EDGE NO-GUTTER SYSTEM ================= */
@media (max-width: 767px) {
  :root {
    --strip-h: 44px;
  }

  body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    max-width: 100vw !important;
    height: 100dvh !important;
  }

  .mobile-layout-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    gap: 0 !important;
    overflow: hidden !important;
    background-color: #141416 !important;
  }

  .mobile-top-header {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background-color: #141416 !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 50 !important;
  }

  .mobile-brand-box {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    height: 44px !important;
  }

  .mobile-brand-box a,
  .mobile-brand-box span {
    color: #000000 !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
  }

  #mobile-nav-toggle-btn {
    border-radius: 0 !important;
    outline: none !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    background-color: #141416 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  #mobile-nav-menu {
    position: absolute !important;
    top: 44px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    background-color: #141416 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 9999 !important;
  }
  #mobile-nav-menu.hidden {
    display: none !important;
  }
  #mobile-nav-menu:not(.hidden) {
    display: flex !important;
    flex-direction: column !important;
  }

  #mobile-nav-menu .nav-content-item {
    border-radius: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 !important;
  }

  #mobile-cat-toggle-btn {
    border-radius: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 !important;
    background-color: #141416 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
  }

  #mobile-cat-menu {
    position: absolute !important;
    top: 44px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    background-color: #141416 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 9998 !important;
  }
  #mobile-cat-menu.hidden {
    display: none !important;
  }
  #mobile-cat-menu:not(.hidden) {
    display: flex !important;
    flex-direction: column !important;
  }

  .mobile-cat-item {
    border-radius: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 !important;
  }

  #mobile-resources-scroll-container {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .mobile-layout-container table {
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
  }

  .mobile-layout-container .table-row-item {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  .mobile-layout-container .table-row-item td {
    height: 44px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  .mobile-layout-container .cell-name {
    font-size: 14.5px !important;
    font-weight: 400 !important;
  }
}




/* ================= MOBILE RESPONSIVE FIXES (≤767px) =================
   1. Home resource list: fixed column widths so the name fills the space
      between favicon and redirect arrow and truncates with an ellipsis.
   2. Inner pages: the desktop .right-content-col is moved into
      #mobile-content-slot by common.js; these rules make it fit phones.
   3. Profile tables: hide description, let the name take remaining width.
*/
@media (max-width: 767px) {
  /* ---------- 1. Home list (star | favicon | name | arrow) ---------- */
  .mobile-layout-container table {
    table-layout: fixed !important;
  }
  #mobile-resources-table-body .table-row-item td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  #mobile-resources-table-body .table-row-item td:nth-child(1) {
    width: 40px !important;
    min-width: 40px !important;
    padding-left: 12px !important;
    padding-right: 4px !important;
  }
  #mobile-resources-table-body .table-row-item td:nth-child(2) {
    width: 30px !important;
    min-width: 30px !important;
    padding-left: 4px !important;
    padding-right: 8px !important;
  }
  #mobile-resources-table-body .table-row-item td:nth-child(3) {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 8px !important;
  }
  #mobile-resources-table-body .table-row-item td:nth-child(4) {
    width: 46px !important;
    min-width: 46px !important;
    padding-left: 4px !important;
    padding-right: 12px !important;
  }
  #mobile-resources-table-body .table-row-item td:nth-child(2) a {
    max-width: none !important;
    display: inline-flex !important;
  }
  #mobile-resources-table-body .cell-name,
  #fav-table-body .cell-name,
  #subs-table-body .cell-name {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 14.5px !important;
  }

  /* ---------- 2. Inner pages: content column inside the mobile shell ---------- */
  #mobile-content-slot {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  #mobile-content-slot > .right-content-col {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    border: none !important;
  }
  /* Header strip: same 44px rhythm and 16px gutter as the rest of the mobile shell */
  #mobile-content-slot .right-content-col > .strip-item {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #mobile-content-slot .right-content-col h2 {
    font-size: 14.5px !important;
  }
  /* Tighter section padding on phones (desktop uses 24–32px) */
  #mobile-content-slot section[class*="p-6"],
  #mobile-content-slot div[class*="p-6"],
  #mobile-content-slot nav[class*="p-6"] {
    padding: 20px 16px !important;
  }
  #mobile-content-slot [class*="px-6"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Justified text creates big gaps on narrow screens */
  #mobile-content-slot .text-justify,
  #mobile-content-slot [class*="text-justify"] {
    text-align: left !important;
  }
  /* Long emails / URLs must wrap instead of overflowing */
  #mobile-content-slot p,
  #mobile-content-slot li,
  #mobile-content-slot a {
    overflow-wrap: anywhere;
  }
  /* Allow selecting/copying text on content pages */
  #mobile-content-slot .select-text {
    -webkit-user-select: text !important;
    user-select: text !important;
  }
  /* iOS zooms into inputs below 16px — keep form fields at 16px */
  #mobile-content-slot input,
  #mobile-content-slot textarea,
  #mobile-content-slot select {
    font-size: 16px !important;
  }
  /* Sponsor stats grid: smaller numbers so "180,000+" fits two-up */
  #mobile-content-slot .grid.grid-cols-2 > div {
    padding: 16px !important;
    min-width: 0 !important;
  }
  #mobile-content-slot .grid.grid-cols-2 .text-2xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
  }
  /* Sponsor tier header: let title block shrink beside the price */
  #mobile-content-slot #sponsor-tiers > .flex > div:first-child {
    min-width: 0 !important;
  }

  /* ---------- Profile page ---------- */
  /* Stack into two 44px strips that mirror the shell above:
     row 1 = name/email at 16px gutter + 44px gear box (like brand + hamburger)
     row 2 = full-width Favorites | Submitted tabs, labels at 16px gutter */
  #mobile-content-slot #profile-top-strip {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-wrap: wrap !important;
  }
  #mobile-content-slot #profile-top-strip > div:first-child {
    flex: 1 1 100% !important;
    height: 44px !important;
    padding-left: 16px !important;
    padding-right: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  }
  #mobile-content-slot #profile-top-strip > div:first-child > div:first-child {
    padding-right: 12px !important;
  }
  #mobile-content-slot #profile-user-name {
    font-size: 14.5px !important;
    line-height: 1.25 !important;
  }
  #mobile-content-slot #profile-user-email {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  #mobile-content-slot #btn-profile-settings {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid rgba(255, 255, 255, 0.09) !important;
  }
  #mobile-content-slot #btn-profile-settings svg {
    width: 16px !important;
    height: 16px !important;
  }
  #mobile-content-slot #profile-top-strip [role="tablist"] {
    flex: 1 1 100% !important;
    width: 100% !important;
    height: 44px !important;
  }
  #mobile-content-slot #profile-top-strip [role="tablist"] button {
    height: 44px !important;
    justify-content: flex-start !important;
    padding: 0 16px !important;
    font-size: 14.5px !important;
  }

  /* ---------- 3. Profile tables ---------- */
  #fav-table-wrapper,
  #subs-table-wrapper {
    overflow-x: hidden !important;
  }
  #fav-table .table-row-item td,
  #subs-table .table-row-item td {
    display: table-cell !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Favorites: star | favicon | name | (desc hidden) | arrow */
  #fav-table .table-row-item td:nth-child(1) {
    width: 40px !important;
    padding-left: 12px !important;
    padding-right: 4px !important;
  }
  #fav-table .table-row-item td:nth-child(2) {
    width: 30px !important;
    padding-left: 4px !important;
    padding-right: 8px !important;
  }
  #fav-table .table-row-item td:nth-child(3) {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 8px !important;
  }
  #fav-table .table-row-item td:nth-child(4) {
    display: none !important;
  }
  #fav-table .table-row-item td:nth-child(5) {
    width: 46px !important;
    min-width: 46px !important;
    padding-left: 4px !important;
    padding-right: 12px !important;
  }
  #fav-table .table-row-item td:nth-child(2) a {
    max-width: none !important;
    display: inline-flex !important;
  }

  /* Submitted: favicon | name | (desc hidden) | status | arrow */
  #subs-table .table-row-item td:nth-child(1) {
    width: 40px !important;
    padding-left: 16px !important;
    padding-right: 8px !important;
  }
  #subs-table .table-row-item td:nth-child(2) {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 8px !important;
  }
  #subs-table .table-row-item td:nth-child(3) {
    display: none !important;
  }
  #subs-table .table-row-item td:nth-child(4) {
    width: 88px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: inherit !important;
  }
  #subs-table .table-row-item td:nth-child(5) {
    width: 46px !important;
    min-width: 46px !important;
    padding-left: 4px !important;
    padding-right: 12px !important;
  }
  #subs-table .table-row-item td:nth-child(2) a {
    max-width: none !important;
  }
}

/* ================= SPONSOR SLOTS (3 stacked, zero gutter, above the resource list) ================= */
.sponsor-strip {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.sponsor-slot {
  display: flex;
  align-items: stretch;
  height: 64px;
  min-width: 0;
  text-decoration: none;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.sponsor-slot + .sponsor-slot { border-top: 0; }
.sponsor-strip > .sponsor-slot:last-child { border-bottom: 0; }
.sponsor-slot.is-empty {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
}
.sponsor-slot-empty-label { font-size: 13.5px; font-weight: 500; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sponsor-slot-cta { flex-shrink: 0; font-size: 12px; font-weight: 600; color: #f59e0b; opacity: 0; transition: opacity 0.15s ease; }
.sponsor-slot.is-empty:hover { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.5); }
.sponsor-slot.is-empty:hover .sponsor-slot-empty-label { color: #d4d4d8; }
.sponsor-slot.is-empty:hover .sponsor-slot-cta,
.sponsor-slot.is-empty:focus-visible .sponsor-slot-cta { opacity: 1; }
.sponsor-slot.is-filled:hover { background: rgba(255, 255, 255, 0.04); }
.sponsor-slot-img { flex: 0 0 122px; height: 100%; background: #0f0f11; overflow: hidden; border-right: 1px dashed rgba(255, 255, 255, 0.22); }
.sponsor-slot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sponsor-slot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 20px 0 14px; }
.sponsor-slot-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sponsor-slot-name { font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-slot-badge { flex-shrink: 0; font-size: 10px; font-weight: 600; color: #000; background: #f59e0b; padding: 1px 5px; }
.sponsor-slot-desc { font-size: 12px; color: #a1a1aa; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 767px) {
  .sponsor-slot { height: 60px; }
  .sponsor-slot.is-empty { padding: 0 16px; }
  .sponsor-slot-cta { opacity: 1; }
  .sponsor-slot-img { flex-basis: 96px; }
  .sponsor-slot-body { padding: 0 16px 0 12px; }
}


/* ================= SPONSOR COLUMN (desktop, right of the content column) ================= */
/* 3 dotted boxes stacked edge to edge, zero gutter. The dashed left edge is the column divider. */
.sponsor-col { display: none; }

@media (min-width: 1100px) {
  .desktop-layout-container { max-width: 1220px !important; }
  .sponsor-col {
    display: flex;
    flex-direction: column;
    width: 240px;
    flex-shrink: 0;
    height: 100%;
    background: #141416;
    overflow: hidden;
  }
  /* On wide screens the column replaces the rows above the list */
  #desktop-resources-scroll-container > .sponsor-strip { display: none; }
}

.sponsor-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}
.sponsor-col-head span { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.sponsor-col-head a { font-size: 12px; color: #71717a; text-decoration: none; transition: color 0.15s ease; }
.sponsor-col-head a:hover { color: #f59e0b; }

.sponsor-col-slots { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sponsor-col-slots .sponsor-slot {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  flex-direction: column;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-right: 0;
}
.sponsor-col-slots .sponsor-slot + .sponsor-slot { border-top: 0; }
.sponsor-col-slots .sponsor-slot:last-child { border-bottom: 0; }
.sponsor-col-slots .sponsor-slot.is-empty {
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
}
.sponsor-col-slots .sponsor-slot.is-empty .sponsor-slot-empty-label { white-space: normal; }
.sponsor-col-slots .sponsor-slot-img { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-right: 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.22); }
.sponsor-col-slots .sponsor-slot-body { justify-content: flex-start; gap: 6px; padding: 12px 16px; }
.sponsor-col-slots .sponsor-slot-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.45; }

/* ================= SMOOTH NAVIGATION ================= */
/* Page-to-page: the sidebar and sponsor column stay put, only the content area changes */
@view-transition { navigation: auto; }

.left-sidebar-col { view-transition-name: cc-sidebar; }
.right-content-col { view-transition-name: cc-main; }
.sponsor-col { view-transition-name: cc-sponsor; }
.mobile-top-header { view-transition-name: cc-mtop; }

::view-transition-group(*) { animation-duration: 0.32s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.2s; }
::view-transition-old(cc-main) { animation: cc-vt-out 0.16s ease both; }
::view-transition-new(cc-main) { animation: cc-vt-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s both; }

@keyframes cc-vt-out { to { opacity: 0; } }
@keyframes cc-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* In-page fallback when View Transitions aren't supported */
.cc-list-enter { animation: cc-vt-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .cc-list-enter { animation: none; }
}

/* ================= LOADING SKELETON (first visit, before listings arrive) ================= */
.cc-skel-row td { height: 52px; padding: 0 16px 0 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; }
.cc-skel { display: inline-block; vertical-align: middle; height: 10px; background: rgba(255, 255, 255, 0.07); margin-right: 24px;
  animation: cc-skel-pulse 1.2s ease-in-out infinite; }
.cc-skel-icon { width: 24px; height: 24px; margin-right: 16px; }
.cc-skel-name { height: 12px; }
@keyframes cc-skel-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .cc-skel { animation: none; } }
@media (max-width: 767px) {
  .cc-skel-row td { padding: 0 16px; }
  .cc-skel-desc { display: none; }
}

.cc-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= DRAGGABLE COLUMNS ================= */
@media (min-width: 768px) and (pointer: fine) {
  .left-sidebar-col, .right-content-col, .sponsor-col { position: relative; will-change: auto; }
  /* While dragging, the space a column leaves shows the page itself, not a grey panel */
  .desktop-layout-container.cc-dragging {
    overflow: visible !important;
    background-color: transparent !important;
    border-color: transparent !important;
  }
  .cc-col-dragging {
    z-index: 20;
    cursor: grabbing !important;
    will-change: transform;
  }
  .cc-col-dragging * { cursor: grabbing !important; }
}

/* ================= STUDIO CREDIT ================= */
.cc-credit {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.cc-credit b { font-weight: 600; color: #a1a1aa; transition: color 0.15s ease; }
.cc-credit:hover { color: #d4d4d8; background: rgba(255, 255, 255, 0.04); }
.cc-credit:hover b { color: #ffffff; }
.cc-credit-mobile { margin-top: 0; padding: 0 16px; height: 44px; }

/* ================= BUTTON WEIGHT =================
   Filled buttons use semibold. Overrides the site-wide "everything 400" rules above. */
.nav-sponsor-item, .nav-sponsor-item span,
.nav-submit-item, .nav-submit-item span,
#sponsor-cta, #sponsor-cta *,
#btn-submit-resource, #btn-submit-resource *,
#btn-google-sso, #btn-google-sso *,
#btn-profile-login, #btn-profile-login *,
a.font-semibold, a.font-semibold *,
button.font-semibold, button.font-semibold * {
  font-weight: 600 !important;
}

/* ================= SUBMIT SUCCESS PANEL ================= */
.cc-submit-success { position: absolute; left: 0; right: 0; top: var(--strip-h, 44px); bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: #141416; opacity: 0; transition: opacity 0.25s ease; }
.cc-submit-success.is-in { opacity: 1; }
.cc-submit-success[hidden] { display: none; }
.cc-submit-success-inner { width: 100%; max-width: 420px; text-align: center; transform: translateY(8px); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cc-submit-success.is-in .cc-submit-success-inner { transform: none; }
.cc-submit-success-icon { width: 48px; height: 48px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); color: #34d399; }
.cc-submit-success-icon svg { width: 22px; height: 22px; }
.cc-submit-success-title, .cc-submit-success-title * { font-weight: 600 !important; }
.cc-submit-success-title { font-size: 18px; letter-spacing: -0.01em; color: #fff; line-height: 1.3; margin-bottom: 8px; }
.cc-submit-success-text { font-size: 13.5px; line-height: 1.65; color: #a1a1aa; margin-bottom: 22px; }
.cc-submit-success-actions { display: grid; gap: 10px; }
.cc-btn-primary, .cc-btn-ghost { height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 600 !important; text-decoration: none; cursor: pointer; border-radius: 0; }
.cc-btn-primary { background: #2563eb; color: #fff; border: 0; }
.cc-btn-primary:hover { background: #1d4ed8; }
.cc-btn-ghost { background: transparent; color: #d4d4d8; border: 1px solid rgba(255, 255, 255, 0.14); }
.cc-btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
@media (prefers-reduced-motion: reduce) { .cc-submit-success, .cc-submit-success-inner { transition: none; } }

