/* ═══════════════════════════════════════════════════════════
   TibetConnects Theme CSS — Navy & Gold Edition
   Palette: Deep Navy · Midnight Blue · Gold · Ice Blue
   Typography: Source Serif 4 (display) + DM Sans (UI)
   Tibetan script: Noto Serif Tibetan
═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  /* ── Design tokens from reference ─────────────────────── */
  --tc-bg:           #F7F5F0;
  --tc-bg-card:      #FFFFFF;
  --tc-bg-card-2:    #F0EDE8;
  --tc-bg-subtle:    rgba(0,0,0,.03);
  --tc-bg-input:     rgba(0,0,0,.04);

  --tc-white:        #ffffff;
  --tc-text:         #1A1A2E;
  --tc-text-muted:   #6B7280;
  --tc-text-faint:   #9CA3AF;
  --tc-text-hint:    #B0B8C4;

  --tc-border:       #E2DDD8;
  --tc-border-light: #EBE8E3;
  --tc-border-hover: #C9972A;

  --tc-gold:         #c9972a;
  --tc-gold-bright:  #e0a830;
  --tc-gold-deep:    #a07020;
  --tc-gold-bg:      rgba(201,151,42,.12);
  --tc-gold-border:  rgba(201,151,42,.25);

  /* Legacy aliases — keep plugins working */
  --tc-navy:         #1A3A5C;
  --tc-navy-mid:     #2A5278;
  --tc-navy-light:   #3A6A9A;
  --tc-navy-soft:    #EEF4FA;
  --tc-crimson:      #c9972a;
  --tc-saffron:      #c9972a;
  --tc-saffron-soft: rgba(201,151,42,.12);
  --tc-ink:          #1A1A2E;
  --tc-slate:        #2D3748;
  --tc-mid:          #4A5568;
  --tc-muted:        rgba(255,255,255,.35);
  --tc-border-light: rgba(255,255,255,.06);
  --tc-bg-warm:      #1a1a1a;

  /* Semantic */
  --tc-green:        #22c55e;
  --tc-green-soft:   rgba(34,197,94,.12);
  --tc-blue:         #38a0dc;
  --tc-blue-soft:    rgba(56,160,220,.12);
  --tc-error:        #ef4444;
  --tc-error-soft:   rgba(239,68,68,.12);
  --tc-red:          #c9972a;
  --tc-red-soft:     rgba(201,151,42,.12);

  /* Typography — matching reference exactly */
  --font-display:  'Fraunces', Georgia, serif;
  --font-ui:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-tibetan:  'Noto Serif Tibetan', 'Microsoft Himalaya', serif;

  /* Layout */
  --tc-max-w:     1280px;
  --tc-max-w-sm:  900px;
  --tc-gap:       24px;
  --tc-radius:    14px;
  --tc-radius-sm: 8px;
  --tc-radius-lg: 20px;

  /* Shadows */
  --tc-shadow:    0 1px 12px rgba(0,0,0,.4);
  --tc-shadow-md: 0 4px 24px rgba(0,0,0,.5);
  --tc-shadow-lg: 0 12px 48px rgba(0,0,0,.6);

  --tc-ease: cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  color: #1A1A2E;
  background: #F7F5F0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tc-navy-mid); text-decoration: none; transition: color .2s var(--tc-ease); }
a:hover { color: #1A3A5C; }
a:focus-visible { outline: 2px solid var(--tc-gold); outline-offset: 3px; border-radius: 2px; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-ui); border: none; background: transparent; }
input, textarea, select { font-family: var(--font-ui); }

/* ── Skip link ───────────────────────────────────────────── */
.tc-skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: #1A3A5C; color: #fff;
  padding: 8px 20px; border-radius: 0 0 8px 8px; z-index: 9999;
  font-weight: 600; transition: top .2s;
}
.tc-skip-link:focus { top: 0; color: #fff; }

/* ── Language */
.tc-en, .tc-bo { display: inline; }
body.lang-bo .tc-en { display: none; }
body:not(.lang-bo) .tc-bo { display: none; }

/* ═══════════════════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════════════════ */
.tc-topbar {
  background: #1A3A5C;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tc-topbar-inner {
  max-width: var(--tc-max-w); margin: 0 auto;
  padding: 6px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tc-topbar-tibet { font-family: var(--font-tibetan); font-size: 12px; opacity: .5; }
.tc-topbar-right { display: flex; align-items: center; gap: 8px; }
.tc-topbar-sep { opacity: .2; }
.tc-lang-btn {
  background: none; border: none; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.35); cursor: pointer; padding: 2px 6px;
  border-radius: 4px; letter-spacing: .04em; transition: color .15s;
}
.tc-lang-btn:hover { color: rgba(255,255,255,.7); }
.tc-lang-btn.tc-lang-active { color: var(--tc-gold); }
.tc-lang-tib { font-family: var(--font-tibetan); }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.tc-header {
  position: sticky; top: 0; z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E2DDD8;
}
.tc-header-inner {
  max-width: var(--tc-max-w); margin: 0 auto;
  padding: 0 32px; height: 56px;
  display: flex; align-items: center; gap: 28px;
}
.tc-logo { flex-shrink: 0; }
.tc-logo-text { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tc-logo-icon { font-size: 22px; line-height: 1; }
.tc-logo-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  line-height: 1; color: #1A1A2E; letter-spacing: -.01em;
}
.tc-logo-tibet { color: #1A3A5C; }
.tc-logo-connects { color: #C9972A; }
.tc-logo-tib { font-family: var(--font-tibetan); font-size: 11px; color: #9CA3AF; display: block; margin-top: 1px; }

.tc-nav { flex: 1; }
.tc-nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tc-nav-item { position: relative; }
.tc-nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: #4A5568;
  transition: all .15s; white-space: nowrap; text-decoration: none;
}
.tc-nav-link:hover { color: #1A1A2E; background: #F0EDE8; }
.tc-nav-item.tc-active > .tc-nav-link { color: var(--tc-gold); }
.tc-dropdown-arrow { font-size: 10px; transition: transform .2s; }
.tc-has-dropdown:hover .tc-dropdown-arrow { transform: rotate(180deg); }
.tc-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 200px; background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px); transition: all .2s var(--tc-ease);
  list-style: none; padding: 6px;
}
.tc-has-dropdown:hover .tc-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.tc-nav-sub-link { display: block; padding: 8px 12px; border-radius: 7px; font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; }
.tc-nav-sub-link:hover { background: rgba(255,255,255,.06); color: var(--tc-white); }

.tc-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tc-search-toggle {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #6B7280; transition: all .2s;
}
.tc-search-toggle:hover { background: #F0EDE8; color: #1A1A2E; }

.tc-btn-signin {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 8px;
  background: #F0EDE8; border: none;
  font-size: 13px; font-weight: 600; color: #1A3A5C !important;
  text-decoration: none; transition: background .15s;
}
.tc-btn-signin:hover { background: #E2DDD8; color: #1A3A5C !important; }

.tc-btn-join-free {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 8px;
  background: var(--tc-gold); color: #0f0f0f !important;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
.tc-btn-join-free:hover { background: var(--tc-gold-bright); }

.tc-header-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 20px;
  background: #F0EDE8; border: 1px solid #E2DDD8;
  color: #1A1A2E !important; text-decoration: none;
  font-size: 13px; font-weight: 500; transition: background .2s;
}
.tc-header-user:hover { background: #E2DDD8; }
.tc-header-user .tc-avatar-img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.tc-header-username { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tc-btn-post {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--tc-gold); color: #0f0f0f !important;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
.tc-btn-post:hover { background: var(--tc-gold-bright); }

.tc-btn-submit { display: none !important; }
.tc-btn-join   { display: none !important; }

.tc-header-search { border-top: 1px solid #E2DDD8; background: #FFFFFF; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .3s var(--tc-ease), opacity .3s var(--tc-ease); }
.tc-header-search.tc-search-open { max-height: 72px; opacity: 1; }
.tc-header-search-inner { max-width: var(--tc-max-w); margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 12px; }
.tc-header-search-inner input { background: #F7F5F0; border: 1px solid #E2DDD8; color: #1A1A2E; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-family: var(--font-ui); width: 100%; }
.tc-header-search-inner input::placeholder { color: #B0B8C4; }
.tc-search-close { color: #6B7280; font-size: 16px; background: none; border: none; cursor: pointer; padding: 4px 8px; }
.tc-search-close:hover { color: #1A1A2E; }

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════════════ */
.tc-mobile-toggle { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: #F0EDE8; }
.tc-mobile-toggle span { width: 18px; height: 1.5px; background: #4A5568; border-radius: 2px; display: block; }
.tc-mobile-menu { position: fixed; top: 0; right: -100%; width: min(320px,100vw); height: 100vh; background: #FFFFFF; z-index: 2000; display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,.8); transition: right .3s var(--tc-ease); overflow-y: auto; }
.tc-mobile-menu.tc-open { right: 0; }
.tc-mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tc-mobile-logo { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--tc-white); }
.tc-mobile-close { background: rgba(255,255,255,.08); border: none; color: rgba(255,255,255,.6); width: 32px; height: 32px; border-radius: 8px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tc-mobile-menu-body { padding: 12px; flex: 1; }
.tc-mobile-nav-list { list-style: none; }
.tc-mobile-nav-list .tc-nav-link { display: block; padding: 12px 14px; color: #2D3748; font-size: 15px; font-weight: 500; border-radius: 8px; }
.tc-mobile-nav-list .tc-nav-link:hover { background: #F0EDE8; color: #1A1A2E; }
.tc-mobile-auth { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
.tc-mobile-auth-btn { display: block; text-align: center; padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; background: #F0EDE8; color: #1A1A2E !important; }
.tc-mobile-auth-join { background: var(--tc-gold) !important; color: #0f0f0f !important; }
.tc-mobile-auth-out { background: rgba(239,68,68,.12); color: rgba(255,100,100,.9) !important; }
.tc-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 1999; display: none; }
.tc-mobile-overlay.tc-visible { display: block; }

/* ═══════════════════════════════════════════════════════════
   HERO — Full-width, photo background, magazine style
═══════════════════════════════════════════════════════════ */
.tc-hero {
  position: relative;
  min-height: 580px;
  background: linear-gradient(135deg, #0D1829 0%, #1A2F55 50%, #0D2040 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle depth layers */
.tc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 75% 35%, rgba(26,47,85,.9) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(201,151,42,.05) 0%, transparent 55%);
  pointer-events: none;
}

.tc-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.tc-hero-pattern { display: none; }
.tc-hero-gradient {
  position: absolute; inset: 0;
  /* Full coverage gradient — no photo, so cover fully */
  background: transparent;
}

/* Gold rule line at bottom of hero */
.tc-hero::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 60%; height: 3px;
  background: linear-gradient(90deg, var(--tc-gold), transparent);
}

.tc-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--tc-max-w); margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* Content column */
.tc-hero-content {}

.tc-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-tibetan);
  font-size: 14px;
  color: var(--tc-gold);
  letter-spacing: .04em;
  margin-bottom: 16px;
  border-left: 3px solid var(--tc-gold);
  padding-left: 12px;
}

.tc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.tc-hero-tibet    { color: var(--tc-gold); display: block; }
.tc-hero-connects { color: var(--tc-white); display: block; }

.tc-hero-tagline {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.72);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
}

.tc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.tc-hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--tc-radius-sm);
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s var(--tc-ease);
  border: 2px solid transparent;
}
.tc-hero-btn-primary {
  background: var(--tc-gold); color: var(--tc-navy) !important;
  border-color: var(--tc-gold);
}
.tc-hero-btn-primary:hover { background: var(--tc-gold-bright); border-color: var(--tc-gold-bright); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,151,42,.4); }
.tc-hero-btn-ghost {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9) !important;
  border-color: rgba(255,255,255,.3); backdrop-filter: blur(4px);
}
.tc-hero-btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); transform: translateY(-1px); }

/* Stats */
.tc-hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tc-hero-stat { text-align: left; }
.tc-hero-stat strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--tc-gold); line-height: 1; letter-spacing: -.02em; }
.tc-hero-stat span { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; display: block; }
.tc-hero-stat-sep { width: 1px; height: 32px; background: rgba(255,255,255,.15); flex-shrink: 0; }

/* Nav cards — right column, magazine section grid */
.tc-hero-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: center;
}
.tc-hero-nav-card {
  display: flex; flex-direction: column;
  padding: 18px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--tc-radius);
  text-decoration: none;
  transition: all .25s var(--tc-ease);
  backdrop-filter: blur(8px);
}
.tc-hero-nav-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(201,151,42,.5);
  transform: translateY(-2px);
}
.tc-hero-nav-icon { font-size: 20px; line-height: 1; margin-bottom: 8px; }
.tc-hero-nav-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); line-height: 1.2; margin-bottom: 4px; }
.tc-hero-nav-desc { font-size: 11px; color: rgba(255,255,255,.45); line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE CONTENT — magazine editorial
═══════════════════════════════════════════════════════════ */
.tc-home-content { padding: 0; background: var(--tc-bg); }
.tc-home-content-inner {
  max-width: var(--tc-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Widget grid: the 6-card homepage section grid ── */
.tcp-widget-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  padding: 40px 0 !important;
  max-width: var(--tc-max-w) !important;
  margin: 0 auto !important;
}

/* Card shell */
.tcp-widget-card {
  background: var(--tc-white) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: var(--tc-shadow) !important;
  transition: box-shadow .25s var(--tc-ease), transform .25s var(--tc-ease) !important;
}
.tcp-widget-card:hover {
  box-shadow: var(--tc-shadow-md) !important;
  transform: translateY(-3px) !important;
}

/* Card header row — replace red underline with gold */
.tcp-widget-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 18px !important;
  border-bottom: 2px solid var(--tc-gold) !important;
  background: var(--tc-white) !important;
}
.tcp-widget-icon { font-size: 22px !important; }
.tcp-widget-title {
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--tc-navy) !important;
  margin: 0 !important;
  letter-spacing: -.01em !important;
}
.tcp-widget-tib {
  font-family: var(--font-tibetan) !important;
  font-size: 11px !important;
  color: var(--tc-muted) !important;
  margin: 2px 0 0 !important;
}

