/* ================================================================
   CYCLEPOINT — PREMIUM REDESIGN v3
   Full-width header · Bigger logo · Engaging design · Responsive
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;1,9..144,400&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --forest:    #1a3c2e;
  --emerald:   #2d6a4f;
  --sage:      #40916c;
  --mint:      #74c69d;
  --pale:      #d8f3dc;
  --pale-2:    #edf7f0;
  --cream:     #eef7f1;
  --white:     #ffffff;

  --ink:       #0d1f17;
  --ink-2:     #253d2f;
  --ink-3:     #527060;
  --ink-4:     #8fb09e;
  --border:    rgba(45,106,79,.13);
  --border-h:  rgba(45,106,79,.30);

  --red:       #e63946;
  --teal:      #168aad;
  --gold:      #f4a261;

  --sh-xs: 0 1px 4px rgba(13,31,23,.05);
  --sh-sm: 0 2px 12px rgba(13,31,23,.08);
  --sh-md: 0 8px 28px rgba(13,31,23,.11);
  --sh-lg: 0 20px 52px rgba(13,31,23,.14);
  --sh-xl: 0 36px 80px rgba(13,31,23,.18);
  --glow:  0 0 0 3px rgba(64,145,108,.22);

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --ease: cubic-bezier(.4,0,.2,1);
  --fast: 160ms var(--ease);
  --base: 260ms var(--ease);
  --slow: 420ms var(--ease);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink-2);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Wrapper ── */
.cp-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ================================================================
   HEADER — full width, no dead space
================================================================ */
.cp-header {
  background: white;
  border-bottom: 2px solid var(--pale);
  box-shadow: 0 2px 16px rgba(13,31,23,.07);
  position: sticky;
  top: 0;
  z-index: 500;
}

.cp-header .cp-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 76px;
  /* stretch everything to fill full width */
}

/* ── Logo — bigger & bolder ── */
.cp-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  gap: 10px;
}
.cp-logo-img {
  height: 58px;
  width: auto;
  transition: transform var(--base), filter var(--base);
  filter: drop-shadow(0 2px 8px rgba(45,106,79,.2));
}
.cp-logo:hover .cp-logo-img {
  transform: scale(1.06) rotate(-1.5deg);
  filter: drop-shadow(0 6px 16px rgba(64,145,108,.45));
}

/* Vertical divider */
.cp-divider {
  width: 1.5px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, var(--pale), transparent);
  flex-shrink: 0;
}

/* ── Location ── */
.cp-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pale-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0 16px;
  height: 44px;
  flex-shrink: 0;
  transition: var(--base);
}
.cp-loc:hover { border-color: var(--sage); box-shadow: var(--sh-sm); background: white; }
.cp-loc i { color: var(--sage); font-size: 13px; flex-shrink: 0; }
.cp-loc-input {
  border: none; background: transparent;
  font-size: 13.5px; font-weight: 600;
  font-family: inherit; color: var(--ink-2);
  cursor: pointer; outline: none;
  width: 148px;
  appearance: none; -webkit-appearance: none;
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2340916c' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

/* ── Styled select dropdown options ── */
.cp-loc-input option {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: #ffffff;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.cp-loc-input option:first-child {
  color: var(--ink-4);
  font-style: italic;
  font-weight: 500;
  background: var(--pale-2);
}
.cp-loc-input option:not(:first-child):hover,
.cp-loc-input option:checked {
  background: var(--pale) !important;
  color: var(--forest) !important;
  font-weight: 700;
}

/* Wrap the select so we can style it like a pill properly */
.cp-loc {
  position: relative;
  cursor: pointer;
}
.cp-loc:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(64,145,108,.12), var(--sh-sm);
  background: white;
}

/* ── Search — takes all remaining space ── */
.cp-header-middle { flex: 1; min-width: 0; }
.cp-search-form { width: 100%; }
.cp-search-container {
  display: flex; align-items: center;
  background: var(--pale-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden; transition: var(--base);
  box-shadow: var(--sh-xs);
  height: 44px;
}
.cp-search-container:focus-within {
  border-color: var(--sage);
  box-shadow: var(--glow), var(--sh-sm);
  background: white;
}
.cp-search-input {
  flex: 1; border: none; background: transparent;
  padding: 0 20px; font-size: 14px;
  font-family: inherit; color: var(--ink); outline: none; min-width: 0;
}
.cp-search-input::placeholder { color: var(--ink-4); }
.cp-search-btn {
  background: linear-gradient(135deg, var(--forest), var(--sage));
  border: none; color: white;
  width: 50px; height: 38px; margin: 3px;
  border-radius: var(--r-pill);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--base);
  box-shadow: 0 2px 10px rgba(45,106,79,.3);
}
.cp-search-btn:hover { transform: scale(1.07); box-shadow: 0 4px 18px rgba(45,106,79,.42); }

