/* ═══════════════════════════════════════════════════════════════
   TibetConnects — Community Platform
   Inspired by Dropbox Community · Tibetan cultural flavors
   Fonts: Fraunces (display) · DM Sans (body)
   Colors: Crimson #E63329 · Gold #C9972A · Deep #1B0A00
═══════════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:       #E63329;
  --red-d:     #C4251C;
  --red-s:     #FFF1F0;
  --gold:      #C9972A;
  --gold-d:    #A67820;
  --gold-s:    #FFFBEB;
  --deep:      #1B0A00;
  --navy:      #1A2744;
  --navy-s:    #EEF2FF;
  --slate:     #111827;
  --mid:       #374151;
  --muted:     #6B7280;
  --light:     #9CA3AF;
  --border:    #E5E7EB;
  --border-l:  #F3F4F6;
  --bg:        #F9FAFB;
  --white:     #FFFFFF;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --font-d:    'Fraunces', Georgia, serif;
  --font:      'DM Sans', system-ui, sans-serif;
  --max:       1160px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--slate); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-d); line-height: 1.2; }

.tc-skip { position: absolute; left: -9999px; background: var(--red); color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 4px; font-weight: 700; }
.tc-skip:focus { left: 12px; top: 12px; }

/* ═══ NAVIGATION ═══════════════════════════════════════════════ */
.tc-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.tc-nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 24px; height: 58px;
  display: flex; align-items: center; gap: 24px;
}

/* Logo */
.tc-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.tc-logo-icon { display: flex; align-items: center; }
.tc-logo-name { font-family: var(--font-d); font-size: 18px; font-weight: 600; color: var(--deep); letter-spacing: -.02em; }
.tc-logo-name strong { font-weight: 800; color: var(--red); }
.tc-logo-tib { font-size: 11px; color: var(--light); margin-left: 2px; }
.tc-logo-light .tc-logo-name { color: var(--white); }
.tc-logo-light .tc-logo-name strong { color: var(--gold); }
.tc-logo-light .tc-logo-tib { color: rgba(255,255,255,.45); }

/* Nav menu */
.tc-nav-menu-wrap { flex: 1; overflow: hidden; }
.tc-nav-menu { list-style: none; display: flex; align-items: center; gap: 2px; }
.tc-nav-item { position: relative; }
.tc-nav-link {
  display: block; padding: 6px 11px; font-size: 14px; font-weight: 500;
  color: var(--mid); border-radius: 7px; transition: all .14s; white-space: nowrap;
}
.tc-nav-link:hover, .current-menu-item > .tc-nav-link { color: var(--slate); background: var(--bg); }
.tc-nav-item .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); list-style: none; padding: 6px; z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .16s;
}
.tc-nav-item:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li a { display: block; padding: 8px 12px; font-size: 14px; color: var(--mid); border-radius: 6px; }
.sub-menu li a:hover { background: var(--bg); color: var(--slate); }

/* Nav right */
.tc-nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tc-nav-icon-btn { background: none; border: none; cursor: pointer; color: var(--muted); padding: 7px; border-radius: 7px; display: flex; align-items: center; transition: all .14s; }
.tc-nav-icon-btn:hover { color: var(--slate); background: var(--bg); }
.tc-nav-user { display: flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 20px; font-size: 14px; font-weight: 500; color: var(--mid); transition: background .14s; }
.tc-nav-user:hover { background: var(--bg); color: var(--slate); }
.tc-nav-user img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); }
.tc-nav-btn { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 7px; font-size: 14px; font-weight: 600; transition: all .14s; }
.tc-nav-btn-ghost { color: var(--mid); background: none; border: 1.5px solid var(--border); }
.tc-nav-btn-ghost:hover { border-color: var(--slate); color: var(--slate); }
.tc-nav-btn-primary { background: var(--red); color: #fff !important; }
.tc-nav-btn-primary:hover { background: var(--red-d); }

/* Hamburger */
.tc-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 7px; border-radius: 7px; }
.tc-hamburger span { display: block; width: 20px; height: 2px; background: var(--mid); border-radius: 2px; transition: all .22s; }
.tc-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.tc-hamburger.open span:nth-child(2) { opacity: 0; }
.tc-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Search dropdown */
.tc-search-drop { background: var(--white); border-top: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.tc-search-drop.tc-search-open { max-height: 70px; }
.tc-search-drop-inner { max-width: var(--max); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 12px; }
.tc-search-drop-inner .search-form { flex: 1; }
.tc-search-drop-inner .search-field { width: 100%; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); color: var(--slate); }
.tc-search-drop-inner .search-field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,42,.1); }
.tc-search-drop-inner .search-submit { display: none; }
.tc-search-close-btn { background: none; border: none; cursor: pointer; color: var(--muted); padding: 5px; display: flex; align-items: center; transition: color .14s; }
.tc-search-close-btn:hover { color: var(--slate); }

