/* app.css v=2025.09.01.47 */

/* Pastel compact pager (cute + accessible) */
.compact-pager{
  display:flex; align-items:center; justify-content:center; gap:.55rem;
  margin:1rem 0 1.75rem;
  font-family: var(--font-sans);
}

.compact-pager button{
  border:1px solid rgba(72,202,228,.30);
  background: var(--header-quicklinks-gradient);
  color:#0f172a;
  border-radius:12px;
  padding:.45rem .70rem;
  font-weight:700;
  line-height:1;
  box-shadow: 0 6px 18px rgba(72,202,228,.18);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.compact-pager button:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(72,202,228,.22);
}
.compact-pager button:disabled{
  opacity:.45; cursor:not-allowed; box-shadow:none;
}

.compact-pager input{
  width:3.4rem; text-align:center;
  border:1px solid rgba(72,202,228,.35);
  background:#fff; color:#0f172a;
  border-radius:12px;
  padding:.42rem .45rem;
  font-weight:700;
  box-shadow: var(--shadow-soft);
}

.compact-pager .muted{
  font-size:.95rem; opacity:.7; margin-left:.25rem;
}

/* Slightly bump the whole pagination row so it matches your articles cards */
.articles-pagination{
  gap:.75rem;
  padding-top:1.25rem;
  border-top:1px solid rgba(72,202,228,.18);
}

/* Prevent Chrome's scroll anchoring from yanking view to the pager */
.articles-pagination,
.compact-pager,
.compact-pager input {
  overflow-anchor: none;
}

/* So scrollIntoView/top-of-section leaves space for the sticky header */
.articles-section { scroll-margin-top: 72px; }

/* === Mobile Menu Hardening (do not remove) === */
#site-header .mobile-menu-overlay {
  z-index: 1090 !important;
}
#site-header .mobile-menu-drawer {
  z-index: 1100 !important;
}
/* Ensure slide-in works even if other sheets touch 'right' */
#site-header .mobile-menu-drawer { right: -100% !important; }
#site-header .mobile-menu-drawer.active { right: 0 !important; }

/* Keep gradient header and spacing consistent across pages */
#site-header .mobile-menu-header {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-pink) 100%) !important;
  color: #fff !important;
}

/* Slightly bigger icons/tap targets everywhere for continuity */
#site-header .mobile-menu-item { gap: 1rem; padding: 0.3125rem 1.1rem; }
#site-header .mobile-menu-item sl-icon { font-size: 1.5rem; line-height: 1; }

/* Lottie menu icons */
.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.menu-ico {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
}

.menu-ico-lottie { display: block; }       /* lottie-player */
.menu-ico-fallback { font-size: 28px; }    /* sl-icon fallback */

/* Optional: emphasize current item */
.mobile-menu-item.current .menu-ico {
  filter: drop-shadow(0 0 6px rgba(72,202,228,.45));
}

/* ===== Home (above-the-fold) spacing trims ===== */
.home .main-content { padding-top: 1.25rem; }            /* was 3rem */
.home .articles-section-wrapper {                         /* was mt:4rem pt:3rem */
  margin-top: 1.25rem;
  padding-top: .5rem;
}

/* ===== Pastel Hero (homepage) ===== */
.pastel-hero {
  position: relative;
  border: 1px solid rgba(72,202,228,.12);
  border-radius: 20px;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #fff7fb 55%, #f3fdff 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.pastel-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.pastel-hero__badge {
  margin-bottom: .8rem;
}

.pastel-hero__title {
  font-family: var(--font-gilland);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 .5rem 0;
}
.pastel-hero__title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pastel-hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 0 1.1rem 0;
}

.pastel-hero__cta {
  display: inline-flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: .8rem;
}
.pastel-hero__cta sl-button::part(base) { border-radius: 999px; }

.pastel-hero__chips {
  display: flex;
  gap: .4rem;
  justify-content: center;
}