/* ── Language ── */
.cp-lang { position: relative; flex-shrink: 0; }
.cp-lang-btn {
  background: var(--pale-2); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 0 16px;
  height: 44px; font-size: 13px; font-weight: 700;
  font-family: inherit; color: var(--ink-2);
  cursor: pointer; display: flex; align-items: center;
  gap: 7px; transition: var(--base); white-space: nowrap;
}
.cp-lang-btn:hover { border-color: var(--sage); background: white; box-shadow: var(--sh-sm); }
.cp-lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  min-width: 170px; display: none; overflow: hidden;
  z-index: 600;
  animation: dropIn .18s var(--ease);
}
.cp-lang-menu.show { display: block; }
.cp-lang-menu button {
  width: 100%; background: none; border: none;
  padding: 13px 18px; text-align: left;
  font-size: 13.5px; font-family: inherit; font-weight: 500;
  color: var(--ink-2); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--fast); border-bottom: 1px solid var(--border);
}
.cp-lang-menu button:last-child { border-bottom: none; }
.cp-lang-menu button:hover { background: var(--pale); color: var(--emerald); }
.cp-lang-menu button.active { font-weight: 700; color: var(--emerald); background: var(--pale-2); }
.cp-lang-menu button i { opacity: 0; color: var(--sage); }
.cp-lang-menu button.active i { opacity: 1; }

/* ── Right actions ── */
.cp-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.cp-message {
  position: relative; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pale-2); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); color: var(--ink-3);
  text-decoration: none; font-size: 17px;
  flex-shrink: 0; transition: var(--base);
}
.cp-message:hover {
  background: var(--pale); border-color: var(--sage);
  color: var(--emerald); transform: translateY(-2px); box-shadow: var(--sh-md);
}
.cp-badge-dot {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: white;
  font-size: 9px; font-weight: 800;
  padding: 2px 5px; border-radius: var(--r-pill);
  min-width: 18px; text-align: center;
  border: 2px solid white; line-height: 1.4;
  font-family: inherit;
}
.cp-notification-dot {
  position: absolute; top: -3px; right: -3px;
  width: 11px; height: 11px; background: var(--red);
  border-radius: 50%; border: 2.5px solid white;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230,57,70,.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(230,57,70,0); }
}

.profile-dropdown { position: relative; }
.cp-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; cursor: pointer;
  border: 2.5px solid var(--border);
  transition: var(--base); flex-shrink: 0;
  box-shadow: var(--sh-xs);
}
.cp-avatar:hover { border-color: var(--sage); transform: scale(1.07); box-shadow: var(--sh-sm); }
.cp-avatar img { width: 100%; height: 100%; object-fit: cover; }

.dropdown-content {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  min-width: 215px; display: none; overflow: hidden;
  z-index: 600; animation: dropIn .18s var(--ease);
}
.profile-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; text-decoration: none;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: var(--fast); border-bottom: 1px solid var(--border);
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: var(--pale); color: var(--emerald); padding-left: 24px; }
.dropdown-content a i { color: var(--ink-4); width: 18px; transition: color var(--fast); }
.dropdown-content a:hover i { color: var(--sage); }

/* Post button */
.cp-sell {
  background: linear-gradient(135deg, var(--forest) 0%, var(--sage) 100%);
  color: white; height: 44px; padding: 0 22px;
  border-radius: var(--r-pill); text-decoration: none;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0; transition: var(--base);
  box-shadow: 0 3px 16px rgba(45,106,79,.32);
  white-space: nowrap; letter-spacing: -.01em;
  position: relative; overflow: hidden;
}
.cp-sell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transform: translateX(-100%); transition: transform .5s var(--ease);
}
.cp-sell:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,106,79,.42);
  color: white;
}
.cp-sell:hover::after { transform: translateX(100%); }
.cp-plus { font-size: 19px; font-weight: 900; line-height: 1; }

.login-btn {
  background: linear-gradient(135deg, var(--teal), #1a6f8a);
  color: white; height: 44px; padding: 0 24px;
  border-radius: var(--r-pill); text-decoration: none;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center;
  flex-shrink: 0; transition: var(--base);
  box-shadow: 0 3px 14px rgba(22,138,173,.28);
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,138,173,.40);
  color: white;
}

/* ================================================================
   CATEGORY NAVBAR — always visible, centered, clean
================================================================ */
.cp-mini-header {
  background: white;
  border-bottom: 1.5px solid var(--pale);
  position: sticky;
  top: 76px;
  z-index: 400;
  box-shadow: 0 3px 12px rgba(13,31,23,.05);
}