/* ═══ MOBILE DRAWER ════════════════════════════════════════════ */
.tc-drawer { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.tc-drawer.tc-open { pointer-events: auto; }
.tc-drawer-panel {
  position: absolute; top: 0; right: -100%; width: min(320px,100vw); height: 100vh;
  background: var(--white); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transition: right .28s cubic-bezier(.4,0,.2,1); pointer-events: auto;
}
.tc-drawer.tc-open .tc-drawer-panel { right: 0; }
.tc-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .28s; z-index: -1; }
.tc-drawer.tc-open .tc-drawer-backdrop { opacity: 1; pointer-events: auto; }
.tc-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.tc-drawer-x { background: none; border: none; cursor: pointer; color: var(--mid); padding: 4px; border-radius: 6px; display: flex; align-items: center; }
.tc-drawer-x:hover { background: var(--border-l); }
.tc-drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.tc-drawer-menu { list-style: none; }
.tc-drawer-menu li a { display: block; padding: 12px 0; font-size: 16px; font-weight: 600; color: var(--slate); border-bottom: 1px solid var(--border-l); transition: color .14s; }
.tc-drawer-menu li:last-child a { border: none; }
.tc-drawer-menu li a:hover { color: var(--red); }
.tc-drawer-auth { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.tc-drawer-link { display: block; padding: 11px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--mid); background: var(--bg); border: 1.5px solid var(--border); text-align: center; }
.tc-drawer-link:hover { color: var(--slate); border-color: var(--slate); }
.tc-drawer-link-muted { color: var(--light); border-style: dashed; }
.tc-drawer-cta { display: block; padding: 11px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 700; color: #fff !important; background: var(--red); text-align: center; }
.tc-drawer-cta:hover { background: var(--red-d); }

/* ═══ HERO ══════════════════════════════════════════════════════ */
.cp-hero {
  background: linear-gradient(135deg, var(--deep) 0%, #3D1200 35%, #1A2744 80%, #0D1829 100%);
  padding: 72px 24px 60px;
  position: relative; overflow: hidden;
}
.cp-hero-pattern { position: absolute; inset: 0; pointer-events: none; }
.cp-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.cp-hero-text { max-width: 660px; margin-bottom: 36px; }
.cp-hero-eyebrow { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .08em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.cp-hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }
.cp-hero-h1 { font-size: clamp(32px,5vw,54px); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.cp-hero-sub { font-size: 17px; color: rgba(255,255,255,.6); line-height: 1.65; margin-bottom: 28px; max-width: 540px; }
.cp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cp-btn-hero-primary {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 8px;
  background: var(--gold); color: var(--deep) !important;
  font-size: 15px; font-weight: 800; transition: all .16s;
  box-shadow: 0 2px 12px rgba(201,151,42,.35);
}
.cp-btn-hero-primary:hover { background: var(--gold-d); transform: translateY(-1px); }
.cp-btn-hero-ghost { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 8px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85) !important; font-size: 15px; font-weight: 600; border: 1.5px solid rgba(255,255,255,.18); transition: all .16s; }
.cp-btn-hero-ghost:hover { background: rgba(255,255,255,.15); }

/* Stats */
.cp-stats { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); background: rgba(255,255,255,.06); overflow: hidden; width: fit-content; }
.cp-stat { padding: 14px 28px; border-right: 1px solid rgba(255,255,255,.1); text-align: center; }
.cp-stat:last-child { border-right: none; }
.cp-stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--gold); font-family: var(--font-d); letter-spacing: -.02em; }
.cp-stat span { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 500; }