.pastel-hero__blob {
  position: absolute;
  filter: blur(40px);
  opacity: .35;
  pointer-events: none;
}
.pastel-hero__blob--teal {
  width: 320px; height: 320px; top: -80px; left: -60px;
  background: radial-gradient(closest-side, #90e0ef, transparent 70%);
}
.pastel-hero__blob--pink {
  width: 360px; height: 360px; bottom: -120px; right: -80px;
  background: radial-gradient(closest-side, #ffc1e0, transparent 70%);
}

/* ===== Pastel Features ===== */
.pastel-features { margin-top: 1.25rem; }
.pastel-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.pf-card::part(base) {
  border-radius: 16px;
  border: 2px solid rgba(72,202,228,.12);
  background: linear-gradient(180deg, #ffffff 0%, #fefaff 100%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pf-card:hover::part(base), .pf-card.is-active::part(base) {
  transform: translateY(-6px);
  border-color: rgba(72,202,228,.3);
  box-shadow: var(--shadow-medium);
}

.pf-card__icon { font-size: 2rem; margin-bottom: .25rem; }
.pf-card__title {
  font-family: var(--font-gilland);
  font-weight: 700;
  margin: .25rem 0 .4rem 0;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.pf-card__text {
  color: var(--text-secondary);
  font-size: .95rem;
  margin-bottom: .8rem;
  min-height: 3.2em;
}
.pf-card__btn { width: 100%; }

/* tighten on small screens */
@media (max-width: 768px) {
  .pastel-hero { padding: 1.25rem .9rem; }
  .pastel-hero__subtitle { font-size: 1rem; }
  .pastel-hero__blob { filter: blur(34px); }
}

/* ===== MOTD (under header) ===== */
#motd-wrap{
  max-width: 1100px;
  margin: .5rem auto 0 auto;       /* tight to header */
  padding: 0 12px;                  /* align with container gutters */
}

.motd-alert::part(base){
  background: linear-gradient(135deg,#e7fbff 0%, #fde7f2 100%);
  border: 1px solid rgba(72,202,228,.25);
  border-radius: 16px;
  color: #1f2937;
  box-shadow: 0 8px 28px rgba(72,202,228,.10);
}
.motd-alert::part(icon){ margin-right: 6px; }
.motd-alert::part(close-button){ color:#be185d; } /* cute magenta */
.motd-content{ margin-top:.35rem; line-height:1.5; font-size:.95rem; }

/* keep it tidy on phones */
@media (max-width:768px){
  #motd-wrap{ margin-top:.4rem; }
  .motd-content{ font-size:.92rem; }
}

/* Modern Mobile Menu Styles */
#site-header .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-header .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#site-header .mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid rgba(72, 202, 228, 0.1);
}

#site-header .mobile-menu-drawer.active {
    right: 0;
}

#site-header .mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(72, 202, 228, 0.1);
    background: linear-gradient(135deg, #48cae4 0%, #ff9ecd 100%);
    color: white;
}

#site-header .mobile-menu-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#site-header .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

#site-header .mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#site-header .mobile-menu-content {
    padding: 1rem;
}

#site-header .mobile-menu-section {
    margin-bottom: 1.5rem;
}

#site-header .mobile-menu-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

#site-header .mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #334155;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    border: 1px solid transparent;
    background: transparent;
    position: relative;
    overflow: hidden;
}

#site-header .mobile-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 202, 228, 0.1), transparent);
    transition: left 0.5s ease;
}

#site-header .mobile-menu-item:hover::before {
    left: 100%;
}

#site-header .mobile-menu-item:hover {
    background: rgba(72, 202, 228, 0.08);
    border-color: rgba(72, 202, 228, 0.2);
    color: #1e293b;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(72, 202, 228, 0.15);
}

#site-header .mobile-menu-item sl-icon {
    font-size: 1.25rem;
    color: #48cae4;
    transition: all 0.2s ease;
}

#site-header .mobile-menu-item:hover sl-icon {
    transform: scale(1.1);
}

#site-header .mobile-menu-item.primary {
    background: linear-gradient(135deg, #48cae4 0%, #ff9ecd 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(72, 202, 228, 0.3);
}

#site-header .mobile-menu-item.primary:hover {
    background: linear-gradient(135deg, #00b4d8 0%, #ff69b4 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 202, 228, 0.4);
}

#site-header .mobile-menu-item.primary sl-icon {
    color: white;
}

#site-header .mobile-menu-item.danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

#site-header .mobile-menu-item.danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

#site-header .mobile-menu-item.danger sl-icon {
    color: white;
}

#site-header .mobile-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(72, 202, 228, 0.2), transparent);
    margin: 1rem 0;
}

#site-header .mobile-menu-user-info {
    background: rgba(72, 202, 228, 0.05);
    border: 1px solid rgba(72, 202, 228, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

#site-header .mobile-menu-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48cae4 0%, #ff9ecd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

#site-header .mobile-menu-user-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

#site-header .mobile-menu-user-email {
    font-size: 0.875rem;
    color: #64748b;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

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

@keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    #site-header .mobile-menu-drawer {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #site-header .mobile-menu-drawer {
        width: 100%;
    }
    
    #site-header .mobile-menu-header {
        padding: 1rem;
    }
    
    #site-header .mobile-menu-content {
        padding: 0.75rem;
    }
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Gilland Font Declarations (OTF) */
@font-face {
  font-family: 'Gilland';
  src: url('/assets/Gilland-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilland';
  src: url('/assets/Gilland-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* global base */
:root{
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-gilland: 'Gilland', 'Montserrat', sans-serif;
}
body{ 
    font-family: var(--font-sans);
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffe6f2 50%, #f0f8ff 100%);
    min-height: 100vh;
}

/* Header UI uses Montserrat (Gilland only for titles) */
#site-header,
#site-header * {
  font-family: var(--font-sans) !important;
}

/* brand lockup text (fallback only) */
#site-header .logo-text{
  font-family: 'Gilland', 'Montserrat', sans-serif;
  font-weight: 700;            /* was using 'Gilland' */
  letter-spacing: .2px;
  display: none;               /* keep hidden unless image fails */
}

/* Shoelace buttons: make text use your font */
#site-header sl-button::part(base){
  font-family: var(--font-sans);
}

/* Ensure header buttons stay Gilland, even after global button styles */
#site-header sl-button::part(base) {
  font-family: 'Gilland', 'Montserrat', sans-serif !important;
  font-weight: 600;
}