/* Card body — items list */
.tcp-widget-body {
  flex: 1 !important;
  padding: 8px 18px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: 80px !important;
}
.tcp-widget-item {
  font-size: 13px !important;
  color: var(--tc-mid) !important;
  line-height: 1.45 !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--tc-border-light) !important;
  display: block !important;
  text-decoration: none !important;
  transition: color .2s !important;
}
.tcp-widget-item:last-child { border-bottom: none !important; }
.tcp-widget-item:hover { color: var(--tc-navy) !important; text-decoration: none !important; }
.tcp-widget-empty {
  font-size: 13px !important;
  color: var(--tc-muted) !important;
  font-style: italic !important;
  padding: 12px 0 !important;
  margin: 0 !important;
}

/* Card footer link */
.tcp-widget-footer {
  display: block !important;
  padding: 11px 18px !important;
  border-top: 1px solid var(--tc-border) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--tc-navy) !important;
  text-decoration: none !important;
  text-align: center !important;
  background: var(--tc-bg) !important;
  transition: background .2s, color .2s !important;
}
.tcp-widget-footer:hover {
  background: var(--tc-navy) !important;
  color: var(--tc-white) !important;
}

/* Responsive widget grid */
@media (max-width: 900px) {
  .tcp-widget-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 560px) {
  .tcp-widget-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════════════════════ */
.tc-cta-strip {
  background: #1A3A5C;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.tc-cta-strip::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--tc-gold), var(--tc-gold-bright), transparent);
}
.tc-cta-strip-inner {
  max-width: var(--tc-max-w-sm); margin: 0 auto;
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap; justify-content: space-between;
}
.tc-cta-text { flex: 1; min-width: 280px; }
.tc-cta-title { font-family: var(--font-display); font-size: clamp(22px,3vw,34px); font-weight: 600; color: var(--tc-white); line-height: 1.2; margin-bottom: 8px; letter-spacing: -.01em; }
.tc-cta-desc { color: rgba(255,255,255,.65); font-size: 16px; }
.tc-cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.tc-cta-btn-primary { display: block; text-align: center; background: var(--tc-gold); color: var(--tc-navy) !important; padding: 14px 32px; border-radius: var(--tc-radius-sm); font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s; white-space: nowrap; }
.tc-cta-btn-primary:hover { background: var(--tc-gold-bright); }
.tc-cta-btn-ghost { display: block; text-align: center; color: rgba(255,255,255,.65) !important; font-size: 13px; text-decoration: none; transition: color .2s; }
.tc-cta-btn-ghost:hover { color: var(--tc-white) !important; }

/* ═══════════════════════════════════════════════════════════
   PAGE LAYOUTS
═══════════════════════════════════════════════════════════ */
.tc-main {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tc-page-fullwidth .tc-platform-content { max-width: 100%; }

.tc-page-sidebar {
  max-width: var(--tc-max-w); margin: 0 auto;
  padding: 40px 32px;
  display: grid; grid-template-columns: 1fr 280px;
  grid-template-rows: auto 1fr; gap: 32px;
}
.tc-page-header { grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 2px solid var(--tc-border); }
.tc-page-header-inner { max-width: var(--tc-max-w); }
.tc-page-title { font-family: var(--font-display); font-size: clamp(28px,4vw,40px); font-weight: 600; color: #1A3A5C; margin-top: 8px; letter-spacing: -.01em; }
.tc-breadcrumbs { font-size: 13px; color: #6B7280; margin-bottom: 6px; }
.tc-breadcrumbs a { color: #6B7280; }
.tc-breadcrumbs a:hover { color: #1A3A5C; }
.tc-page-content-area { min-width: 0; }
.tc-page-article { max-width: 100%; }
.tc-page-body { font-size: 16px; line-height: 1.75; color: #1A1A2E; }
.tc-page-body h2, .tc-page-body h3 { font-family: var(--font-display); margin: 28px 0 12px; color: #1A3A5C; }
.tc-page-body p { margin-bottom: 16px; }
.tc-page-body a { color: var(--tc-navy-mid); text-decoration: underline; }
.tc-page-featured { margin-bottom: 28px; border-radius: var(--tc-radius); overflow: hidden; }
.tc-page-featured-img { width: 100%; border-radius: var(--tc-radius); }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.tc-sidebar { min-width: 0; }

.tc-sidebar-cta {
  background: linear-gradient(145deg, var(--tc-navy) 0%, var(--tc-navy-mid) 100%);
  border-radius: var(--tc-radius-lg); padding: 28px 24px; text-align: center; color: var(--tc-white);
  margin-bottom: 24px;
}
.tc-sidebar-cta-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.tc-sidebar-cta-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.tc-sidebar-cta p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.tc-sidebar-cta-btn { display: block; background: var(--tc-gold); color: var(--tc-navy) !important; padding: 11px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; margin-bottom: 10px; }
.tc-sidebar-cta-btn:hover { background: var(--tc-gold-bright); }
.tc-sidebar-cta-link { display: block; font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.tc-sidebar-cta-link:hover { color: var(--tc-white); }

.tc-widget { margin-bottom: 24px; }
.tc-widget-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #1A3A5C; padding-bottom: 10px; border-bottom: 2px solid var(--tc-gold); margin-bottom: 14px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER — Rich dark footer with brand, stats + columns
═══════════════════════════════════════════════════════════ */
.tc-footer {
  background: #1A1A2E;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: auto;
}
.tc-footer-inner {
  max-width: var(--tc-max-w); margin: 0 auto;
  padding: 56px 32px 28px;
}

/* Top: brand + columns */
.tc-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 28px;
}

/* Brand side */
.tc-footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 14px;
}
.tc-footer-logo-icon { font-size: 22px; color: var(--tc-gold); }
.tc-footer-logo-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.tc-footer-tibet { color: var(--tc-white); }
.tc-footer-conn  { color: var(--tc-gold); }
.tc-footer-tagline {
  font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.65;
  max-width: 340px; margin-bottom: 6px;
}
.tc-footer-tib {
  font-family: var(--font-tibetan); font-size: 12px;
  color: rgba(255,255,255,.2); margin-bottom: 24px;
}

/* Stats */
.tc-footer-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.tc-footer-stat { display: flex; flex-direction: column; gap: 2px; }
.tc-footer-stat-n {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--tc-white); line-height: 1;
}
.tc-footer-stat-l {
  font-size: 11px; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .08em;
}

/* Column links */
.tc-footer-cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
}
.tc-footer-col-heading {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 14px;
}
.tc-footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tc-footer-links a {
  font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none;
  transition: color .15s;
}
.tc-footer-links a:hover { color: var(--tc-gold); }

/* Bottom bar */
.tc-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.tc-footer-copy { font-size: 12px; color: rgba(255,255,255,.35); }
.tc-footer-bottom-links { display: flex; gap: 20px; }
.tc-footer-bottom-links a {
  font-size: 12px; color: rgba(255,255,255,.25); text-decoration: none; transition: color .15s;
}
.tc-footer-bottom-links a:hover { color: var(--tc-gold); }

@media (max-width: 768px) {
  .tc-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .tc-footer-cols { grid-template-columns: 1fr 1fr; }
  .tc-footer-inner { padding: 40px 20px 24px; }
}
@media (max-width: 480px) {
  .tc-footer-cols { grid-template-columns: 1fr; }
  .tc-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* ═══════════════════════════════════════════════════════════
   PLATFORM PLUGIN — dark theme overrides
═══════════════════════════════════════════════════════════ */
body {
  --tc-red:       #c9972a;
  --tc-red-dark:  #a07020;
  --tc-red-soft:  rgba(201,151,42,.12);
  --tc-saffron:   #c9972a;
  --tc-gold:      #c9972a;
  --tc-border:    #E2DDD8;
  --tc-bg:        #F7F5F0;
  --tc-slate:     #2D3748;
  --tc-mid:       rgba(255,255,255,.5);
  --tc-muted:     rgba(255,255,255,.3);
  --r:            14px;
  --r-sm:         8px;
}

/* Cards */
.tcp-widget-card, .tce-card, .tcf-post,
.tcp-section, .tcp-news-card, .tcp-job-card,
.tcp-event-card, .tcp-directory-card, .tcp-business-card {
  background: #FFFFFF !important;
  border: 1px solid #E2DDD8 !important;
  border-radius: 14px !important;
  color: var(--tc-white) !important;
}

/* Widget head */
.tcp-widget-head { border-bottom: 1px solid rgba(255,255,255,.08) !important; background: transparent !important; }
.tcp-widget-title { color: #1A1A2E !important; font-family: var(--font-display) !important; }
.tcp-widget-tib { color: rgba(255,255,255,.3) !important; }
.tcp-widget-item { color: #4A5568 !important; border-bottom-color: #EBE8E3 !important; }
.tcp-widget-item:hover { color: #a07020 !important; }
.tcp-widget-footer { background: #F7F5F0 !important; color: #a07020 !important; border-top-color: #EBE8E3 !important; }
.tcp-widget-footer:hover { background: rgba(201,151,42,.1) !important; }
.tcp-widget-empty { color: #9CA3AF !important; }

/* Inputs */
.tcp-search-input, input[class*="tcp-"], textarea[class*="tcp-"],
.tcf-input, .tcf-textarea, .tcf-select, .tce-field input, .tce-field textarea, .tce-field select,
.tc-auth-field input, .tc-split-field input {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: var(--tc-white) !important;
  border-radius: 8px !important;
}
input::placeholder, textarea::placeholder { color: #B0B8C4 !important; }
input:focus, textarea:focus, select:focus { border-color: var(--tc-gold) !important; box-shadow: 0 0 0 3px rgba(201,151,42,.15) !important; }

/* Buttons */
.tcp-btn, .tce-btn-primary, .tcf-btn, .tcf-btn-new {
  background: var(--tc-gold) !important;
  color: #0f0f0f !important;
  border-radius: 8px !important;
  border: none !important;
}
.tcf-btn-ghost { background: rgba(255,255,255,.08) !important; color: var(--tc-white) !important; border: 1px solid rgba(255,255,255,.12) !important; }
.tce-btn-sm { background: rgba(255,255,255,.08) !important; color: var(--tc-white) !important; border-color: rgba(255,255,255,.1) !important; }

/* Filters */
.tce-filters { background: #F7F5F0 !important; border-color: #E2DDD8 !important; }
.tce-search-bar { background: #FFFFFF !important; border-color: #E2DDD8 !important; }
.tce-select { background: #FFFFFF !important; border-color: #E2DDD8 !important; color: #1A1A2E !important; }
.tce-pill { border-color: #E2DDD8 !important; color: #4A5568 !important; }
.tce-pill-active, .tce-pill:hover { background: var(--tc-gold) !important; border-color: var(--tc-gold) !important; color: #0f0f0f !important; }

/* Section headers */
.tce-section-title { color: #1A1A2E !important; font-family: var(--font-display) !important; }
.tce-section-sub { color: #6B7280 !important; }
.tce-results-count { color: #6B7280 !important; }

/* Notices */
.tce-notice, .tcp-notice { background: #F7F5F0 !important; border-color: #E2DDD8 !important; }

/* Pagination */
.page-numbers, .tcf-pagination a, .tcf-pagination span { background: #FFFFFF !important; border-color: #E2DDD8 !important; color: #4A5568 !important; }
.page-numbers.current, .tcf-pagination .current { background: var(--tc-gold) !important; border-color: var(--tc-gold) !important; color: #0f0f0f !important; }

/* ═══════════════════════════════════════════════════════════
   SEARCH RESULTS
═══════════════════════════════════════════════════════════ */
.tc-search-results-wrap { max-width: var(--tc-max-w); margin: 0 auto; padding: 40px 32px; }
.tc-search-results-title { font-family: var(--font-display); font-size: 28px; color: #1A3A5C; margin-bottom: 24px; letter-spacing: -.01em; }
.tc-search-result { padding: 20px 0; border-bottom: 1px solid var(--tc-border); }
.tc-search-result-title a { font-size: 18px; font-weight: 600; color: #1A3A5C; }
.tc-search-result-title a:hover { color: var(--tc-navy-mid); }
.tc-search-result-meta { font-size: 13px; color: #6B7280; margin: 4px 0; }
.tc-search-result-excerpt { font-size: 14px; color: #4A5568; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.tc-pagination { display: flex; justify-content: center; margin: 32px 0; }
.tc-pagination .page-numbers { display: inline-flex; align-items: center; gap: 6px; }
.tc-pagination .page-numbers a,
.tc-pagination .page-numbers span { padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; border: 1px solid #E2DDD8; color: #4A5568; text-decoration: none; transition: all .2s; }
.tc-pagination .current { background: #1A3A5C; border-color: #1A3A5C; color: var(--tc-white) !important; }
.tc-pagination a:hover { border-color: #1A3A5C; color: #1A3A5C; }

/* ── Homepage section label ─────────────────────────────── */
.tc-home-section-label {
  background: var(--tc-bg);
  padding: 32px 24px 0;
}
.tc-home-section-label-inner {
  max-width: var(--tc-max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
}
.tc-home-section-rule {
  flex: 1; height: 1px; background: var(--tc-border);
}
.tc-home-section-text {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #6B7280;
  white-space: nowrap; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tc-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
  .tc-hero-nav { grid-template-columns: repeat(4,1fr); max-width: 560px; }
  .tc-hero-content { max-width: 560px; }
  .tc-topbar-tibet { display: none; }
  .tc-footer-cols-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .tc-header-inner { padding: 0 16px; height: 58px; gap: 10px; }
  .tc-nav { display: none; }
  .tc-mobile-toggle { display: flex; }
  .tc-btn-signin, .tc-btn-join-free, .tc-btn-post { display: none; }
  .tc-header-user .tc-header-username { display: none; }
  .tc-topbar-inner { padding: 6px 16px; }

  .tc-hero { min-height: 480px; }
  .tc-hero-inner { padding: 48px 16px 56px; }
  .tc-hero-title { font-size: clamp(38px,10vw,56px); }
  .tc-hero-nav { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .tc-hero-nav-card { padding: 12px 8px; }
  .tc-hero-nav-desc { display: none; }
  .tc-hero-stats { gap: 16px; }
  .tc-hero-stat-sep { display: none; }

  .tc-page-sidebar { grid-template-columns: 1fr; padding: 20px 16px; }
  .tc-page-header { grid-column: 1; }
  .tc-sidebar { display: none; }

  .tc-cta-strip { padding: 48px 16px; }
  .tc-cta-strip-inner { flex-direction: column; gap: 24px; }

  .tc-footer-brand-inner { flex-direction: column; }
  .tc-footer-cols-inner { grid-template-columns: 1fr 1fr; }
  .tc-footer-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .tc-hero-nav { grid-template-columns: repeat(4,1fr); }
  .tc-hero-nav-label { font-size: 10px; }
  .tc-footer-cols-inner { grid-template-columns: 1fr; }
  .tc-footer-bottom-inner { flex-direction: column; text-align: center; }
  .tc-topbar-link:not(.tc-topbar-register) { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   TIBETAN LANG MODE
═══════════════════════════════════════════════════════════ */
body.tc-lang-bo .tc-hero-tagline.tc-bo { display: block; }
body.tc-lang-bo .tc-hero-tagline.tc-en { display: none; }


/* ═══════════════════════════════════════════════════════════
   AUTH / PROFILE / FORUM — colour token overrides
   (all --tc-crimson refs now map to navy, saffron to gold)
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Login / Register
═══════════════════════════════════════════════════════════ */


/* ── Auth pages: login + register ─────────────────────── */
/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Standalone split layout
   Both templates have their own HTML shell (no tc-main).
═══════════════════════════════════════════════════════════ */

/* Auth body — uses standard theme body/header */

/* Split is inside tc-main — fill full width and remaining height */
.tc-auth-split {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
  max-width: var(--tc-max-w); /* Limits it to the exact header width */
  margin: 40px auto; /* Centers it horizontally and adds space above/below */
  min-height: calc(100vh - 188px);
  border-radius: var(--tc-radius-lg); /* Gives the outer edges nice rounded corners */
  overflow: hidden; /* Keeps the navy background neatly inside the rounded corners */
  box-shadow: var(--tc-shadow-lg); /* Adds a subtle shadow so it floats off the background */
}

/* Left: white form side — exactly half */
.tc-auth-left {
  flex: 1 1 50%;
  min-width: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 56px 40px 48px;
  background: #FFFFFF; border-right: 1px solid var(--tc-border);
  overflow-y: auto;
}
.tc-auth-left-scroll { align-items: flex-start; padding-top: 40px; }
.tc-auth-form-wrap { width: 100%; max-width: 400px; }

.tc-auth-heading {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: #1A3A5C; margin: 0 0 8px; letter-spacing: -.01em;
}
.tc-auth-sub { font-size: 15px; color: #6B7280; margin: 0 0 28px; line-height: 1.5; }

.tc-auth-alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.tc-auth-alert p { margin: 0 0 4px; } .tc-auth-alert p:last-child { margin: 0; }
.tc-auth-alert-err { background: var(--tc-error-soft); color: var(--tc-error); border: 1px solid #f0c0c0; }
.tc-auth-alert-ok  { background: var(--tc-green-soft); color: var(--tc-green); border: 1px solid #b8d8b8; }

.tc-auth-form { display: flex; flex-direction: column; gap: 18px; }
.tc-auth-field { display: flex; flex-direction: column; gap: 7px; }
.tc-auth-label-row { display: flex; align-items: center; justify-content: space-between; }
.tc-auth-field label { font-size: 13px; font-weight: 600; color: #1A1A2E; display: flex; align-items: center; gap: 6px; }
.tc-auth-req { color: var(--tc-error); }
.tc-auth-opt { font-size: 11px; font-weight: 400; color: #6B7280; background: var(--tc-bg); padding: 1px 7px; border-radius: 4px; border: 1px solid #E2DDD8; }
.tc-auth-forgot { font-size: 13px; font-weight: 600; color: var(--tc-gold); text-decoration: none; }
.tc-auth-forgot:hover { color: #1A3A5C; text-decoration: underline; }

.tc-auth-input-wrap { position: relative; }
.tc-auth-input-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #6B7280; pointer-events: none; }
.tc-auth-input-wrap input { padding-left: 40px !important; }

.tc-auth-field input {
  width: 100%; padding: 11px 14px; border-radius: 6px;
  border: 1.5px solid #E2DDD8; font-size: 14px; font-family: var(--font-ui);
  color: #1A1A2E; background: #FFFFFF;
  transition: border-color .2s, box-shadow .2s; box-sizing: border-box; -webkit-appearance: none;
}
.tc-auth-field input:focus { outline: none; border-color: #1A3A5C; box-shadow: 0 0 0 3px rgba(13,24,41,.1); }
.tc-auth-field input::placeholder { color: #b8c0cc; }

.tc-auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.tc-auth-remember { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4A5568; cursor: pointer; user-select: none; margin-top: -4px; }
.tc-auth-remember input[type=checkbox] { display: none; }
.tc-auth-checkbox { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #E2DDD8; background: #FFFFFF; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.tc-auth-remember input:checked + .tc-auth-checkbox { background: #1A3A5C; border-color: #1A3A5C; }
.tc-auth-remember input:checked + .tc-auth-checkbox::after { content: ''; display: block; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }

.tc-auth-submit { width: 100%; background: #1A3A5C; color: var(--tc-white); border: none; border-radius: 6px; padding: 13px; font-size: 15px; font-weight: 700; font-family: var(--font-ui); cursor: pointer; transition: background .2s, transform .15s; margin-top: 4px; }
.tc-auth-submit:hover { background: #a07020; transform: translateY(-1px); }

.tc-auth-footer-link { text-align: center; font-size: 14px; color: #6B7280; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tc-border-light); }
.tc-auth-footer-link a { color: #1A3A5C; font-weight: 600; margin-left: 4px; }

/* Right: navy brand side — exactly 50% */
.tc-auth-right {
  flex: 1 1 50%;
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: linear-gradient(145deg, var(--tc-navy) 0%, var(--tc-navy-mid) 55%, #0d2545 100%);
  position: relative; overflow: hidden;
}
.tc-auth-right::before { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(201,151,42,.06); top: -140px; right: -140px; }
.tc-auth-right::after  { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(201,151,42,.04); bottom: -80px; left: -80px; }
.tc-auth-brand-wrap { position: relative; z-index: 1; max-width: 380px; width: 100%; }

.tc-auth-brand-tag { display: inline-block; background: rgba(201,151,42,.18); color: var(--tc-gold-bright); border: 1px solid rgba(201,151,42,.3); border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 24px; }
.tc-auth-brand-heading { font-family: var(--font-display); font-size: clamp(26px,2.5vw,38px); font-weight: 600; color: var(--tc-white); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 32px; }

.tc-auth-features { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 14px; }
.tc-auth-features li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.4; }
.tc-auth-feat-icon { font-size: 16px; flex-shrink: 0; width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; }

.tc-auth-quote { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 20px 22px; margin: 0; }
.tc-auth-quote::before { content: '\201C'; display: block; font-family: var(--font-display); font-size: 36px; color: var(--tc-gold); line-height: 1; margin-bottom: 6px; }
.tc-auth-quote p { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.65; margin-bottom: 16px; font-style: italic; }
.tc-auth-quote footer { display: flex; align-items: center; gap: 12px; }
.tc-auth-quote-av { width: 38px; height: 38px; border-radius: 50%; background: var(--tc-gold); color: #1A3A5C; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tc-auth-quote footer strong { display: block; font-size: 14px; font-weight: 700; color: var(--tc-white); }
.tc-auth-quote footer span { font-size: 12px; color: rgba(255,255,255,.55); }

.tc-auth-stats { display: flex; gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.tc-auth-stat strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--tc-gold-bright); line-height: 1; letter-spacing: -.02em; }
.tc-auth-stat span { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; display: block; }
.tc-auth-stat-sep { width: 1px; background: rgba(255,255,255,.12); align-self: stretch; }

@media (max-width: 768px) {
  .tc-auth-split { flex-direction: column; }
  .tc-auth-left, .tc-auth-right { flex: none; width: 100%; }
  .tc-auth-right { display: none; }
  .tc-auth-left { padding: 32px 20px; }
  .tc-auth-row-2 { grid-template-columns: 1fr; }
}

      PROFILE PAGE
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
═══════════════════════════════════════════════════════════ */
.tc-profile-wrap { max-width: 100%; }

/* Welcome banner */
.tc-welcome-banner { background: linear-gradient(90deg,var(--tc-green) 0%,#1a5a2a 100%); color:#fff; padding:14px 24px; }
.tc-welcome-banner-inner { max-width:var(--tc-max-w); margin:0 auto; display:flex; align-items:center; gap:14px; }
.tc-welcome-icon { font-size:24px; flex-shrink:0; }
.tc-welcome-banner-inner > div { flex:1; }
.tc-welcome-banner-inner strong { display:block; font-size:15px; }
.tc-welcome-banner-inner p { font-size:13px; opacity:.85; margin:2px 0 0; }
.tc-welcome-close { font-size:18px; color:rgba(255,255,255,.6); flex-shrink:0; background:none; border:none; cursor:pointer; padding:4px; transition:color .2s; }
.tc-welcome-close:hover { color:#fff; }

/* ── Hero ── */
.tc-profile-hero {
  background: linear-gradient(135deg,#1a0505 0%,#2d0d0d 50%,var(--tc-navy) 100%);
  color:#fff; padding:48px 24px;
}
.tc-profile-hero-admin { background: linear-gradient(135deg,#0d0d1a 0%,#1a1050 50%,var(--tc-navy) 100%); }
.tc-profile-hero-inner { max-width:var(--tc-max-w); margin:0 auto; display:flex; align-items:center; gap:28px; flex-wrap:wrap; }

.tc-profile-avatar-wrap { position:relative; flex-shrink:0; }
.tc-profile-avatar { width:108px; height:108px; border-radius:50%; object-fit:cover; border:3px solid rgba(255,255,255,.25); display:block; box-shadow:0 4px 20px rgba(0,0,0,.4); }
.tc-avatar-edit-btn { position:absolute; bottom:2px; right:2px; width:30px; height:30px; border-radius:50%; background:var(--tc-gold); display:flex; align-items:center; justify-content:center; font-size:13px; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.35); transition:transform .2s,background .2s; border:none; }
.tc-avatar-edit-btn:hover { transform:scale(1.1); background:var(--tc-gold-bright); }

.tc-profile-hero-info { flex:1; min-width:200px; }
.tc-profile-name { font-family:var(--font-display); font-size:clamp(22px,3vw,32px); font-weight:700; color:#fff; margin:0 0 6px; line-height:1.2; }
.tc-profile-tib-name { font-family:var(--font-tibetan); font-size:17px; color:var(--tc-gold-bright); margin:0 0 10px; }
.tc-profile-meta-row { display:flex; flex-wrap:wrap; gap:10px 16px; font-size:13px; color:rgba(255,255,255,.65); margin-bottom:12px; }
.tc-profile-meta-item { display:flex; align-items:center; gap:5px; }
.tc-profile-skills { display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.tc-skill-tag { background:rgba(255,255,255,.1); color:rgba(255,255,255,.88); border:1px solid rgba(255,255,255,.18); padding:3px 11px; border-radius:20px; font-size:12px; }
.tc-skill-tag-lg { background:var(--tc-gold-soft); color:var(--tc-gold); border-color:#e0c878; padding:5px 14px; font-size:13px; }

.tc-profile-hero-stats { display:flex; gap:0; margin-left:auto; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); border-radius:var(--tc-radius); overflow:hidden; flex-shrink:0; }
.tc-profile-stat { text-align:center; padding:18px 28px; }
.tc-profile-stat + .tc-profile-stat { border-left:1px solid rgba(255,255,255,.1); }
.tc-profile-stat strong { display:block; font-family:var(--font-display); font-size:30px; font-weight:800; color:var(--tc-gold-bright); line-height:1; }
.tc-profile-stat span { font-size:11px; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:.06em; margin-top:4px; display:block; }

/* Role badges */
.tc-role-badge { display:inline-flex; align-items:center; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:700; letter-spacing:.04em; }
.tc-role-admin  { background:rgba(201,151,42,.2); color:var(--tc-gold-bright); border:1px solid rgba(201,151,42,.3); }
.tc-role-member { background:rgba(255,255,255,.1); color:rgba(255,255,255,.75); border:1px solid rgba(255,255,255,.15); }

/* ── Tabs bar ── */
.tc-profile-tabs-bar { background:var(--tc-white); border-bottom:2px solid var(--tc-border); position:sticky; top:68px; z-index:100; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.tc-profile-tabs-inner { max-width:var(--tc-max-w); margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tc-profile-tabs { display:flex; gap:0; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.tc-profile-tabs::-webkit-scrollbar { display:none; }
.tc-profile-tab { display:flex; align-items:center; gap:5px; padding:15px 14px; font-size:13px; font-weight:600; color:var(--tc-muted); text-decoration:none !important; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .18s; white-space:nowrap; }
.tc-profile-tab:hover { color:var(--tc-navy); }
.tc-tab-active { color:var(--tc-navy) !important; border-bottom-color:var(--tc-navy) !important; }
.tc-tab-divider { color:var(--tc-border); padding:0 4px; align-self:center; font-size:18px; flex-shrink:0; }
.tc-tab-admin { }
.tc-tab-count { display:inline-flex; align-items:center; justify-content:center; background:var(--tc-red); color:#fff; border-radius:10px; font-size:10px; font-weight:700; min-width:17px; height:17px; padding:0 4px; margin-left:4px; }
.tc-profile-logout { font-size:13px; font-weight:500; color:var(--tc-muted); text-decoration:none; padding:8px 0; flex-shrink:0; transition:color .18s; }
.tc-profile-logout:hover { color:var(--tc-error); }

/* ── Content area ── */
.tc-profile-content { background:var(--tc-bg); min-height:60vh; }
.tc-profile-section { max-width:var(--tc-max-w); margin:0 auto; padding:32px 24px 64px; }
.tc-profile-section-narrow { max-width:600px; }
.tc-section-heading { font-family:var(--font-display); font-size:19px; font-weight:700; color:var(--tc-ink); margin-bottom:20px; padding-bottom:12px; border-bottom:2px solid var(--tc-border); }

/* ── Profile grid ── */
.tc-profile-grid { display:grid; grid-template-columns:1fr 280px; gap:24px; align-items:start; }
.tc-profile-main { display:flex; flex-direction:column; gap:18px; }
.tc-profile-sidebar { display:flex; flex-direction:column; gap:14px; }

/* ── Cards ── */
.tc-profile-card { background:var(--tc-white); border:1px solid var(--tc-border); border-radius:var(--tc-radius); padding:22px 24px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.tc-profile-card-title { font-size:14px; font-weight:700; color:var(--tc-ink); text-transform:uppercase; letter-spacing:.05em; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--tc-border-light); }
.tc-profile-bio { font-size:15px; color:var(--tc-mid); line-height:1.75; margin:0; }
.tc-profile-skills-list { display:flex; flex-wrap:wrap; gap:8px; }
.tc-profile-info-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; font-size:14px; color:var(--tc-mid); }
.tc-profile-info-list li { display:flex; align-items:center; gap:8px; }
.tc-profile-info-list a { color:var(--tc-navy-mid); word-break:break-all; }
.tc-profile-card-tip { background:var(--tc-navy-soft); border-color:#c5d8f0; }
.tc-profile-card-tip p { font-size:13px; color:var(--tc-mid); line-height:1.5; margin-bottom:12px; }
.tc-btn-sm-red { display:inline-block; background:var(--tc-navy); color:#fff !important; padding:8px 18px; border-radius:6px; font-size:13px; font-weight:600; text-decoration:none !important; transition:background .2s; }
.tc-btn-sm-red:hover { background:var(--tc-navy-mid); }

/* ── Quick actions ── */
.tc-profile-actions-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tc-profile-action-btn { display:flex; align-items:center; gap:9px; padding:13px 14px; border-radius:var(--tc-radius-sm); border:1.5px solid var(--tc-border); font-size:13px; font-weight:500; color:var(--tc-mid); text-decoration:none !important; transition:all .18s; background:var(--tc-white); }
.tc-profile-action-btn span { font-size:18px; flex-shrink:0; }
.tc-profile-action-btn:hover { border-color:var(--tc-navy); color:var(--tc-navy); background:var(--tc-navy-soft); }
.tc-action-admin { border-color:rgba(139,26,26,.25); color:var(--tc-red) !important; }
.tc-action-admin:hover { background:var(--tc-error-soft) !important; border-color:var(--tc-red) !important; }

/* ── Edit form ── */
.tc-edit-form { display:flex; flex-direction:column; }
.tc-edit-grid { display:grid; grid-template-columns:1fr 260px; gap:32px; align-items:start; }
.tc-edit-col { display:flex; flex-direction:column; gap:16px; }
.tc-form-footer { margin-top:28px; padding-top:20px; border-top:1px solid var(--tc-border); }

/* ── Avatar upload ── */
.tc-avatar-upload-area { width:100%; aspect-ratio:1; max-width:240px; border-radius:var(--tc-radius); overflow:hidden; cursor:pointer; position:relative; border:2px dashed var(--tc-border); transition:border-color .2s; background:var(--tc-bg); display:flex; align-items:center; justify-content:center; }
.tc-avatar-upload-area:hover { border-color:var(--tc-navy); }
.tc-avatar-upload-area img { width:100%; height:100%; object-fit:cover; }
.tc-avatar-upload-overlay { position:absolute; inset:0; background:rgba(13,24,41,.55); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; opacity:0; transition:opacity .2s; font-size:13px; font-weight:500; }
.tc-avatar-upload-overlay span:first-child { font-size:28px; }
.tc-avatar-upload-area:hover .tc-avatar-upload-overlay { opacity:1; }

/* ── Activity list ── */
.tc-activity-list { display:flex; flex-direction:column; margin:0; padding:0; list-style:none; }
.tc-activity-item { display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--tc-border-light); gap:12px; }
.tc-activity-item:last-child { border-bottom:none; padding-bottom:0; }
.tc-activity-title { font-size:14px; font-weight:500; color:var(--tc-ink); text-decoration:none !important; flex:1; line-height:1.4; }
.tc-activity-title:hover { color:var(--tc-navy); }
.tc-activity-meta { font-size:12px; color:var(--tc-muted); display:flex; align-items:center; gap:8px; white-space:nowrap; flex-shrink:0; }
.tc-activity-status { padding:2px 8px; border-radius:4px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.tc-status-publish { background:var(--tc-green-soft); color:var(--tc-green); }
.tc-status-pending { background:var(--tc-gold-soft); color:#a07000; }
.tc-status-draft   { background:#f0f0f0; color:#666; }

/* ── Admin: stats grid ── */
.tc-admin-stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; margin-bottom:16px; }
.tc-admin-stat-card { background:var(--tc-white); border:1px solid var(--tc-border); border-radius:var(--tc-radius); padding:20px 16px; display:flex; flex-direction:column; gap:3px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.tc-admin-stat-highlight { border-top:3px solid var(--tc-navy); }
.tc-admin-stat-icon { font-size:22px; margin-bottom:4px; }
.tc-admin-stat-card strong { font-size:30px; font-weight:800; color:var(--tc-ink); line-height:1; }
.tc-admin-stat-card span { font-size:11px; color:var(--tc-muted); text-transform:uppercase; letter-spacing:.05em; }

/* ── Admin: action buttons ── */
.tc-btn-admin-action { display:inline-flex; align-items:center; padding:5px 13px; border-radius:5px; font-size:12px; font-weight:600; text-decoration:none !important; border:1.5px solid var(--tc-border); color:var(--tc-mid) !important; background:var(--tc-white); transition:all .15s; white-space:nowrap; }
.tc-btn-admin-action:hover { border-color:var(--tc-navy); color:var(--tc-navy) !important; }
.tc-btn-review { border-color:var(--tc-red) !important; color:var(--tc-red) !important; }
.tc-btn-review:hover { background:var(--tc-red) !important; color:#fff !important; border-color:var(--tc-red) !important; }
.tc-member-avatar { width:36px !important; height:36px !important; border-radius:50% !important; object-fit:cover; flex-shrink:0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .tc-profile-grid { grid-template-columns:1fr; }
  .tc-profile-sidebar { order:-1; flex-direction:row; flex-wrap:wrap; }
  .tc-profile-sidebar > * { flex:1 1 240px; }
  .tc-edit-grid { grid-template-columns:1fr; }
  .tc-avatar-upload-area { max-width:180px; }
  .tc-profile-hero-stats { margin-left:0; }
}
@media (max-width: 640px) {
  .tc-profile-hero { padding:32px 16px; }
  .tc-profile-hero-inner { gap:20px; }
  .tc-profile-hero-stats { width:100%; justify-content:stretch; }
  .tc-profile-stat { flex:1; padding:14px 12px; }
  .tc-profile-stat strong { font-size:24px; }
  .tc-profile-section { padding:24px 16px 48px; }
  .tc-profile-tabs-inner { padding:0 16px; }
  .tc-profile-actions-grid { grid-template-columns:1fr; }
  .tc-admin-stats-grid { grid-template-columns:repeat(2,1fr); }
}

/* ═══════════════════════════════════════════════════════════
   FORUM — Full styling for tcf-* classes output by the plugin
   Covers: index, category list, topic view, new topic form
═══════════════════════════════════════════════════════════ */

/* ── Outer wrapper ───────────────────────────────────────── */
.tcf-wrap {
  max-width: var(--tc-max-w);
  margin: 0 auto;
  padding: 32px 40px 64px;
  font-family: var(--font-ui);
  color: #1A1A2E;
  background: #F7F5F0;
}
.tcf-wrap * { box-sizing: border-box; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.tcf-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #6B7280; margin-bottom: 20px;
  flex-wrap: wrap;
}
.tcf-breadcrumb a { color: #6B7280; text-decoration: none; transition: color .2s; }
.tcf-breadcrumb a:hover { color: #1A3A5C; }
.tcf-breadcrumb span { opacity: .5; }

/* ── Page title + header row ─────────────────────────────── */
.tcf-page-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: #1A1A2E; margin: 0;
}
.tcf-forum-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--tc-border);
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────── */
.tcf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: var(--font-ui);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: all .2s var(--tc-ease);
}
.tcf-btn-new {
  background: #1A3A5C; color: #fff !important;
  border-color: #1A3A5C;
}
.tcf-btn-new:hover { background: #1A3A5C; transform: translateY(-1px); }
.tcf-btn-ghost {
  background: transparent; color: var(--tc-mid) !important;
  border-color: #E2DDD8;
}
.tcf-btn-ghost:hover { border-color: #1A3A5C; color: var(--tc-navy) !important; }


/* ═══════════════════════════════════════════════════════════
   FORUM — Clean modern table layout
═══════════════════════════════════════════════════════════ */

.tcf-wrap {
  max-width: var(--tc-max-w, 1280px); margin: 0 auto;
  padding: 36px 40px 64px; font-family: var(--font-ui);
}
/* New topic card */
.tcf-new-topic-card {
  background: #FFFFFF;
  border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--tc-shadow);
  max-width: 780px;
}
.tcf-new-topic-card .tcf-form { gap: 20px; }
.tcf-new-topic-card .tcf-editor { min-height: 200px; }
.tcf-forum-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.tcf-page-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: #1A3A5C; margin: 0; letter-spacing: -.01em;
}
.tcf-breadcrumb {
  font-size: 13px; color: #6B7280; margin-bottom: 16px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.tcf-breadcrumb a { color: #6B7280; text-decoration: none; }
.tcf-breadcrumb a:hover { color: #1A3A5C; }

/* New topic / join button */
.tcf-btn-new {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1A3A5C; color: var(--tc-white) !important;
  padding: 9px 20px; border-radius: 6px; font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background .2s; flex-shrink: 0;
}
.tcf-btn-new:hover { background: #a07020; }

/* ── CATEGORY TABLE ── */
.tcf-cats-table {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow);
}
.tcf-cat-row {
  display: grid;
  grid-template-columns: 1fr 80px 220px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tc-border-light);
  transition: background .15s;
}
.tcf-cat-row:last-child { border-bottom: none; }
.tcf-cat-row:hover { background: #FDFAF5; }

.tcf-cat-row-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; min-width: 0;
}
.tcf-cat-icon {
  font-size: 20px; flex-shrink: 0; width: 42px; height: 42px;
  background: var(--tc-navy-soft); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.tcf-cat-info {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.tcf-cat-name {
  font-size: 15px; font-weight: 600; color: #1A3A5C; display: block;
}
.tcf-cat-row:hover .tcf-cat-name { color: var(--tc-gold); }
.tcf-cat-desc { font-size: 12px; color: #6B7280; line-height: 1.4; display: block; }
.tcf-cat-count {
  font-size: 18px; font-weight: 700; color: #1A3A5C; text-align: center;
}
.tcf-cat-last { display: flex; flex-direction: column; gap: 3px; padding-left: 16px; }
.tcf-last-title {
  font-size: 12px; font-weight: 600; color: #1A3A5C; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; display: block;
}
.tcf-last-title:hover { color: var(--tc-gold); }
.tcf-last-meta { font-size: 11px; color: #6B7280; display: block; }
.tcf-no-posts { font-size: 12px; color: #6B7280; font-style: italic; }

/* ── TOPIC LIST ── */
.tcf-cat-description {
  font-size: 14px; color: #4A5568; margin-bottom: 20px;
  padding: 12px 16px; background: var(--tc-navy-soft);
  border-radius: 6px; border-left: 3px solid var(--tc-navy);
}
.tcf-topic-list {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow);
}
.tcf-topic-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--tc-border-light); transition: background .15s;
}
.tcf-topic-row:last-child { border-bottom: none; }
.tcf-topic-row:hover { background: #FDFAF5; border-color: #C9972A; }
.tcf-topic-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--tc-navy-soft); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; color: #1A3A5C;
}
.tcf-topic-main { flex: 1; min-width: 0; }
.tcf-topic-title-link {
  display: block; font-size: 14px; font-weight: 600; color: #1A3A5C;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
}
.tcf-topic-title-link:hover { color: var(--tc-gold); }
.tcf-topic-by { font-size: 12px; color: #6B7280; }
.tcf-topic-stats { display: flex; gap: 16px; flex-shrink: 0; font-size: 12px; color: #6B7280; text-align: right; }

/* ── Badges ── */
.tcf-solved-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tc-green); color: #fff; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.tcf-pin { font-size: 12px; margin-right: 4px; }
.tcf-closed-tag {
  background: var(--tc-bg); color: #6B7280; border: 1px solid #E2DDD8;
  border-radius: 4px; font-size: 10px; font-weight: 700; padding: 1px 5px; margin-right: 4px; vertical-align: middle;
}

/* ── Single topic ── */
.tcf-topic-post { margin-bottom: 0; }
.tcf-post {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); overflow: hidden; margin-bottom: 12px;
  box-shadow: var(--tc-shadow);
}
.tcf-post-sidebar {
  display: none; /* hidden — we show inline headers instead */
}
.tcf-post-body { padding: 20px 24px; }
.tcf-post-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--tc-border-light);
}
.tcf-post-author { font-weight: 700; font-size: 14px; color: #1A3A5C; }
.tcf-post-role { font-size: 11px; color: #6B7280; }
.tcf-post-count { font-size: 11px; color: #6B7280; margin-left: 4px; }
.tcf-post-time { font-size: 12px; color: #6B7280; margin-left: auto; }
.tcf-post-anchor { font-size: 12px; color: #6B7280; text-decoration: none; margin-left: 8px; }
.tcf-topic-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #1A3A5C; margin: 0 0 4px; letter-spacing: -.01em; }
.tcf-post-content { font-size: 15px; line-height: 1.75; color: #4A5568; }
.tcf-post-content p { margin-bottom: 12px; } .tcf-post-content p:last-child { margin: 0; }
.tcf-post-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tc-border-light); flex-wrap: wrap; }
.tcf-action-link { font-size: 12px; color: #6B7280; text-decoration: none; padding: 4px 8px; border-radius: 4px; transition: all .15s; }
.tcf-action-link:hover { background: var(--tc-bg); color: #1A3A5C; }
.tcf-replies-heading { font-size: 16px; font-weight: 600; color: #1A3A5C; margin: 24px 0 12px; }
.tcf-solution-post { border-color: var(--tc-green); }
.tcf-solution-label { font-size: 12px; font-weight: 700; color: var(--tc-green); margin-right: auto; }

/* ── Reply + new topic forms ── */
.tcf-reply-form-wrap, .tcf-new-topic-view form {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); padding: 20px 24px; margin-top: 16px;
  box-shadow: var(--tc-shadow);
}
.tcf-reply-form-wrap h3 { font-size: 16px; font-weight: 600; color: #1A3A5C; margin: 0 0 14px; }
.tcf-form { display: flex; flex-direction: column; gap: 16px; }
.tcf-form-row { display: flex; flex-direction: column; gap: 6px; }
.tcf-form-row label { font-size: 13px; font-weight: 600; color: #1A1A2E; }
.tcf-input, .tcf-select, .tcf-editor, .tcf-textarea, .tcf-search-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid #E2DDD8;
  border-radius: 6px; font-size: 14px; font-family: var(--font-ui);
  color: #1A1A2E; background: #FFFFFF;
  transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.tcf-input:focus,.tcf-select:focus,.tcf-editor:focus,.tcf-textarea:focus,.tcf-search-input:focus {
  outline: none; border-color: #1A3A5C; box-shadow: 0 0 0 3px rgba(13,24,41,.1);
}
.tcf-editor, .tcf-textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
.tcf-form-footer { display: flex; gap: 10px; align-items: center; }
.tcf-editor-toolbar { display: flex; gap: 6px; margin-top: 6px; }
.tcf-fmt-btn { padding: 4px 10px; border: 1px solid #E2DDD8; border-radius: 4px; background: #FFFFFF; font-size: 13px; cursor: pointer; color: #4A5568; }
.tcf-fmt-btn:hover { background: var(--tc-navy-soft); color: #1A3A5C; }
.req { color: var(--tc-error); }

/* ── Login prompt ── */
.tcf-login-prompt {
  background: var(--tc-navy-soft); border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); padding: 20px 24px; text-align: center; margin-top: 16px;
}
.tcf-login-prompt p { color: #4A5568; font-size: 14px; margin: 0 0 12px; }
.tcf-closed-notice { text-align:center; padding:16px; color:var(--tc-muted); background:var(--tc-bg); border-radius:6px; margin-top:12px; border:1px solid var(--tc-border); }

/* ── Shared buttons ── */
.tcf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1A3A5C; color: var(--tc-white) !important;
  padding: 9px 18px; border-radius: 6px; border: none; font-size: 14px;
  font-weight: 700; font-family: var(--font-ui); cursor: pointer; text-decoration: none; transition: background .2s;
}
.tcf-btn:hover { background: #a07020; }
.tcf-btn-ghost {
  background: transparent !important; color: var(--tc-mid) !important;
  border: 1.5px solid var(--tc-border) !important;
}
.tcf-btn-ghost:hover { border-color: var(--tc-navy) !important; color: var(--tc-navy) !important; }
.tcf-like-btn { padding: 5px 10px; border-radius: 20px; border: 1px solid #E2DDD8; background: #FFFFFF; cursor: pointer; font-size: 13px; color: #4A5568; transition: all .2s; }
.tcf-like-btn.tcf-liked { background: var(--tc-navy-soft); border-color: #1A3A5C; color: #1A3A5C; }
.tcf-subscribe-btn { padding: 5px 10px; border-radius: 20px; border: 1px solid #E2DDD8; background: #FFFFFF; cursor: pointer; font-size: 13px; color: #4A5568; }

/* ── Flash + empty ── */
.tcf-flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.tcf-flash-success { background: var(--tc-green-soft); color: var(--tc-green); border: 1px solid #b8d8b8; }
.tcf-flash-error   { background: var(--tc-error-soft); color: var(--tc-error); border: 1px solid #f0c0c0; }
.tcf-empty { text-align:center; padding:40px 24px; background:var(--tc-white); border:1px dashed var(--tc-border); border-radius:var(--tc-radius); }
.tcf-empty p { color:var(--tc-muted); font-size:15px; } .tcf-empty a { color:var(--tc-navy); font-weight:600; }

/* ── Search ── */
.tcf-search-form { display: flex; gap: 10px; margin-bottom: 20px; }
.tcf-search-info { font-size: 14px; color: #6B7280; margin-bottom: 16px; }
.tcf-search-result { padding: 14px 0; border-bottom: 1px solid var(--tc-border-light); }
.tcf-result-title { font-size: 15px; font-weight: 600; color: #1A3A5C; text-decoration: none; display: block; margin-bottom: 4px; }
.tcf-result-title:hover { color: var(--tc-gold); }
.tcf-result-excerpt { font-size: 13px; color: #4A5568; margin: 0 0 4px; }
.tcf-result-meta { font-size: 12px; color: #6B7280; }

/* ── Pagination ── */
.tcf-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.tcf-pagination a, .tcf-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 6px; border: 1.5px solid #E2DDD8; font-size: 13px; text-decoration: none; color: #4A5568; transition: all .2s; }
.tcf-pagination a:hover { border-color: #1A3A5C; color: #1A3A5C; }
.tcf-pagination .current { background: #1A3A5C; border-color: #1A3A5C; color: var(--tc-white) !important; }

/* ── Modal (edit) ── */
.tcf-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.tcf-modal-inner { background: #FFFFFF; border-radius: var(--tc-radius-lg); padding: 28px; width: 90%; max-width: 600px; box-shadow: var(--tc-shadow-lg); }

@media (max-width: 680px) {
  .tcf-wrap { padding: 20px 12px 40px; }
  .tcf-cats-thead { display: none; }
  .tcf-cat-row { grid-template-columns: 1fr; gap: 8px; }
  .tcf-cat-count, .tcf-cat-last { display: none; }
  .tcf-topic-stats { display: none; }
  .tcf-topic-avatar { display: none; }
}


/* Header row */
.tcf-forum-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.tcf-page-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: #1A3A5C; margin: 0; letter-spacing: -.01em;
}
.tcf-breadcrumb {
  font-size: 13px; color: #6B7280; margin-bottom: 20px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.tcf-breadcrumb a { color: #6B7280; text-decoration: none; }
.tcf-breadcrumb a:hover { color: #1A3A5C; }

/* New topic button */
.tcf-btn-new {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1A3A5C; color: var(--tc-white) !important;
  padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background .2s; flex-shrink: 0;
}
.tcf-btn-new:hover { background: #a07020; }

/* ── CATEGORY INDEX — flat list of cards ── */
.tcf-index-view .tcf-cat-group { margin: 0; }
.tcf-index-view .tcf-cat-group-title { display: none; } /* no group labels needed */
.tcf-cat-list { display: flex; flex-direction: column; gap: 2px; }

.tcf-cat-row {
  display: flex; align-items: center; gap: 16px;
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: 0; padding: 16px 20px; text-decoration: none;
  transition: background .15s, border-color .15s; cursor: pointer;
}
/* Round first and last */
.tcf-cat-list > .tcf-cat-row:first-child { border-radius: var(--tc-radius) var(--tc-radius) 0 0; }
.tcf-cat-list > .tcf-cat-row:last-child  { border-radius: 0 0 var(--tc-radius) var(--tc-radius); }
.tcf-cat-list > .tcf-cat-row:only-child  { border-radius: var(--tc-radius); }
/* Collapse borders between rows */
.tcf-cat-list > .tcf-cat-row + .tcf-cat-row { border-top: none; }
.tcf-cat-row:hover { background: var(--tc-navy-soft); border-color: var(--tc-gold); z-index: 1; position: relative; }

.tcf-cat-icon {
  font-size: 22px; flex-shrink: 0; width: 44px; height: 44px;
  background: var(--tc-navy-soft); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.tcf-cat-info { flex: 1; min-width: 0; }
.tcf-cat-name {
  display: block; font-size: 15px; font-weight: 600; color: #1A3A5C;
  text-decoration: none; margin-bottom: 3px;
}
.tcf-cat-row:hover .tcf-cat-name { color: #1A3A5C; }
.tcf-cat-desc { font-size: 13px; color: #6B7280; margin: 0; line-height: 1.4; }
.tcf-cat-stats {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: 12px; color: #6B7280; flex-shrink: 0; text-align: right;
}
.tcf-cat-stats span { white-space: nowrap; }

/* ── TOPIC LIST ── */
.tcf-cat-description {
  font-size: 14px; color: #4A5568; margin-bottom: 20px;
  padding: 12px 16px; background: var(--tc-navy-soft);
  border-radius: 6px; border-left: 3px solid var(--tc-navy);
}
.tcf-topic-list {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); overflow: hidden;
}
.tcf-topic-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--tc-border-light);
  transition: background .15s;
}
.tcf-topic-row:last-child { border-bottom: none; }
.tcf-topic-row:hover { background: #FDFAF5; border-color: #C9972A; }
.tcf-topic-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--tc-navy-soft); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; color: #1A3A5C;
  overflow: hidden;
}
.tcf-topic-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcf-topic-main { flex: 1; min-width: 0; }
.tcf-topic-title-link {
  display: block; font-size: 14px; font-weight: 600; color: #1A3A5C;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
}
.tcf-topic-title-link:hover { color: var(--tc-gold); }
.tcf-topic-by { font-size: 12px; color: #6B7280; }
.tcf-topic-stats { display: flex; gap: 16px; flex-shrink: 0; font-size: 12px; color: #6B7280; }
.tcf-solved-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tc-green); color: #fff; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.tcf-pin { font-size: 11px; margin-right: 4px; }
.tcf-closed-tag {
  background: var(--tc-bg); color: #6B7280; border: 1px solid #E2DDD8;
  border-radius: 4px; font-size: 10px; font-weight: 700; padding: 1px 5px; margin-right: 4px; vertical-align: middle;
}

/* ── Single topic posts ── */
.tcf-post {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); padding: 20px 24px; margin-bottom: 12px;
}
.tcf-post-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--tc-border-light);
}
.tcf-post-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--tc-navy-soft);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #1A3A5C; overflow: hidden;
}
.tcf-post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcf-post-author { font-weight: 700; font-size: 14px; color: #1A3A5C; }
.tcf-post-role { font-size: 11px; color: #6B7280; display: block; }
.tcf-post-time { font-size: 12px; color: #6B7280; margin-left: auto; }
.tcf-post-body { font-size: 15px; line-height: 1.75; color: #4A5568; }
.tcf-post-body p { margin-bottom: 12px; } .tcf-post-body p:last-child { margin: 0; }
.tcf-post-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tc-border-light); }

/* ── Reply box / new topic form ── */
.tcf-reply-box {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); padding: 20px 24px; margin-top: 16px;
}
.tcf-reply-box h3 { font-size: 15px; font-weight: 600; color: #1A3A5C; margin: 0 0 14px; }
.tcf-form { display: flex; flex-direction: column; gap: 14px; }
.tcf-form-group { display: flex; flex-direction: column; gap: 6px; }
.tcf-form-group label { font-size: 13px; font-weight: 600; color: #1A1A2E; }
.tcf-input, .tcf-textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid #E2DDD8;
  border-radius: 6px; font-size: 14px; font-family: var(--font-ui);
  color: #1A1A2E; background: #FFFFFF; transition: border-color .2s, box-shadow .2s;
}
.tcf-input:focus, .tcf-textarea:focus { outline: none; border-color: #1A3A5C; box-shadow: 0 0 0 3px rgba(13,24,41,.1); }
.tcf-textarea { resize: vertical; min-height: 120px; line-height: 1.65; }

/* ── Login prompt ── */
.tcf-login-prompt {
  background: var(--tc-navy-soft); border: 1px solid #E2DDD8;
  border-radius: var(--tc-radius); padding: 20px 24px; text-align: center; margin-top: 16px;
}
.tcf-login-prompt p { color: #4A5568; font-size: 14px; margin: 0 0 12px; }
.tcf-login-prompt a { color: #1A3A5C; font-weight: 700; }

/* ── Buttons ── */
.tcf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1A3A5C; color: var(--tc-white) !important;
  padding: 9px 18px; border-radius: 6px; border: none; font-size: 14px;
  font-weight: 700; font-family: var(--font-ui); cursor: pointer; text-decoration: none; transition: background .2s;
}
.tcf-btn:hover { background: #a07020; }
.tcf-btn-ghost { background: transparent !important; color: var(--tc-mid) !important; border: 1.5px solid var(--tc-border) !important; }
.tcf-btn-ghost:hover { border-color: var(--tc-navy) !important; color: var(--tc-navy) !important; }
.tcf-btn-danger { background: var(--tc-error) !important; }

/* ── Flash + empty ── */
.tcf-flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.tcf-flash-success { background: var(--tc-green-soft); color: var(--tc-green); border: 1px solid #b8d8b8; }
.tcf-flash-error   { background: var(--tc-error-soft); color: var(--tc-error); border: 1px solid #f0c0c0; }
.tcf-empty { text-align: center; padding: 40px 24px; background: #FFFFFF; border: 1px dashed var(--tc-border); border-radius: var(--tc-radius); }
.tcf-empty p { color: #6B7280; font-size: 15px; } .tcf-empty a { color: #1A3A5C; font-weight: 600; }

/* ── Pagination ── */
.tcf-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.tcf-pagination a, .tcf-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 6px; border: 1.5px solid #E2DDD8; font-size: 13px; text-decoration: none; color: #4A5568; transition: all .2s; }
.tcf-pagination a:hover { border-color: #1A3A5C; color: #1A3A5C; }
.tcf-pagination .current { background: #1A3A5C; border-color: #1A3A5C; color: var(--tc-white) !important; }

@media (max-width: 680px) {
  .tcf-wrap { padding: 20px 12px 40px; }
  .tcf-topic-stats { display: none; }
  .tcf-topic-avatar { display: none; }
  .tcf-cat-row { padding: 12px 14px; }
  .tcf-cat-stats { display: none; }
}



/* ═══════════════════════════════════════════════════════════
   BUSINESS DIRECTORY PLUGIN — THEME INTEGRATION OVERRIDES
   Applied when tc-business-directory plugin is active.
   Ensures single business pages and listing pages inherit
   the site header/footer and layout correctly.
═══════════════════════════════════════════════════════════ */

/* Single business page: tcbiz-single-wrap sits inside tc-main */
.tc-single-business #tc-main { background: var(--tc-bg); }
.tc-single-business .tcbiz-single-wrap { padding-top: 32px; }

/* Business listing page rendered as tc-platform-content */
.tc-page-fullwidth .tcbiz-wrap {
  max-width: 100%;          /* let the inner max-width handle sizing */
  padding-left: 0;
  padding-right: 0;
}

/* Claim page — render with some breathing room */
.tc-page-claim-business .tcbiz-claim-wrap { padding-top: 40px; }

/* Ensure business card hover transitions respect theme ease */
.tcbiz-card { transition-timing-function: var(--tc-ease); }

/* Star colours from theme saffron token */
.tcbiz-star-full, .tcbiz-stars-lg .tcbiz-star-full { color: var(--tc-gold); }

/* Make "Add Your Business" button in listing match theme primary btn exactly */
.tcbiz-header .tcbiz-add-btn {
  background: #1A3A5C;
  border-color: #1A3A5C;
  border-radius: var(--tc-radius-sm);
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 700;
  padding: 10px 20px;
}

/* Businesses page on homepage widget grid — tighten spacing */
.tc-platform-content .tcbiz-wrap { padding: 32px 0; }


/* ═══════════════════════════════════════════════════════════
   FORCE SIDE-BY-SIDE AUTH LAYOUT
═══════════════════════════════════════════════════════════ */
.tc-auth-split.tc-auth-no-stack {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}
.tc-auth-split.tc-auth-no-stack .tc-auth-left,
.tc-auth-split.tc-auth-no-stack .tc-auth-right {
    display: flex !important;
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
}

/* Adjust padding on smaller screens so the 50/50 split remains readable */
@media (max-width: 768px) {
    .tc-auth-split.tc-auth-no-stack .tc-auth-left,
    .tc-auth-split.tc-auth-no-stack .tc-auth-right {
        padding: 32px 20px !important;
    }
    .tc-auth-split.tc-auth-no-stack .tc-auth-brand-heading {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    .tc-auth-split.tc-auth-no-stack .tc-auth-features li {
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
  .tc-auth-split {
    margin: 0 auto !important;
    border-radius: 0 !important;
    min-height: calc(100vh - 108px) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER WORDPRESS MENU FIXES
═══════════════════════════════════════════════════════════ */

/* Remove default list styles from the columns */
.tc-footer-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force the bottom privacy menu to lay out horizontally */
ul.tc-footer-privacy-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.tc-footer-privacy-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.tc-footer-privacy-menu li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

ul.tc-footer-privacy-menu li a:hover {
    color: var(--tc-gold-bright);
}
/* ═══════════════════════════════════════════════════════════
   FRONT PAGE — Dark design system matching reference
═══════════════════════════════════════════════════════════ */
#fp { background: #F7F5F0; }

.fp-hero { padding: 80px 32px 64px; max-width: 900px; margin: 0 auto; text-align: center; background: #F7F5F0; }
.fp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,151,42,.1); border: 1px solid rgba(201,151,42,.25);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; color: #a07020; font-weight: 600; margin-bottom: 24px;
}
.fp-hero-eyebrow-dot { width: 6px; height: 6px; background: #c9972a; border-radius: 50%; flex-shrink: 0; }
.fp-hero-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(38px, 6vw, 64px); font-weight: 700;
  line-height: 1.1; color: #1A1A2E; margin-bottom: 18px;
}
.fp-hero-h1 em { font-style: normal; color: #c9972a; }
.fp-hero-tib { display: block; font-size: 13px; color: rgba(0,0,0,.3); margin-top: 6px; letter-spacing: .08em; }
.fp-hero-sub { font-size: 16px; color: #6B7280; line-height: 1.65; max-width: 520px; margin: 0 auto 36px; }
.fp-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.fp-btn-primary { padding: 14px 28px; border-radius: 10px; background: #c9972a; color: #0f0f0f !important; font-size: 15px; font-weight: 700; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: background .15s; }
.fp-btn-primary:hover { background: #e0a830 !important; color: #0f0f0f !important; }
.fp-btn-outline { padding: 13px 24px; border-radius: 10px; background: transparent; color: #fff !important; font-size: 15px; font-weight: 600; border: 1px solid rgba(255,255,255,.2); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: border-color .15s, background .15s; }
.fp-btn-outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); color: #fff !important; }

.fp-hero-stats {
  display: flex; justify-content: center; gap: 0;
  border: 1px solid #E2DDD8; border-radius: 14px;
  overflow: hidden; background: rgba(0,0,0,.03);
  max-width: 580px; margin: 0 auto;
}
.fp-hero-stat { padding: 18px 32px; text-align: center; border-right: 1px solid #E2DDD8; flex: 1; }
.fp-hero-stat:last-child { border-right: none; }
.fp-hero-stat-n { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 700; color: #1A1A2E; display: block; }
.fp-hero-stat-l { font-size: 11px; color: #9CA3AF; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; display: block; }

.fp-divider { height: 1px; background: #E2DDD8; margin: 0 32px; }

/* Body sections */
.fp-body { max-width: 1100px; margin: 0 auto; }
.fp-section { padding: 56px 32px; }
.fp-section-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.fp-section-title { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 700; color: #1A1A2E; }
.fp-section-sub { font-size: 13px; color: #9CA3AF; margin-top: 3px; }
.fp-section-link { font-size: 13px; color: #c9972a; font-weight: 600; text-decoration: none; cursor: pointer; }
.fp-section-link:hover { text-decoration: underline; }

/* News grid */
.fp-news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.fp-news-card {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: 14px; padding: 20px; cursor: pointer;
  transition: border-color .2s, transform .2s;
  text-decoration: none; display: block;
}
.fp-news-card:hover { border-color: rgba(201,151,42,.4); transform: translateY(-2px); }
.fp-news-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; margin-bottom: 12px; }
.fp-tag-news     { background: rgba(201,151,42,.15); color: #c9972a; }
.fp-tag-resource { background: rgba(56,160,220,.15); color: #38a0dc; }
.fp-tag-event    { background: rgba(50,180,120,.15); color: #32b478; }
.fp-news-title   { font-size: 14px; font-weight: 600; color: #1A1A2E; line-height: 1.4; margin-bottom: 10px; }
.fp-news-meta    { font-size: 12px; color: #9CA3AF; }

/* Jobs */
.fp-jobs-list { display: flex; flex-direction: column; gap: 8px; }
.fp-job-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: #FFFFFF;
  border: 1px solid #E2DDD8; border-radius: 12px;
  cursor: pointer; transition: border-color .18s; text-decoration: none;
}
.fp-job-row:hover { border-color: rgba(201,151,42,.3); }
.fp-job-logo {
  width: 42px; height: 42px; border-radius: 10px; background: #F0EDE8;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.fp-job-info { flex: 1; min-width: 0; }
.fp-job-title { font-size: 14px; font-weight: 600; color: #1A1A2E; margin-bottom: 3px; }
.fp-job-meta { font-size: 12px; color: #6B7280; display: flex; gap: 8px; flex-wrap: wrap; }
.fp-job-badge { display: inline-flex; align-items: center; padding: 4px 10px; background: #F0EDE8; border-radius: 20px; font-size: 11px; font-weight: 600; color: #4A5568; flex-shrink: 0; }
.fp-job-apply { padding: 8px 16px; border-radius: 8px; background: #c9972a; color: #0f0f0f; font-size: 12px; font-weight: 700; border: none; cursor: pointer; flex-shrink: 0; text-decoration: none; display: inline-flex; transition: background .15s; }
.fp-job-apply:hover { background: #e0a830; color: #0f0f0f !important; }

/* 2-col section row */
.fp-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Events */
.fp-events-list { display: flex; flex-direction: column; gap: 10px; }
.fp-event-card {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: 14px; padding: 18px; display: flex; gap: 16px;
  cursor: pointer; transition: border-color .2s; text-decoration: none;
}
.fp-event-card:hover { border-color: rgba(201,151,42,.35); }
.fp-event-cal { width: 50px; flex-shrink: 0; text-align: center; }
.fp-event-day { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 700; color: #fff; line-height: 1; display: block; }
.fp-event-mon { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #c9972a; display: block; margin-top: 2px; }
.fp-event-info { flex: 1; min-width: 0; }
.fp-event-title { font-size: 14px; font-weight: 600; color: #1A1A2E; margin-bottom: 6px; line-height: 1.35; }
.fp-event-meta { font-size: 12px; color: #6B7280; }
.fp-event-rsvp { align-self: flex-start; padding: 7px 14px; border-radius: 8px; background: #F0EDE8; color: #1A1A2E !important; font-size: 12px; font-weight: 600; border: none; cursor: pointer; flex-shrink: 0; text-decoration: none; transition: background .15s; }
.fp-event-rsvp:hover { background: #E2DDD8; }

/* Forum */
.fp-forum-list { display: flex; flex-direction: column; gap: 6px; }
.fp-forum-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; background: #FFFFFF;
  border: 1px solid #E2DDD8; border-radius: 10px;
  cursor: pointer; transition: border-color .15s; text-decoration: none;
}
.fp-forum-row:hover { border-color: #C9972A; background: #FDFAF5; }
.fp-forum-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.fp-forum-body { flex: 1; min-width: 0; }
.fp-forum-title { font-size: 13px; font-weight: 500; color: #1A1A2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-forum-meta { font-size: 11px; color: #9CA3AF; margin-top: 1px; }
.fp-forum-replies { font-size: 11px; color: #9CA3AF; flex-shrink: 0; }

/* CTA banner */
.fp-cta-banner {
  max-width: var(--tc-max-w);
  margin: 0 auto 56px;
  padding-left: 32px; padding-right: 32px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1A2A4A 0%, #1A3A5C 60%, #2A4A2A 100%);
  border: 1px solid rgba(201,151,42,.25); border-radius: 20px;
  padding: 48px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
}
.fp-cta-title { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.fp-cta-text p { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.6; max-width: 480px; }
.fp-cta-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.fp-empty-msg { padding: 24px; text-align: center; font-size: 13px; color: #9CA3AF; }
.fp-empty-msg a { color: #c9972a; font-weight: 600; }


/* Forum rows — full-width below news */
.fp-forum-rows { display: flex; flex-direction: column; gap: 8px; }
.fp-forum-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #FFFFFF;
  border: 1px solid #E2DDD8; border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s; text-decoration: none;
}
.fp-forum-row:hover { border-color: #C9972A; background: #FDFAF5; }
.fp-forum-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.fp-forum-body { flex: 1; min-width: 0; }
.fp-forum-title { font-size: 14px; font-weight: 600; color: #1A1A2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-forum-meta { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.fp-forum-replies { font-size: 12px; color: #9CA3AF; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 800px) {
  .fp-news-grid { grid-template-columns: 1fr 1fr; }
  .fp-2col { grid-template-columns: 1fr; gap: 24px; }
  .fp-hero { padding: 56px 20px 48px; }
  .fp-hero-stat { padding: 14px 16px; }
  .fp-section { padding: 40px 20px; }
  .fp-cta-banner { flex-direction: column; text-align: center; margin: 0 20px 40px; padding: 32px 24px; }
  .fp-cta-actions { justify-content: center; }
}
@media (max-width: 520px) {
  .fp-news-grid { grid-template-columns: 1fr; }
  .fp-hero-stats { flex-direction: column; border: none; gap: 8px; }
  .fp-hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 20px; border-radius: 10px; background: rgba(255,255,255,.04); }
}

/* ═══════════════════════════════════════════════════════════
   INNER PAGES — shared system matching front-page style
   Used by: Community, Events, Jobs, Businesses, Directory,
            Resources, Chat
═══════════════════════════════════════════════════════════ */

/* Page wrapper */
.ip-wrap { background: #F7F5F0; min-height: 60vh; }

/* Page header */
.ip-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E2DDD8;
  padding: 32px 40px 0;
}
.ip-header-inner { max-width: var(--tc-max-w); margin: 0 auto; width: 100%; }
.ip-crumb {
  font-size: 12px; color: #9CA3AF; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.ip-crumb a { color: #9CA3AF; text-decoration: none; }
.ip-crumb a:hover { color: #C9972A; }
.ip-crumb-sep { opacity: .4; }
.ip-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px,4vw,36px); font-weight: 700;
  color: #1A1A2E; margin-bottom: 4px; letter-spacing: -.02em;
}
.ip-title-tib { font-family: var(--font-tibetan); font-size: 15px; color: #9CA3AF; font-weight: 400; margin-left: 10px; }
.ip-sub { font-size: 14px; color: #6B7280; margin-bottom: 20px; }

/* Action bar (search + buttons) */
.ip-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 0;
}
.ip-search {
  display: flex; align-items: center; gap: 10px;
  background: #F7F5F0; border: 1px solid #E2DDD8;
  border-radius: 8px; padding: 9px 14px; flex: 1; max-width: 320px;
}
.ip-search svg { color: #9CA3AF; flex-shrink: 0; width: 15px; height: 15px; }
.ip-search input {
  background: transparent; border: none; outline: none;
  font-size: 14px; color: #1A1A2E; width: 100%; font-family: var(--font-ui);
}
.ip-search input::placeholder { color: #B0B8C4; }
.ip-tabs {
  display: flex; gap: 2px; background: #F0EDE8;
  border-radius: 8px; padding: 3px;
}
.ip-tab {
  padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: none; border: none; color: #6B7280; cursor: pointer; transition: all .15s;
}
.ip-tab.active { background: #FFFFFF; color: #1A1A2E; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* Body layout */
.ip-body { max-width: var(--tc-max-w); margin: 0 auto; padding: 28px 40px 64px; }
.ip-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }

/* Filter sidebar */
.ip-filter { display: flex; flex-direction: column; gap: 12px; }
.ip-filter-block {
  background: #FFFFFF; border: 1px solid #E2DDD8; border-radius: 10px; overflow: hidden;
}
.ip-filter-hd {
  padding: 10px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #9CA3AF; border-bottom: 1px solid #EBE8E3; background: #F7F5F0;
}
.ip-filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-size: 13px; color: #4A5568; cursor: pointer;
  transition: background .12s; border-bottom: 1px solid #EBE8E3;
}
.ip-filter-item:last-child { border-bottom: none; }
.ip-filter-item:hover { background: #F7F5F0; color: #1A1A2E; }
.ip-filter-item.active { color: #C9972A; font-weight: 600; }
.ip-filter-count { font-size: 11px; color: #B0B8C4; }

/* Content area cards */
.ip-card-list { display: flex; flex-direction: column; gap: 10px; }
.ip-card {
  background: #FFFFFF; border: 1px solid #E2DDD8; border-radius: 12px;
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: #1A1A2E; transition: border-color .15s, box-shadow .15s;
}
.ip-card:hover { border-color: #C9972A; box-shadow: 0 2px 12px rgba(0,0,0,.06); }

/* Card logo/avatar */
.ip-card-logo {
  width: 44px; height: 44px; border-radius: 10px; background: #F0EDE8;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #4A5568; flex-shrink: 0; overflow: hidden;
}
.ip-card-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Card body */
.ip-card-body { flex: 1; min-width: 0; }
.ip-card-title { font-size: 15px; font-weight: 600; color: #1A1A2E; margin-bottom: 3px; line-height: 1.35; }
.ip-card-meta { font-size: 12px; color: #6B7280; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ip-card-meta span { display: flex; align-items: center; gap: 3px; }

/* Card right */
.ip-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.ip-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  background: #F0EDE8; border-radius: 20px; font-size: 11px; font-weight: 600; color: #4A5568;
}
.ip-badge-gold { background: rgba(201,151,42,.12); color: #a07020; }
.ip-badge-green { background: rgba(34,197,94,.1); color: #16a34a; }
.ip-badge-blue  { background: rgba(56,160,220,.1); color: #1A5C8A; }
.ip-btn-sm {
  padding: 7px 16px; border-radius: 7px; background: #C9972A;
  color: #FFFFFF !important; font-size: 12px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; display: inline-flex; transition: background .15s;
}
.ip-btn-sm:hover { background: #a07020; }
.ip-btn-ghost {
  padding: 7px 16px; border-radius: 7px; background: #F0EDE8;
  color: #1A1A2E !important; font-size: 12px; font-weight: 600;
  border: 1px solid #E2DDD8; cursor: pointer; text-decoration: none; display: inline-flex; transition: background .15s;
}
.ip-btn-ghost:hover { background: #E2DDD8; }

/* Grid layout for business/directory cards */
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.ip-grid-card {
  background: #FFFFFF; border: 1px solid #E2DDD8; border-radius: 12px;
  overflow: hidden; text-decoration: none; color: #1A1A2E;
  transition: border-color .15s, box-shadow .15s;
}
.ip-grid-card:hover { border-color: #C9972A; box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.ip-grid-thumb {
  height: 120px; background: linear-gradient(135deg,#1A3A5C,#C9972A);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: rgba(255,255,255,.15); overflow: hidden;
}
.ip-grid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ip-grid-body { padding: 14px 16px; }
.ip-grid-title { font-size: 14px; font-weight: 700; color: #1A1A2E; margin-bottom: 4px; line-height: 1.3; }
.ip-grid-sub   { font-size: 12px; color: #6B7280; }
.ip-grid-tags  { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.ip-grid-tag   { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #F0EDE8; color: #4A5568; }

/* Event calendar card */
.ip-event-card {
  background: #FFFFFF; border: 1px solid #E2DDD8; border-radius: 12px;
  padding: 18px; display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: #1A1A2E;
  transition: border-color .15s, box-shadow .15s;
}
.ip-event-card:hover { border-color: #C9972A; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.ip-event-cal {
  width: 54px; flex-shrink: 0; text-align: center;
  background: #F0EDE8; border-radius: 10px; padding: 8px 0;
}
.ip-event-day { font-family: 'Fraunces',Georgia,serif; font-size: 28px; font-weight: 700; color: #1A1A2E; line-height: 1; display: block; }
.ip-event-mon { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #C9972A; display: block; margin-top: 1px; }
.ip-event-info { flex: 1; min-width: 0; }
.ip-event-title { font-size: 14px; font-weight: 600; color: #1A1A2E; margin-bottom: 5px; line-height: 1.35; }
.ip-event-meta  { font-size: 12px; color: #6B7280; }

/* Empty state */
.ip-empty {
  text-align: center; padding: 56px 24px;
  background: #FFFFFF; border: 1px dashed #E2DDD8; border-radius: 12px;
}
.ip-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.ip-empty h3 { font-family: 'Fraunces',Georgia,serif; font-size: 18px; font-weight: 600; color: #1A1A2E; margin-bottom: 6px; }
.ip-empty p { font-size: 14px; color: #6B7280; }

/* Pagination */
.ip-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.ip-pagination a, .ip-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 7px; border: 1px solid #E2DDD8;
  font-size: 14px; text-decoration: none; color: #4A5568;
  background: #FFFFFF; transition: all .15s;
}
.ip-pagination a:hover { border-color: #C9972A; color: #C9972A; }
.ip-pagination .current { background: #C9972A; border-color: #C9972A; color: #FFFFFF !important; }

/* Stats row in page headers */
.ip-stats { display: flex; gap: 0; background: #F0EDE8; border-radius: 10px; overflow: hidden; margin-top: 4px; margin-bottom: 8px; display: inline-flex; }
.ip-stat { padding: 10px 20px; text-align: center; border-right: 1px solid #E2DDD8; }
.ip-stat:last-child { border-right: none; }
.ip-stat strong { display: block; font-family: 'Fraunces',Georgia,serif; font-size: 20px; font-weight: 700; color: #1A1A2E; line-height: 1; }
.ip-stat span { display: block; font-size: 10px; color: #9CA3AF; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .ip-layout { grid-template-columns: 1fr; }
  .ip-filter { display: none; }
  .ip-header { padding: 20px 16px 0; }
  .ip-body { padding: 20px 16px 40px; }
  .ip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ip-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   FORUM INDEX — Category card grid
═══════════════════════════════════════════════════════════ */
.tcf-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.tcf-cat-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: 12px; padding: 18px 20px;
  text-decoration: none; color: #1A1A2E;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tcf-cat-card:hover {
  border-color: #C9972A;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transform: translateY(-1px);
}
.tcf-cat-card-icon {
  font-size: 26px; line-height: 1; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 10px;
  background: #F0EDE8; display: flex; align-items: center; justify-content: center;
}
.tcf-cat-card-body { flex: 1; min-width: 0; }
.tcf-cat-card-name {
  display: block; font-size: 15px; font-weight: 700;
  color: #1A1A2E; margin-bottom: 4px; line-height: 1.3;
}
.tcf-cat-card:hover .tcf-cat-card-name { color: #C9972A; }
.tcf-cat-card-desc {
  display: block; font-size: 12px; color: #6B7280;
  line-height: 1.5; margin-bottom: 10px;
}
.tcf-cat-card-footer {
  display: flex; flex-direction: column; gap: 2px;
}
.tcf-last-title {
  font-size: 12px; font-weight: 600; color: #1A3A5C;
  text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; display: block;
  max-width: 200px;
}
.tcf-last-title:hover { color: #C9972A; }
.tcf-last-meta { font-size: 11px; color: #9CA3AF; }
.tcf-no-posts { font-size: 12px; color: #B0B8C4; font-style: italic; }

.tcf-cat-card-count {
  flex-shrink: 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tcf-cat-card-count strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 700; color: #1A1A2E; line-height: 1;
}
.tcf-cat-card-count span {
  font-size: 10px; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: .06em;
}

/* Forum topic list thead */
.forum-topic-thead {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 18px 8px 72px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #9CA3AF;
}

/* Forum topic rows — used by both page-community.php and override */
.forum-topic-list { display: flex; flex-direction: column; }
.forum-topic-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: #fff; border: 1px solid #E2DDD8;
  border-radius: 0; border-bottom: none;
  text-decoration: none; color: #1A1A2E;
  transition: background .12s, border-color .12s;
}
.forum-topic-list > .forum-topic-row:first-child { border-radius: 12px 12px 0 0; }
.forum-topic-list > .forum-topic-row:last-child  { border-radius: 0 0 12px 12px; border-bottom: 1px solid #E2DDD8; }
.forum-topic-list > .forum-topic-row:only-child  { border-radius: 12px; border-bottom: 1px solid #E2DDD8; }
.forum-topic-row:hover { background: #FDFAF5; border-color: #C9972A; position: relative; z-index: 1; }
.forum-topic-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.forum-topic-body { flex: 1; min-width: 0; }
.forum-topic-title {
  font-size: 14px; font-weight: 600; color: #1A1A2E; line-height: 1.4;
  margin-bottom: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.forum-topic-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: #9CA3AF;
}
.forum-topic-meta strong { color: #4A5568; font-weight: 600; }
.forum-cat-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  background: #F0EDE8; border-radius: 20px; color: #4A5568;
}
.forum-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}
.forum-badge-pin    { background: #FEF3C7; color: #92400E; }
.forum-badge-solved { background: #D1FAE5; color: #065F46; }
.forum-badge-closed { background: #F0EDE8; color: #6B7280; }
.forum-badge-new    { background: #DBEAFE; color: #1E40AF; }
.forum-topic-stats  { display: flex; gap: 20px; flex-shrink: 0; }
.forum-topic-stat   { text-align: center; }
.forum-topic-stat-n { display: block; font-size: 16px; font-weight: 700; color: #1A1A2E; line-height: 1; }
.forum-topic-stat-l { display: block; font-size: 10px; color: #9CA3AF; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* Pagination from plugin */
.tcf-pagination, .tcp-pagination {
  display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap;
}
.tcf-pagination a, .tcf-pagination span,
.tcp-pagination a, .tcp-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 7px; border: 1px solid #E2DDD8;
  font-size: 14px; text-decoration: none; color: #4A5568;
  background: #fff; transition: all .15s;
}
.tcf-pagination a:hover,  .tcp-pagination a:hover  { border-color: #C9972A; color: #C9972A; }
.tcf-pagination .current, .tcp-pagination .current  { background: #C9972A; border-color: #C9972A; color: #fff !important; }

/* Responsive */
@media (max-width: 768px) {
  .tcf-cats-grid { grid-template-columns: 1fr; }
  .forum-topic-stats { display: none; }
  .forum-topic-row { padding: 12px 14px; }
  .forum-topic-thead { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SUBMIT FORM — [tcp_submit_form] shortcode
   Post a Job / Event / Business / Resource / Directory
═══════════════════════════════════════════════════════════ */

.tcp-submit-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 32px 64px;
}

/* Type tabs */
.tcp-submit-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: #F0EDE8; border-radius: 10px;
  padding: 4px; margin-bottom: 24px;
  width: fit-content;
}
.tcp-submit-tab {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: #6B7280;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.tcp-submit-tab:hover  { color: #1A1A2E; background: rgba(255,255,255,.6); }
.tcp-submit-tab.tcp-tab-active {
  background: #FFFFFF; color: #1A1A2E;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

/* Rate / status notice */
.tcp-rate-notice {
  background: #F7F5F0; border: 1px solid #E2DDD8;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #4A5568; margin-bottom: 20px;
}
.tcp-rate-notice strong { color: #1A1A2E; }
.tcp-rate-warn    { border-color: #FCD34D; background: #FFFBEB; color: #92400E; }
.tcp-rate-block   { border-color: #FCA5A5; background: #FEF2F2; color: #991B1B; }
.tcp-rate-trusted { border-color: #6EE7B7; background: #ECFDF5; color: #065F46; }
.tcp-trusted-progress { font-size: 11px; color: #6B7280; }

/* Form card */
.tcp-form.tcp-submit-form {
  background: #FFFFFF; border: 1px solid #E2DDD8;
  border-radius: 14px; padding: 28px 28px 24px;
}

/* Form groups */
.tcp-form-group {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 18px;
}
.tcp-form-group label {
  font-size: 13px; font-weight: 600; color: #2D3748;
}
.tcp-form-group .req { color: #DC2626; }

/* Inputs */
.tcp-input, .tcp-textarea, .tcp-select {
  width: 100%; padding: 10px 14px;
  background: #F7F5F0; border: 1.5px solid #E2DDD8;
  border-radius: 8px; font-size: 14px; font-family: var(--font-ui);
  color: #1A1A2E; transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.tcp-input:focus, .tcp-textarea:focus, .tcp-select:focus {
  outline: none; border-color: #C9972A;
  box-shadow: 0 0 0 3px rgba(201,151,42,.12);
  background: #FFFFFF;
}
.tcp-input::placeholder, .tcp-textarea::placeholder { color: #B0B8C4; }
.tcp-textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.tcp-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Two-col row inside form */
.tcp-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* Footer */
.tcp-form-footer {
  display: flex; align-items: center; gap: 16px;
  margin-top: 8px; padding-top: 20px;
  border-top: 1px solid #EBE8E3; flex-wrap: wrap;
}
.tcp-form-note { font-size: 12px; color: #9CA3AF; margin: 0; }

/* Primary submit button */
.tcp-btn.tcp-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 28px; background: #C9972A; color: #FFFFFF !important;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none;
  transition: background .15s; font-family: var(--font-ui);
}
.tcp-btn.tcp-btn-primary:hover { background: #a07020; }

/* Notices inside form */
.tcp-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.tcp-notice.tcp-notice-success { background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46; }
.tcp-notice.tcp-notice-error   { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }

/* Auth gate (not logged in) */
.tcp-auth-gate {
  text-align: center; padding: 56px 24px;
  background: #FFFFFF; border: 1px solid #E2DDD8; border-radius: 14px;
  max-width: 480px; margin: 40px auto;
}
.tcp-auth-gate-icon { font-size: 40px; margin-bottom: 14px; }
.tcp-auth-gate-heading { font-family: 'Fraunces',Georgia,serif; font-size: 22px; font-weight: 700; color: #1A1A2E; margin-bottom: 8px; }
.tcp-auth-gate-sub { font-size: 15px; color: #6B7280; margin-bottom: 24px; }
.tcp-auth-gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Page wrapper for submit pages */
.page-template-page-submit .entry-content,
body.page-id-submit .entry-content,
.tcp-submit-page-wrap {
  background: #F7F5F0; min-height: 60vh;
}

@media (max-width: 640px) {
  .tcp-submit-wrap { padding: 20px 16px 40px; }
  .tcp-form.tcp-submit-form { padding: 20px 16px; }
  .tcp-form-row { grid-template-columns: 1fr; }
  .tcp-submit-tabs { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL LIGHT THEME OVERRIDES
   Catches any remaining dark var() references from plugin/forum
═══════════════════════════════════════════════════════════ */

/* Force off-white body everywhere */
body { background: #F7F5F0 !important; color: #1A1A2E !important; }

/* Forum wrapper always off-white */
.tcf-wrap { background: #F7F5F0; color: #1A1A2E; }

/* All plugin/forum cards light */
.tcf-cat-card, .tcf-topic-row, .tcf-new-topic-card,
.tcf-reply, .tcf-topic-single, .tcf-reply-form-wrap,
.tcp-widget-card, .tce-card {
  background: #FFFFFF !important;
  border-color: #E2DDD8 !important;
  color: #1A1A2E !important;
}

/* All headings in forum/plugin dark */
.tcf-page-title, .tcf-cat-card-name, .tcf-topic-title-link,
.tcp-widget-title, .tce-section-title {
  color: #1A1A2E !important;
}

/* Muted text */
.tcf-topic-by, .tcf-last-meta, .tcf-cat-desc,
.tcp-widget-item, .tce-section-sub {
  color: #6B7280 !important;
}

/* Gold button — all forum CTAs */
.tcf-btn, .tcf-btn-new, .tcp-btn-primary,
.tcp-btn.tcp-btn-primary {
  background: #C9972A !important;
  color: #FFFFFF !important;
  border: none !important;
}
.tcf-btn:hover, .tcf-btn-new:hover { background: #a07020 !important; }

/* Inputs always light */
.tcf-input, .tcf-textarea, .tcf-select,
.tcp-input, .tcp-textarea, .tcp-select,
.tce-field input, .tce-field textarea, .tce-field select {
  background: #F7F5F0 !important;
  border-color: #E2DDD8 !important;
  color: #1A1A2E !important;
}
.tcf-input:focus, .tcf-textarea:focus, .tcp-input:focus,
.tce-field input:focus, .tce-field textarea:focus {
  border-color: #C9972A !important;
  background: #FFFFFF !important;
}

/* Topic avatar initials */
.tcf-topic-avatar { color: #FFFFFF !important; }

/* Pagination */
.tcf-pagination a, .tcf-pagination span,
.page-numbers {
  background: #FFFFFF !important;
  border-color: #E2DDD8 !important;
  color: #4A5568 !important;
}
.tcf-pagination .current, .page-numbers.current {
  background: #C9972A !important;
  border-color: #C9972A !important;
  color: #FFFFFF !important;
}

/* Hover rows */
.tcf-topic-row:hover {
  background: #FDFAF5 !important;
  border-color: #C9972A !important;
}