/* ═══ CATEGORY CARDS ════════════════════════════════════════════ */
.cp-cats-section { background: var(--white); border-bottom: 1px solid var(--border); padding: 32px 24px; }
.cp-cats-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 12px; }
.cp-cat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); background: var(--white);
  transition: all .18s; position: relative; overflow: hidden;
}
.cp-cat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cat-color, var(--red)); border-radius: 2px 0 0 2px; }
.cp-cat-card:hover { border-color: var(--cat-color, var(--red)); box-shadow: var(--shadow); transform: translateY(-2px); }
.cp-cat-icon { font-size: 22px; flex-shrink: 0; width: 42px; height: 42px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.cp-cat-body { flex: 1; min-width: 0; }
.cp-cat-title { font-size: 14px; font-weight: 700; color: var(--slate); margin-bottom: 2px; }
.cp-cat-desc { font-size: 12px; color: var(--light); line-height: 1.4; }
.cp-cat-arrow { color: var(--light); flex-shrink: 0; transition: transform .16s; }
.cp-cat-card:hover .cp-cat-arrow { transform: translateX(3px); color: var(--cat-color, var(--red)); }

/* ═══ MAIN BODY ══════════════════════════════════════════════════ */
.cp-body { padding: 28px 24px 72px; }
.cp-container { max-width: var(--max); margin: 0 auto; }

/* 2-column layout */
.cp-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cp-main { display: flex; flex-direction: column; gap: 20px; }

/* ═══ PANELS ═════════════════════════════════════════════════════ */
.cp-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.cp-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 1px solid var(--border-l); }
.cp-panel-title { font-size: 16px; font-weight: 700; color: var(--slate); }
.cp-panel-link { font-size: 13px; font-weight: 600; color: var(--gold); transition: color .14s; }
.cp-panel-link:hover { color: var(--gold-d); }
.cp-panel-footer { padding: 14px 22px; border-top: 1px solid var(--border-l); background: var(--bg); }
.cp-btn-outline { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 7px; font-size: 13px; font-weight: 700; border: 1.5px solid var(--border); color: var(--mid); transition: all .15s; }
.cp-btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.cp-btn-sm-red { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--red-s); color: var(--red); transition: all .14s; }
.cp-btn-sm-red:hover { background: var(--red); color: #fff; }
.cp-empty { padding: 24px 22px; font-size: 14px; color: var(--light); }
.cp-empty a { color: var(--gold); font-weight: 600; }
.cp-meta-dot { color: var(--border); font-size: 16px; line-height: 1; }

/* Discussions */
.cp-disc-list { display: flex; flex-direction: column; }
.cp-disc-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border-l); transition: background .13s; }
.cp-disc-row:last-child { border-bottom: none; }
.cp-disc-row:hover { background: var(--bg); }
.cp-disc-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,var(--deep),#3D1200); color: var(--gold); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-d); }
.cp-disc-body { flex: 1; min-width: 0; }
.cp-disc-title { font-size: 14px; font-weight: 600; color: var(--slate); line-height: 1.4; margin-bottom: 5px; }
.cp-disc-row:hover .cp-disc-title { color: var(--red); }
.cp-disc-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--light); flex-wrap: wrap; }
.cp-disc-cat-tag { display: inline-block; padding: 2px 8px; border-radius: 20px; background: var(--gold-s); color: var(--gold-d); font-size: 11px; font-weight: 700; border: 1px solid #FDE68A; }
.cp-disc-counts { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cp-disc-counts span { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--light); }

/* News */
.cp-news-list { display: flex; flex-direction: column; }
.cp-news-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--border-l); transition: background .13s; }
.cp-news-row:last-child { border-bottom: none; }
.cp-news-row:hover { background: var(--bg); }
.cp-news-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 6px; }
.cp-news-body { flex: 1; min-width: 0; }
.cp-news-title { font-size: 14px; font-weight: 600; color: var(--slate); line-height: 1.4; margin-bottom: 4px; }
.cp-news-row:hover .cp-news-title { color: var(--red); }
.cp-news-meta { font-size: 12px; color: var(--light); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.cp-news-source { font-size: 11px; font-weight: 700; color: var(--muted); }

/* Jobs */
.cp-job-list { display: flex; flex-direction: column; }
.cp-job-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border-l); transition: background .13s; }
.cp-job-row:last-child { border-bottom: none; }
.cp-job-row:hover { background: var(--bg); }
.cp-job-logo { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg,var(--deep) 0%,#2d1010 100%); color: var(--gold); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-d); }
.cp-job-body { flex: 1; min-width: 0; }
.cp-job-title { font-size: 14px; font-weight: 700; color: var(--slate); margin-bottom: 3px; }
.cp-job-row:hover .cp-job-title { color: var(--red); }
.cp-job-meta { font-size: 12px; color: var(--light); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.cp-job-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.cp-job-age { font-size: 12px; color: var(--light); white-space: nowrap; }
.cp-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.cp-tag-blue { background: var(--navy-s); color: var(--navy); border-color: #BFDBFE; }

/* ═══ SIDEBAR WIDGETS ════════════════════════════════════════════ */
.cp-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 74px; }
.cp-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.cp-widget-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--border-l); }
.cp-widget-head h3 { font-size: 14px; font-weight: 700; color: var(--slate); }
.cp-widget-head a { font-size: 12px; font-weight: 600; color: var(--gold); }
.cp-widget-head a:hover { color: var(--gold-d); }
.cp-widget-empty { padding: 16px 18px; font-size: 13px; color: var(--light); }
.cp-widget-action { display: block; text-align: center; padding: 11px 18px; font-size: 13px; font-weight: 700; color: var(--mid); border-top: 1px solid var(--border-l); background: var(--bg); transition: background .14s; }
.cp-widget-action:hover { background: var(--border-l); color: var(--slate); }