.cp-categories-navbar { overflow-x: auto; scrollbar-width: none; }
.cp-categories-navbar::-webkit-scrollbar { display: none; }

.cp-categories-list {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 10px 32px;
  margin: 0;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.category {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--base);
  background: transparent;
  border: 1.5px solid transparent;
}
.category a {
  display: flex; align-items: center;
  gap: 7px; padding: 8px 18px;
  border-radius: var(--r-pill);
  color: inherit;
  transition: var(--fast);
  text-decoration: none;
}
.category:hover {
  background: var(--pale-2);
  color: var(--forest);
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.category.active {
  background: linear-gradient(135deg, var(--forest), var(--sage));
  color: white !important;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(45,106,79,.35);
  transform: translateY(-1px);
}
.category.active a { color: white !important; }
.category.active .cat-count { background: rgba(255,255,255,.25); color: white; }

.cat-icon { font-size: 16px; line-height: 1; }
.cat-count {
  background: var(--pale);
  color: var(--sage);
  font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: var(--r-pill);
  transition: var(--fast);
  min-width: 20px; text-align: center;
}

/* ================================================================
   MAIN CONTENT
================================================================ */
#pageContent { padding: 44px 0 88px; min-height: 60vh; }

.cp-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px; font-weight: 700;
  color: var(--ink); margin-bottom: 30px;
  letter-spacing: -.025em;
  display: flex; align-items: center; gap: 14px;
}
.cp-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, var(--border-h), transparent);
}

/* ================================================================
   CARD GRID
================================================================ */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* Card */
.cp-card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid var(--pale);
  box-shadow: 0 2px 12px rgba(13,31,23,.10), 0 0 0 1px rgba(45,106,79,.08);
  transition: transform var(--slow), box-shadow var(--slow), border-color var(--slow);
  cursor: pointer;
  animation: fadeUp .45s var(--ease) both;
}
.cp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(13,31,23,.18), 0 0 0 2px rgba(64,145,108,.35);
  border-color: var(--mint);
}
.cp-card:nth-child(1)  { animation-delay:.03s }
.cp-card:nth-child(2)  { animation-delay:.07s }
.cp-card:nth-child(3)  { animation-delay:.11s }
.cp-card:nth-child(4)  { animation-delay:.15s }
.cp-card:nth-child(5)  { animation-delay:.19s }
.cp-card:nth-child(6)  { animation-delay:.23s }
.cp-card:nth-child(7)  { animation-delay:.27s }
.cp-card:nth-child(8)  { animation-delay:.31s }
.cp-card:nth-child(9)  { animation-delay:.35s }
.cp-card:nth-child(10) { animation-delay:.39s }
.cp-card:nth-child(11) { animation-delay:.43s }
.cp-card:nth-child(12) { animation-delay:.47s }

.cp-card-link { display: block; text-decoration: none; color: inherit; }

/* Thumbnail */
.cp-thumb {
  position: relative; width: 100%; height: 220px;
  overflow: hidden; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--pale-2) 0%, #e0f5e8 100%);
}
.cp-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.cp-card:hover .cp-thumb img { transform: scale(1.08); }
.cp-thumb-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--ink-4);
  font-size: 13px; font-weight: 600;
}
.cp-thumb-ph::before { content: '🖼'; font-size: 40px; opacity: .4; }

/* Card body */
.cp-info { padding: 18px 18px 20px; }

.cp-price.cp-barter {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--forest), var(--sage));
  color: white; font-size: 10px; font-weight: 800;
  padding: 4px 12px; border-radius: var(--r-pill);
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 11px;
  box-shadow: 0 2px 8px rgba(45,106,79,.25);
}
.cp-price.cp-barter::before { content: '⇄'; font-size: 11px; }

.cp-title {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  line-height: 1.45; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  min-height: 42px; margin-bottom: 14px;
  letter-spacing: -.01em; transition: color var(--fast);
}
.cp-card:hover .cp-title { color: var(--emerald); }

.cp-meta {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 11.5px; color: var(--ink-4);
  font-weight: 500; padding-top: 12px;
  border-top: 1px solid var(--border); gap: 6px;
}
.cp-meta span:first-child {
  display: flex; align-items: center; gap: 5px;
  flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.cp-meta span:first-child::before { content: '📍'; font-size: 11px; flex-shrink: 0; }
.cp-meta span:last-child { flex-shrink: 0; }

/* Empty state */
#noItemsText {
  grid-column: 1 / -1; text-align: center;
  padding: 100px 20px; color: var(--ink-4);
  font-size: 16px; font-weight: 500;
}