/* Desktop nav */
#site-header .main-nav .nav-link {
  font-family: 'Gilland', sans-serif;
  font-weight: 400;                /* Regular */
  transition: color .2s ease;
}
#site-header .main-nav .nav-link.current {
  font-weight: 700;                /* Bold for active */
}

/* Menu title icon size */
#site-header .menu-title-sphere {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: .55rem;
  border-radius: 50%;
}

/* Mobile menu */
#site-header .mobile-menu-item {
  font-family: 'Gilland', sans-serif;
  font-weight: 400;
  gap: 1rem;               /* was ~0.75–0.9rem */
  padding: 0.9rem 1.1rem;  /* slightly larger tap target */
}
#site-header .mobile-menu-item.current {
  font-weight: 700;
}
#site-header .mobile-menu-item sl-icon {
  font-size: 1.5rem;       /* bump icon size */
  line-height: 1;
}

/* Auth box styling (inline with menu items) */
#site-header .mobile-auth-box {
  margin-top: 12px;
}
#site-header .mobile-auth-box .auth-card {
  padding: 12px;
  border: 1px solid rgba(72,202,228,.18);
  border-radius: 12px;
  background: #fff;
}
#site-header .mobile-auth-box .auth-sub {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}
#site-header .mobile-auth-box .auth-email {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Mobile Menu Container and Drawer */
#site-header .mobile-menu-container {
  position: relative;
}

#site-header .mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-header .mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

#site-header .mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

#site-header .mobile-menu-drawer.active {
  right: 0;
}

#site-header .mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

#site-header .mobile-menu-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#site-header .mobile-menu-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.375rem;
  color: #6b7280;
  transition: all 0.2s ease;
}

#site-header .mobile-menu-close:hover {
  background: #e5e7eb;
  color: #374151;
}

#site-header .mobile-menu-content {
  padding: 1rem 0;
}

#site-header .mobile-menu-section {
  margin-bottom: 1rem;
}

#site-header .mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}

#site-header .mobile-menu-item:hover {
  background: #f3f4f6;
  color: #111827;
}

#site-header .mobile-menu-item.current {
  background: #eff6ff;
  color: #1d4ed8;
  border-right: 3px solid #3b82f6;
}

#site-header .mobile-menu-item.danger {
  color: #dc2626;
}

#site-header .mobile-menu-item.danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

#site-header .mobile-menu-item.primary {
  background: #3b82f6;
  color: white;
}

#site-header .mobile-menu-item.primary:hover {
  background: #2563eb;
  color: white;
}

@media (max-width: 768px) {
  #site-header .mobile-menu-drawer {
    width: 100vw;
    right: -100vw;
  }
}

/* Custom Properties for Color Scheme */
:root {
    --primary-teal: #48cae4;
    --primary-pink: #ff9ecd;
    --secondary-teal: #90e0ef;
    --secondary-pink: #ffb3d9;
    --accent-teal: #00b4d8;
    --accent-pink: #ff69b4;
    --gradient-primary: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-pink) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-teal) 0%, var(--secondary-pink) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-pink) 100%);
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(72, 202, 228, 0.1);
    --shadow-medium: 0 8px 30px rgba(255, 158, 205, 0.15);
    --border-radius: 16px;
    --border-radius-small: 12px;
}

/* Header Navigation Styling */
#site-header .main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#site-header .main-nav .nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.2s ease;
}

#site-header .main-nav .nav-link:hover {
  color: var(--primary-teal);
}

#site-header .main-nav .nav-link.current {
  color: var(--primary-teal);
  font-weight: 700;
}

#site-header .main-nav .nav-link.current::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.main-title {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.main-title .logo-palworld {
    font-size: 1.8rem;
}

.main-title .logo-cardcom {
    font-size: 2.3rem;
}

.main-title .welcome-text {
    font-size: 2.5rem;
    color: var(--text-primary);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    background: none;
}