/* Events */
.cp-ev-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-l); transition: background .13s; }
.cp-ev-item:last-of-type { border-bottom: none; }
.cp-ev-item:hover { background: var(--bg); }
.cp-ev-tile { width: 44px; text-align: center; background: var(--red); border-radius: 8px; padding: 5px 0; flex-shrink: 0; }
.cp-ev-tile span { display: block; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.cp-ev-tile strong { display: block; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.1; font-family: var(--font-d); letter-spacing: -.02em; }
.cp-ev-body { flex: 1; min-width: 0; }
.cp-ev-title { font-size: 13px; font-weight: 700; color: var(--slate); line-height: 1.35; margin-bottom: 2px; }
.cp-ev-item:hover .cp-ev-title { color: var(--red); }
.cp-ev-venue { font-size: 11px; color: var(--light); }

/* Businesses */
.cp-biz-list { display: flex; flex-direction: column; }
.cp-biz-item { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--border-l); transition: background .13s; }
.cp-biz-item:last-child { border-bottom: none; }
.cp-biz-item:hover { background: var(--bg); }
.cp-biz-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cp-biz-init { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg,var(--deep),#3D1200); color: var(--gold); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-d); }
.cp-biz-name { font-size: 13px; font-weight: 700; color: var(--slate); line-height: 1.3; }
.cp-biz-item:hover .cp-biz-name { color: var(--red); }
.cp-biz-meta { font-size: 11px; color: var(--light); margin-top: 2px; }
.cp-tib-dot { font-size: 11px; }

/* CTA widget */
.cp-widget-cta { border: none; background: linear-gradient(135deg,var(--deep) 0%,#3D1200 55%,#1A2744 100%); position: relative; overflow: hidden; }
.cp-cta-pattern { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(201,151,42,0.08)' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='15'/%3E%3Ccircle cx='20' cy='20' r='10'/%3E%3Cline x1='5' y1='20' x2='35' y2='20'/%3E%3Cline x1='20' y1='5' x2='20' y2='35'/%3E%3C/g%3E%3C/svg%3E") repeat; pointer-events: none; }
.cp-cta-content { position: relative; z-index: 1; padding: 22px 18px; text-align: center; }
.cp-cta-icon { font-size: 28px; margin-bottom: 10px; }
.cp-cta-content h4 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cp-cta-content p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5; margin-bottom: 16px; }
.cp-btn-cta { display: block; padding: 11px 18px; border-radius: 8px; background: var(--gold); color: var(--deep) !important; font-size: 14px; font-weight: 800; transition: background .16s; margin-bottom: 10px; }
.cp-btn-cta:hover { background: var(--gold-d); }
.cp-cta-signin { display: block; font-size: 12px; color: rgba(255,255,255,.45); }
.cp-cta-signin:hover { color: rgba(255,255,255,.7); }

/* ═══ FOOTER ═════════════════════════════════════════════════════ */
.tc-footer { background: var(--deep); color: rgba(255,255,255,.7); }
.tc-footer-top { max-width: var(--max); margin: 0 auto; padding: 56px 24px 48px; display: grid; grid-template-columns: 280px 1fr; gap: 56px; }
.tc-footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; margin-top: 14px; max-width: 240px; }
.tc-footer-tib { font-size: 12px; color: var(--gold); margin-top: 10px !important; }
.tc-footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.tc-footer-col h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.35); margin-bottom: 14px; font-family: var(--font); }
.tc-footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 9px; transition: color .14s; }
.tc-footer-col a:hover { color: var(--gold); }
.tc-footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 24px; max-width: var(--max); margin: 0 auto; font-size: 13px; color: rgba(255,255,255,.3); }