/* ================================================================
   FOOTER
================================================================ */
.cp-footer {
  background: linear-gradient(160deg, var(--forest) 0%, #102a1e 55%, #091a12 100%);
  color: white; padding: 68px 0 36px;
  border-top: 3px solid var(--sage);
  position: relative; overflow: hidden;
}
.cp-footer::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(64,145,108,.14) 0%, transparent 70%);
  pointer-events: none;
}
.cp-footer::after {
  content: ''; position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(22,138,173,.08) 0%, transparent 70%);
  pointer-events: none;
}
.cp-footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 52px; margin-bottom: 44px; position: relative; z-index: 1;
}
.cp-footer-col h4 {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--mint); margin-bottom: 20px;
}
.cp-footer-col p {
  color: rgba(255,255,255,.58); font-size: 13.5px; line-height: 1.9;
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px;
}
.cp-footer-col p i { color: var(--mint); width: 16px; margin-top: 4px; flex-shrink: 0; }
.cp-social { display: flex; flex-direction: column; }
.cp-social-links { display: flex; gap: 12px; margin-top: 6px; }
.cp-social-links a {
  width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center;
  background: rgba(64,145,108,.12);
  border: 1.5px solid rgba(64,145,108,.22);
  border-radius: 50%; color: var(--mint);
  font-size: 17px; text-decoration: none; transition: var(--base);
}
.cp-social-links a:hover {
  background: var(--sage); border-color: var(--sage); color: white;
  transform: translateY(-4px); box-shadow: 0 8px 22px rgba(64,145,108,.38);
}
.cp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 30px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  gap: 12px; position: relative; z-index: 1;
}
.cp-footer-bottom .cp-logo-img { height: 46px; opacity: .88; filter: brightness(1.2); }
.cp-footer-bottom p { color: rgba(255,255,255,.32); font-size: 12.5px; }

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESPONSIVE — TABLET ≤ 1100px
================================================================ */
@media (max-width: 1100px) {
  .cp-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
  .cp-loc-input { width: 130px; }
}

/* ================================================================
   RESPONSIVE — MOBILE ≤ 768px
================================================================ */
@media (max-width: 768px) {
  .cp-wrap { padding: 0 16px; }

  /* 2-row header */
  .cp-header .cp-wrap {
    flex-wrap: wrap; height: auto;
    padding-top: 10px; padding-bottom: 10px; gap: 10px;
  }
  .cp-logo { order: 1; }
  .cp-divider { display: none; }
  .cp-header-right, .login-btn { order: 2; margin-left: auto; }
  .cp-header-middle { order: 3; flex-basis: 100%; min-width: 100%; }
  .cp-loc { display: none; }
  .cp-lang { display: none; }

  .cp-mini-header { top: 0; }
  .cp-categories-list {
    justify-content: flex-start; flex-wrap: nowrap;
    overflow-x: auto; padding: 8px 16px;
  }

  .cp-logo-img { height: 46px; }
  .cp-sell { height: 40px; padding: 0 16px; font-size: 13px; }
  .cp-message { width: 40px; height: 40px; font-size: 16px; }
  .cp-avatar { width: 40px; height: 40px; }

  .cp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cp-thumb { height: 168px; }
  .cp-info { padding: 13px 13px 15px; }
  .cp-title { font-size: 13.5px; min-height: 39px; }
  .cp-section-title { font-size: 22px; margin-bottom: 20px; }

  .cp-footer-top { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .cp-footer-col p { justify-content: center; }
  .cp-social { align-items: center; }
  .cp-footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE ≤ 480px
================================================================ */
@media (max-width: 480px) {
  .cp-logo-img { height: 40px; }
  .cp-sell { padding: 0 13px; font-size: 12.5px; }
  .cp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cp-thumb { height: 148px; }
  .cp-info { padding: 11px 12px 13px; }
  .cp-title { font-size: 12.5px; min-height: 36px; }
  .cp-meta { font-size: 10.5px; }
  .cp-section-title { font-size: 19px; }
  #pageContent { padding: 26px 0 60px; }
}

.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }


/* Remove any gap after footer */
footer.cp-footer { display: block; }
body { overflow-x: hidden; }
html, body { height: 100%; }


/* ── Back to top button — fixed, never affects layout ── */
.cp-back-top {
  position: fixed !important;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--forest), var(--sage));
  color: white;
  border: none;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(45,106,79,.35);
  transition: var(--base);
  opacity: 0;
  pointer-events: none;
  z-index: 800;
  font-size: 17px;
  font-weight: 700;
}
.cp-back-top.visible { opacity: 1; pointer-events: auto; }
.cp-back-top:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(45,106,79,.48); }

/* Lang menu shown via JS direct style */
#langMenu[style*="block"] { animation: dropIn .18s var(--ease); }