.hero-subtitle {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;            /* Regular weight */
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    font-weight: 700;            /* ensure bold weight */
    color: var(--text-primary);
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(72, 202, 228, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    min-height: 60px;
}

.logo a {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Legacy Navigation (scoped to prevent conflicts with header) */
body:not(#never) .legacy .main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

body:not(#never) .legacy .main-nav li {
    margin: 0;
    padding: 0;
}

body:not(#never) .legacy .main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-small);
    position: relative;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

body:not(#never) .legacy .main-nav a:hover {
    color: var(--accent-teal);
    background: rgba(72, 202, 228, 0.1);
}

body:not(#never) .legacy .main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

body:not(#never) .legacy .main-nav a:hover::after {
    width: 80%;
}

/* Special styling for logout button */
#logout-link {
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
}

#logout-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-accent);
}

#logout-link::after {
    display: none;
}

/* Logo Styling */
.logo-svg {
    height: 40px;
    width: auto;
    max-width: 200px;
    transition: all 0.3s ease;
}

.logo-svg:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 30px;
    width: auto;
    max-width: 150px;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-svg {
        height: 32px;
        max-width: 160px;
    }
    
    .footer-logo {
        height: 24px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        height: 28px;
        max-width: 140px;
    }
    
    .footer-logo {
        height: 20px;
        max-width: 100px;
    }
}

/* Legacy logo classes - keeping for backward compatibility but not used */
.logo-palworld {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.logo-cardcom {
    font-family: 'Peanut-Butter', 'Montserrat', sans-serif;
    color: #2c3e50 !important;
    font-weight: normal;
    font-size: 2.3rem;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.desktop-nav {
    display: flex;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    border-left: 2px solid rgba(72, 202, 228, 0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(72, 202, 228, 0.1);
}

.mobile-nav-header h3 {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(72, 202, 228, 0.1);
    color: var(--primary-teal);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(72, 202, 228, 0.1);
    background: transparent;
}

.mobile-nav-item:hover {
    background: rgba(72, 202, 228, 0.1);
    transform: translateX(4px);
    border-color: var(--primary-teal);
    text-decoration: none;
    color: var(--text-primary);
}

.mobile-nav-item sl-icon {
    font-size: 1.2rem;
    color: var(--primary-teal);
}

.mobile-nav-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
}

.mobile-nav-primary:hover {
    background: var(--gradient-accent) !important;
    color: white !important;
}

.mobile-nav-primary sl-icon {
    color: white !important;
}

.mobile-nav-danger {
    background: var(--gradient-accent) !important;
    color: white !important;
    border: none !important;
}

.mobile-nav-danger:hover {
    background: linear-gradient(135deg, #ff69b4, #ff1493) !important;
    color: white !important;
}

.mobile-nav-danger sl-icon {
    color: white !important;
}

.mobile-nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(72, 202, 228, 0.1);
    text-align: center;
}

.mobile-nav-footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Shoelace Component Overrides */
sl-card::part(base) {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(72, 202, 228, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

sl-card:hover::part(base) {
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-teal);
}

.auth-card sl-button::part(base),
.feature-card sl-button::part(base),
.articles-pagination sl-button::part(base) {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

sl-button[variant="primary"]::part(base) {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

sl-button[variant="primary"]:hover::part(base) {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

sl-badge::part(base) {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 12px;
}

sl-badge[variant="primary"]::part(base) {
    background: linear-gradient(135deg, #ff69b4, #ff9ecd);  /* Pink */
    color: white;
}

sl-badge[variant="success"]::part(base) {
    background: linear-gradient(135deg, #48cae4, #90e0ef);  /* Blue */
    color: white;
}

sl-badge[variant="warning"]::part(base) {
    background: linear-gradient(135deg, #7dd3fc, #a7f3d0);  /* Green */
    color: white;
}

sl-badge[variant="danger"]::part(base) {
    background: linear-gradient(135deg, #fb923c, #fbbf24);  /* Orange */
    color: white;
}

/* Tabulator Overrides */
.tabulator {
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(72, 202, 228, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.tabulator-header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.tabulator-row {
    border-bottom: 1px solid rgba(72, 202, 228, 0.1);
    transition: all 0.3s ease;
}

.tabulator-row:hover {
    background: rgba(72, 202, 228, 0.05);
}

.tabulator-cell {
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* Form Elements */
sl-input::part(base),
sl-textarea::part(base),
sl-select::part(base) {
    border: 2px solid rgba(72, 202, 228, 0.2);
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

sl-input:focus-within::part(base),
sl-textarea:focus-within::part(base),
sl-select:focus-within::part(base) {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(72, 202, 228, 0.1);
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.welcome-header {
    margin-bottom: 3rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(72, 202, 228, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.feature-card:hover,
.feature-card.active {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-teal);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(72, 202, 228, 0.2));
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon,
.feature-card.active .feature-icon {
    transform: scale(1.15) rotate(8deg);
}

.feature-card h3 {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.feature-btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-top: auto;
}

.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 202, 228, 0.3);
}

/* Fix Shoelace button styling conflicts */
sl-button::part(base) {
    width: auto;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
}

/* Keep full-width only where desired */
.auth-card sl-button::part(base),
.feature-card sl-button::part(base),
.articles-pagination sl-button::part(base),
.pastel-hero__cta sl-button::part(base) {
    width: 100%;
}

sl-button:hover::part(base) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 202, 228, 0.3);
    background: var(--gradient-accent);
}

/* Authentication Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Auth required message */
.auth-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-required-content {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 500px;
}

.auth-required-content sl-icon {
    color: #3498db;
    margin-bottom: 1rem;
}

.auth-required-content h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.auth-required-content p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Profile Management Styles */
.profile-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.profile-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

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

.profile-actions {
    border-top: 1px solid #ecf0f1;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* Lists Management Styles */
.lists-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

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

.lists-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.lists-container {
    min-height: 200px;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #7f8c8d;
}

.loading-placeholder p {
    margin-top: 1rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: #7f8c8d;
}

.empty-state sl-icon {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.list-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.list-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.list-card-header h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.list-actions {
    display: flex;
    gap: 0.5rem;
}

.list-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.list-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #95a5a6;
}

.list-stats span {
    background: #ecf0f1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Shoelace Component Customization */
sl-tab-group {
    --sl-color-primary-600: #3498db;
    --sl-color-primary-700: #2980b9;
}

sl-button[variant="primary"] {
    --sl-color-primary-600: #3498db;
    --sl-color-primary-700: #2980b9;
}

sl-input {
    --sl-input-border-color: #bdc3c7;
    --sl-input-border-color-focus: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .auth-required-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .lists-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .lists-grid {
        grid-template-columns: 1fr;
    }
    
    body:not(#never) .legacy .main-nav {
        display: none;
    }
    
    body:not(#never) .legacy .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    body:not(#never) .legacy .main-nav.active ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
    border-top: 2px solid rgba(72, 202, 228, 0.1);
    box-shadow: var(--shadow-soft);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer logo styling removed - now using SVG */

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    border-radius: 4px;
}

.footer-section a:hover {
    color: var(--accent-teal);
    background: rgba(72, 202, 228, 0.1);
    padding: 0.25rem 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(72, 202, 228, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    line-height: 1.4;
    opacity: 0.8;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: .5rem;
}

.footer-social .social-link {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    color: var(--sl-color-neutral-600, #6b7280);
    background: rgba(255,255,255,.1);
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.footer-social .social-link sl-icon {
    font-size: 24px; /* Shoelace icons scale with font-size */
}

.footer-social .social-link:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.2);
    color: var(--accent-teal, #48cae4);
}

.site-footer .footer-section h4 {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* === FIX: Mobile Menu Icons === */
.menu-ico {
  width: 50px !important;
  height: 50px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
}
.menu-ico sl-icon,
.menu-ico .menu-ico-fallback {
  font-size: 28px !important;  /* keeps icon visible and centered */
  line-height: 1;
}
.menu-ico-lottie,
.menu-ico lottie-player {
  width: 36px !important;
  height: 36px !important;
}

/* === FIX: Footer Social Icons (pastel + 50x50) === */
.footer-social .social-link {
  width: 50px !important;
  height: 50px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #e7fbff 0%, #fde7f2 100%) !important;
  color: #6c63ff !important;   /* pastel lavender fallback */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.footer-social .social-link sl-icon {
  font-size: 26px !important;
  color: inherit !important; /* uses the pastel color above */
}
.footer-social .social-link:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, #fef3ff 0%, #e0f7ff 100%) !important;
  color: #ff69b4 !important;  /* pastel pink on hover */
}

/* === Shoelace toast stack: push below sticky header === */
:root{ --toast-top: 84px; }            /* default; JS below will measure real header height */
.sl-toast-stack{ 
  top: var(--toast-top) !important;    /* Shoelace inserts this node at runtime */
  z-index: 9999 !important;
}

/* === Enforce 50x50 menu icons everywhere in the mobile menu === */
#site-header .menu-ico,
#mobile-menu-container .menu-ico {
  width: 50px !important;
  height: 50px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
}

/* The lottie web component itself */
#site-header .menu-ico lottie-player,
#mobile-menu-container .menu-ico lottie-player {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
}

/* If a fallback sl-icon is used */
#site-header .menu-ico sl-icon,
#mobile-menu-container .menu-ico sl-icon {
  font-size: 32px !important;
  line-height: 1;
}

/* Articles Section Styles */
.articles-section-wrapper {
    margin-top: 4rem;
    padding-top: 3rem;
}

.articles-section-wrapper h2 {
    font-family: 'Gilland', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.articles-section-wrapper p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.articles-section {
    width: 100%;
}

.articles-tabs {
    margin-bottom: 2rem;
}

.articles-tabs::part(base) {
    border-bottom: 2px solid rgba(72, 202, 228, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-small);
    padding: 0.5rem;
}

.articles-tabs sl-tab::part(base) {
    font-weight: 600;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.articles-tabs sl-tab[active]::part(base) {
    color: var(--accent-teal);
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.articles-tabs sl-tab:hover::part(base) {
    background: rgba(72, 202, 228, 0.1);
    color: var(--accent-teal);
}

.articles-container {
    min-height: 400px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    cursor: pointer;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(72, 202, 228, 0.1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-teal);
    background: rgba(255, 255, 255, 0.95);
}

.article-card::part(base) {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card::part(body) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    width: 100%;
}

.article-image::part(base) img,
.article-image img,
sl-card .article-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    min-height: 200px;
    min-width: 100%;
}

.article-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    min-height: 200px;
    min-width: 100%;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

/* Force images to fill entire card width and height */
.articles-grid sl-card .article-image img,
.article-card .article-image img,
.article-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    min-height: 200px;
    min-width: 100%;
    max-width: none !important;
    max-height: none !important;
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.article-header {
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.article-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-excerpt {
    color: #5a6c7d;
    line-height: 1.6;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-excerpt p {
    margin: 0;
    line-height: 1.6;
    max-height: 4.8em; /* Approximately 3 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Loading States */
.articles-loading {
    width: 100%;
}

.article-card.skeleton {
    pointer-events: none;
}

.article-card.skeleton::part(base) {
    background: #f8f9fa;
}

/* Empty State */
.articles-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

.articles-empty sl-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.articles-empty h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.articles-empty p {
    margin: 0;
    font-size: 1.1rem;
}

/* Pagination */
.articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.pagination-info {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Loading Placeholder */
.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e8ed;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header & Navigation */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-palworld {
        font-size: 1.2rem;
    }
    
    .logo-cardcom {
        font-size: 1.53rem;
    }
    
    /* Main Content */
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .welcome-section {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .articles-section-wrapper h2 {
        font-size: 2rem;
    }
    
    .articles-section-wrapper p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        margin-bottom: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .articles-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .articles-tabs sl-tab::part(base) {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .articles-section-wrapper {
        margin-top: 2rem;
        padding-top: 1rem;
    }
    
    .articles-section-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .article-image {
        height: 150px;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-excerpt p {
        font-size: 0.9rem;
    }
}

/* Article Detail Page Styles */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.article-hero {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.article-detail .article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e8ed;
}

.article-detail .article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-detail .article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-detail .article-excerpt {
    font-size: 1.2rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.75rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }
.article-body h5 { font-size: 1.1rem; }
.article-body h6 { font-size: 1rem; }

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #5a6c7d;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-body iframe {
    max-width: 100%;
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-body div[style*="iframe"] {
    margin: 1.5rem 0;
}

.article-body div[style*="iframe"] iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 400px;
    aspect-ratio: 16/9;
}

/* Responsive iframe adjustments */
@media (max-width: 768px) {
    .article-body iframe {
        min-height: 250px;
    }
    
    .article-body div[style*="iframe"] iframe {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .article-body iframe {
        min-height: 200px;
    }
    
    .article-body div[style*="iframe"] iframe {
        min-height: 200px;
    }
}

.article-body a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #3498db;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.article-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.article-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    color: white;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2471a3;
    color: white;
}

/* Article Loading and Not Found States */
.article-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-not-found {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.article-not-found sl-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.article-not-found h2 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 2rem;
}

.article-not-found p {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

/* Mobile Responsiveness for Article Detail */
@media (max-width: 768px) {
    .article-detail {
        padding: 1rem 0;
    }
    
    .article-hero img {
        height: 250px;
    }
    
    .article-detail .article-title {
        font-size: 2rem;
    }
    
    .article-detail .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .article-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-detail .article-title {
        font-size: 1.75rem;
    }
    
    .article-hero img {
        height: 200px;
    }
    
    .article-detail .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Card Database Styles */
.cards-content {
    background: transparent;
}

.search-filters-section {
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1rem;
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.price-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-filters sl-input {
    width: 120px;
}

/* Lightbox styles */
.image-lightbox-dialog {
    --width: 90vw;
    --max-width: 600px;
}

.lightbox-content {
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lightbox-info {
    margin-top: 1rem;
    text-align: center;
}

.lightbox-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.lightbox-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Price styling with click to buy text */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.price-link {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
}

.price-link:hover {
    text-decoration: underline;
}

.click-to-buy {
    font-size: 0.7rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Rarity badge styling */
.rarity-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rarity-common {
    background-color: #e5e7eb;
    color: #374151;
}

.rarity-uncommon {
    background-color: #10b981;
    color: white;
}

.rarity-rare {
    background-color: #3b82f6;
    color: white;
}

.rarity-epic {
    background-color: #8b5cf6;
    color: white;
}

.rarity-legendary {
    background-color: #f59e0b;
    color: white;
}

.results-summary {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.cards-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(72, 202, 228, 0.1);
    overflow: hidden;
}

.cards-grid-container {
    min-height: 400px;
}

.loading-status {
    text-align: center;
    padding: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

#empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

#empty-state p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Loading states */
.loading-placeholder {
    text-align: center;
    padding: 3rem 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Dialog styles */
.dialog-content {
    padding: 1rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.dialog-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    body:not(#never) .legacy .main-nav {
        display: none;
    }
    
    body:not(#never) .legacy .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    body:not(#never) .legacy .main-nav.active ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .welcome-section h2 {
        font-size: 1.75rem;
    }
}

/* Table container fix for Tabulator initialization */
#items-table {
    min-height: 1px; /* avoids any edge case where height=0 confuses measurements */
}

/* ensure icon slots inside sl-button render */
sl-button::part(prefix),
sl-button::part(suffix) { display: inline-flex; align-items: center; }

sl-icon { width: 1em; height: 1em; display: inline-block; }

/* if you have a global 'svg { display:none }' or similar reset, delete it */

/* ===========================
   Header layout refinements
   =========================== */

/* Grid keeps [logo][search][menu] aligned without overflow */
#site-header .header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 0.75rem 0;
}

#site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--text-primary);
  min-height: 40px;
}
#site-header .logo-img { height: 40px; width: auto; }
#site-header .logo-text { display: none; } /* keep hidden fallback text */

#site-header .mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: .5rem;
  cursor: pointer;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
#site-header .mobile-toggle:hover {
  background: rgba(72, 202, 228, 0.12);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Menu sphere default (desktop) */
#site-header .mobile-toggle .menu-sphere {
  width: 40px;
  height: 40px;
  display: block;
}

/* keep the header search flexible but capped on wide screens */
#site-header .header-search {
  position: relative;
  max-width: 760px;   /* desktop cap */
  min-width: 0;       /* 🔑 allow the input to actually shrink */
}

/* Shoelace input should fill the middle track */
#site-header .header-search sl-input { width: 100%; }

/* Add padding before search icon */
#site-header .header-search sl-input::part(prefix) {
  padding-left: 10px;
}

/* Shoelace input compact look in header */
#site-header .header-search sl-input::part(base) {
  border-radius: 999px;
  min-height: 44px;               /* desktop height */
  padding: 0 .9rem;
  box-shadow: var(--shadow-soft);
}

/* suggestions popover */
#site-header .search-suggestions {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid rgba(72,202,228,0.15);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  max-height: 70vh;
  overflow-y: auto;
}

#site-header .search-suggestion {
  width: 100%;
  text-align: left;
  padding: .75rem .9rem;
  background: #fff;
  border: 0;
  display: block;
}
#site-header .search-suggestion + .search-suggestion { border-top: 1px solid rgba(72,202,228,0.08); }
#site-header .search-suggestion .sugg-title { font-weight: 600; color: var(--text-primary); }
#site-header .search-suggestion .sugg-meta { font-size: .85rem; color: var(--text-light); margin-top: 4px; }

#site-header .search-suggestion.is-active,
#site-header .search-suggestion:hover {
  background: rgba(72, 202, 228, 0.06);
}

#site-header .search-suggestion.loading,
#site-header .search-suggestion.empty {
  color: var(--text-light);
  text-align: center;
}

/* ===========================
   Clean, uniform search dropdown
   =========================== */

#site-header .search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 2000;
  background: #fff;
  border: 1px solid rgba(72, 202, 228, 0.15);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 70vh;               /* scroll if too many */
  overflow-y: auto;
}

/* row */
#site-header .search-suggestion {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  border: 0;
  cursor: pointer;
}

#site-header .search-suggestion + .search-suggestion {
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* active/hover */
#site-header .search-suggestion.is-active,
#site-header .search-suggestion:hover {
  background: rgba(72, 202, 228, 0.06);
}

/* thumbnail */
#site-header .sugg-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}

/* text block */
#site-header .sugg-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.25;
}

/* first line: badge + main text */
#site-header .sugg-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* badge */
#site-header .sugg-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #e5f6fb;
  color: #036b7a;
}

#site-header .sugg-badge.article {
  background: #fde7f2;
  color: #7a0440;
}

/* line1 (primary) & line2 (secondary) with truncation */
#site-header .sugg-line1 {
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#site-header .sugg-line2 {
  font-size: 12.5px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* states */
#site-header .search-suggestion.loading,
#site-header .search-suggestion.empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: #6b7280;
}

/* make dropdown typography slightly smaller on very small phones */
@media (max-width: 480px) {
  #site-header .sugg-line1 { font-size: 14px; }
  #site-header .sugg-line2 { font-size: 12px; }
}

/* Quick-links inside container and styled to match */
.quick-links {
  background: linear-gradient(135deg, #fffbf0 0%, #fef7e6 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(72, 202, 228, 0.15);
  box-shadow: var(--shadow-soft);
}
.quick-links .container { padding: .5rem 20px; }
.quick-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.quick-nav-btn {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 10px;
  padding: .5rem .75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-nav-btn:hover:not(:disabled) {
  background: rgba(72, 202, 228, 0.1);
  color: var(--accent-teal);
}

.quick-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hide any legacy desktop nav in case it remains anywhere */
#site-header .main-nav,
#site-header .auth-actions { display: none !important; }

/* Slight left padding for mobile logo to match your ask */
@media (max-width: 768px) {
  #site-header .logo { padding-left: 5px; }

  #site-header .header-search sl-input::part(base) { min-height: 36px; padding: 0 .8rem; }
  #site-header .header-search { max-width: none; }   /* let it compress freely */
  #site-header .header-inner { column-gap: 8px; }
  #site-header .mobile-toggle .menu-sphere { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
  #site-header .mobile-toggle .menu-sphere { width: 30px; height: 30px; }
  #site-header .header-search sl-input::part(base) { min-height: 34px; padding: 0 .7rem; }
  #site-header .header-inner { column-gap: 6px; }
}

/* Articles pagination: compact & responsive */
.articles-pagination {
  gap: .5rem;
  padding-top: 1.25rem;
}

.articles-pagination a,
.articles-pagination button {
  font: 600 .92rem/1 var(--font-sans);
  padding: .35rem .6rem;
  border-radius: 8px;
  border: 1px solid rgba(72, 202, 228, 0.35);
  background: #fff;
  transition: all .2s ease;
}

.articles-pagination a:hover,
.articles-pagination button:hover {
  background: rgba(72, 202, 228, 0.08);
  border-color: var(--primary-teal);
}

/* Shoelace pagination buttons (if used) */
.articles-pagination sl-button::part(base) {
  font-weight: 600;
  font-size: .92rem;
  padding: .35rem .6rem;
  border-radius: 8px;
}

.pagination-info { font-size: .85rem; }

@media (max-width: 768px) {
  .articles-pagination { gap: .4rem; }
  .articles-pagination a,
  .articles-pagination button { font-size: .85rem; padding: .3rem .5rem; border-radius: 7px; }
  .articles-pagination sl-button::part(base) { font-size: .85rem; padding: .3rem .5rem; border-radius: 7px; }
  .pagination-info { font-size: .8rem; }
}
@media (max-width: 480px) {
  .articles-pagination { gap: .35rem; }
  .articles-pagination a,
  .articles-pagination button { font-size: .8rem; padding: .28rem .45rem; border-radius: 6px; }
  .articles-pagination sl-button::part(base) { font-size: .8rem; padding: .28rem .45rem; border-radius: 6px; }
}

/* Mobile menu title + close icon: white & larger */
#site-header .mobile-menu-header h3 { color: #fff !important; }
#site-header .mobile-menu-close { color: #fff !important; }
#site-header .mobile-menu-close sl-icon { font-size: 24px !important; color: #fff !important; }

/* Mobile menu "Sign out" should be white, not red */
#site-header .mobile-menu-item.danger {
  color: #fff !important;
}
#site-header .mobile-menu-item.danger:hover {
  color: #fff !important;
}

/* Filters row: breathing room before icons */
.filters-row sl-input::part(prefix),
.filters-row sl-select::part(prefix) {
  padding-left: 10px;
}

/* Optional: labels that include icons */
.filters-row label sl-icon { margin-right: 6px; }

/* === Pastel quick-links + shared header accents === */
:root{
  /* soft pink/blue used for quick-links, mobile drawer bg, footer top line */
  --header-quicklinks-gradient: linear-gradient(135deg, #e7fbff 0%, #fde7f2 100%);
}

/* Replace cream with the pastel gradient + switch to Gilland Regular */
.quick-links {
  background: var(--header-quicklinks-gradient);
}

/* Removed old sl-tab styles - now using sl-button for navigation */

/* Mobile menu labels: Gilland Regular + 10px side padding + matching gradient bg */
#site-header .mobile-menu-header h3,
#site-header .mobile-menu-item,
#site-header .mobile-menu-section-title {
  font-family: var(--font-gilland) !important;
  font-weight: 400;
}

/* Add 10px side padding so items/auth box don't kiss the edges */
#site-header .mobile-menu-content { padding: 1rem 10px; }
#site-header .mobile-menu-section   { padding: 0 10px; }
#site-header .mobile-auth-box       { padding: 0 10px; }

/* Drawer background = same pastel gradient as quick-links */
#site-header .mobile-menu-drawer {
  background: var(--header-quicklinks-gradient) !important;
}

/* Thin gradient line along the top edge of the footer */
.site-footer {
  position: relative;
  border-top: none; /* we'll render a gradient line instead of the solid border */
}

.site-footer::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 3px;                      /* "thin line" */
  background: var(--header-quicklinks-gradient);
  pointer-events:none;
}

/* === Membership locks (subtle, on-theme) === */
.is-locked,
[data-locked="true"] {
  filter: grayscale(0.2) saturate(0.6);
  opacity: .55;
  cursor: not-allowed !important;
  pointer-events: auto;          /* we still want click to open tooltip/upgrade */
  position: relative;
}

/* consistent "locked" look for Leader Boards / Collections when logged out */
.quick-nav-btn.is-locked { cursor: not-allowed; }

.is-locked sl-button::part(base),
[data-locked="true"] sl-button::part(base) {
  opacity: .7;
  box-shadow: none;
  background: linear-gradient(135deg,#e5e7eb,#f3f4f6) !important;
  color: #6b7280 !important;
}

/* Per-button lock (same look as is-locked / [data-locked="true"] container) */
sl-button[data-locked="true"]::part(base){
  opacity:.7;
  box-shadow:none;
  background: linear-gradient(135deg,#e5e7eb,#f3f4f6) !important;
  color:#6b7280 !important;
  cursor:not-allowed;
}

/* Plans grid styling */
.plans-grid .plan-card { 
  transition: transform .2s ease, box-shadow .2s ease; 
}
.plans-grid .plan-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-medium); 
}

.lock-overlay {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: repeating-linear-gradient(
    135deg, rgba(72,202,228,.08), rgba(255,158,205,.08) 12px
  );
  pointer-events: none;
}

/* tiny lock badge (optional) */
.lock-badge {
  position: absolute; top: 6px; right: 6px;
  font-size: 12px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  background: #fde7f2; color: #7a0440;
  box-shadow: var(--shadow-soft);
}

/* Mobile menu CTA colors (override any earlier definitions) */
#site-header .mobile-menu-item.primary{
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important; /* green */
  color:#fff !important; border:none !important;
  box-shadow: 0 6px 16px rgba(22,163,74,.35);
}
#site-header .mobile-menu-item.primary:hover{
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  transform: translateY(-2px);
}

#site-header .mobile-menu-item.danger{
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important; /* red */
  color:#fff !important; border:none !important;
  box-shadow: 0 6px 16px rgba(220,38,38,.35);
}
#site-header .mobile-menu-item.danger:hover{
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
  transform: translateY(-2px);
}

/* On-theme selected item state for mobile menu */
#site-header .mobile-menu-item.current{
  background: rgba(72,202,228,.14) !important;
  color: #0f766e !important; /* deep teal */
  border-right: 3px solid transparent !important;
  box-shadow: inset 0 0 0 1px rgba(72,202,228,.25);
}
#site-header .mobile-menu-item.current sl-icon{
  color: var(--primary-teal) !important;
}

/* Push Shoelace toast stack below header/quicklinks */
.sl-toast-stack{
  top: calc(var(--header-offset, 72px) + 8px) !important;
  right: 16px !important;
  z-index: 5000 !important;
}