/* ═══ INNER PAGE SYSTEM ═══════════════════════════════════════════ */
.tc-main { min-height: 60vh; }
.tc-platform-content { max-width: var(--max); margin: 0 auto; padding: 32px 24px 80px; }

/* Notices */
.tcp-notice { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.tcp-notice-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.tcp-notice-error   { background: var(--red-s); color: var(--red); border: 1px solid #FECACA; }

/* Rate limit notices */
.tcp-rate-notice { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; font-size: 13px; color: var(--mid); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tcp-rate-notice.tcp-rate-warn    { background: var(--gold-s); border-color: #FDE68A; color: var(--gold-d); }
.tcp-rate-notice.tcp-rate-block   { background: var(--red-s); border-color: #FECACA; color: var(--red); font-weight: 700; }
.tcp-rate-notice.tcp-rate-trusted { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.tcp-trusted-progress { font-size: 12px; color: var(--light); }

/* Platform section headers */
.tcp-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.tcp-section-title-wrap { display: flex; align-items: center; gap: 12px; }
.tcp-section-icon { font-size: 22px; }
.tcp-section-title { font-size: 20px; font-weight: 700; color: var(--slate); margin: 0; }
.tcp-section-tibetan { font-size: 12px; color: var(--light); }
.tcp-view-all { font-size: 13px; font-weight: 700; color: var(--gold); border: 1.5px solid var(--gold); padding: 6px 14px; border-radius: 7px; transition: all .15s; }
.tcp-view-all:hover { background: var(--gold); color: #fff !important; }

/* Cards */
.tcp-card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); }
.tcp-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s; }
.tcp-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tcp-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.tcp-card-body { padding: 15px 17px 17px; }
.tcp-card-title { font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 5px; }
.tcp-card-title a { color: var(--slate); }
.tcp-card-title a:hover { color: var(--red); }
.tcp-card-meta { font-size: 13px; color: var(--light); margin-bottom: 5px; }
.tcp-card-excerpt { font-size: 12px; color: var(--muted); line-height: 1.5; }
.tcp-card-actions { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }

/* Badges */
.tcp-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.tcp-badge-mode    { background: var(--gold-s); color: var(--gold-d); border-color: #FDE68A; }
.tcp-badge-free    { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.tcp-badge-tibetan { background: var(--gold-s); color: var(--gold-d); border-color: #FDE68A; }

/* Filter pills */
.tcp-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tcp-pill { padding: 5px 14px; border-radius: 20px; border: 1.5px solid var(--border); font-size: 13px; color: var(--mid); background: var(--white); transition: all .14s; }
.tcp-pill:hover, .tcp-pill.tcp-active { background: var(--gold); border-color: var(--gold); color: var(--deep) !important; font-weight: 700; }

/* Buttons */
.tcp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 700; font-family: var(--font); transition: all .15s; cursor: pointer; border: 1.5px solid transparent; }
.tcp-btn-primary { background: var(--red); color: #fff !important; border-color: var(--red); }
.tcp-btn-primary:hover { background: var(--red-d); }
.tcp-btn-sm { padding: 6px 13px; font-size: 13px; }
.tcp-btn-outline { background: transparent; color: var(--gold) !important; border-color: var(--gold); }
.tcp-btn-outline:hover { background: var(--gold-s); }
.tcp-post-btn { margin-bottom: 16px; }

/* Submit tabs */
.tcp-submit-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.tcp-submit-tab { padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .14s; }
.tcp-submit-tab:hover { color: var(--slate); }
.tcp-submit-tab.tcp-tab-active { color: var(--gold-d); border-bottom-color: var(--gold); }
.tcp-submit-wrap { max-width: 640px; }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], select, textarea, .tc-input, .tc-select, .tc-textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); color: var(--slate); background: var(--white); transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
input:focus, select:focus, textarea:focus, .tc-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,42,.1); }
textarea { resize: vertical; min-height: 100px; }
label, .tcp-form-group label, .hp-lbl { display: block; font-size: 13px; font-weight: 700; color: var(--mid); margin-bottom: 6px; }
.tcp-form-group { margin-bottom: 18px; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; padding: 10px 14px; border-radius: var(--radius); border: 1.5px solid var(--border); font-size: 14px; font-family: var(--font); }
.search-field:focus { outline: none; border-color: var(--gold); }
.search-submit { padding: 10px 20px; background: var(--gold); color: var(--deep); border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer; font-family: var(--font); }

/* Pagination */
.tcp-pagination { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 24px; }
.tcp-pagination a, .tcp-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1.5px solid var(--border); color: var(--mid); transition: all .14s; }
.tcp-pagination a:hover, .tcp-pagination .current { background: var(--gold); border-color: var(--gold); color: var(--deep); }

/* Empty state */
.tcp-empty { text-align: center; padding: 48px 20px; }
.tcp-empty p { color: var(--light); font-size: 14px; }

/* ═══ RESPONSIVE ═════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cp-cats-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
}
@media (max-width: 860px) {
  .tc-nav-menu-wrap { display: none; }
  .tc-hamburger { display: flex; }
  .tc-nav-btn-ghost { display: none; }
  .cp-layout { grid-template-columns: 1fr; }
  .cp-sidebar { position: static; }
  .tc-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .tc-footer-links { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px) {
  .cp-hero { padding: 48px 16px 40px; }
  .cp-hero-h1 { font-size: 32px; }
  .cp-stats { gap: 0; width: 100%; }
  .cp-stat { flex: 1; padding: 12px 10px; }
  .cp-body { padding: 20px 16px 48px; }
  .cp-cats-grid { grid-template-columns: 1fr; gap: 8px; }
  .tc-footer-links { grid-template-columns: 1fr 1fr; }
  .cp-disc-counts, .cp-job-right { display: none; }
  .tc-platform-content { padding: 20px 16px 60px; }
}
@media (max-width: 480px) {
  .tc-footer-links { grid-template-columns: 1fr; }
  .cp-stat strong { font-size: 18px; }
}
