/* TrustHub — premium product layer
   Loaded after the legacy stylesheet so existing product flows inherit a unified,
   accessible visual system without changing route or form behavior. */
:root {
  --navy: #102a43;
  --navy-mid: #163e5d;
  --navy-light: #287b7a;
  --navy-dark: #081d31;
  --gold: #e56b4f;
  --gold-dark: #c9543a;
  --gold-light: #f4a261;
  --sand: #f5c16c;
  --cream: #f7f8fc;
  --cream-dark: #eef2f7;
  --white: #ffffff;
  --ink: #162235;
  --ink-soft: #40526a;
  --ink-muted: #66758b;
  --ink-faint: #8894a7;
  --border: #dce3ec;
  --border-dark: #b9c5d4;
  --shadow-sm: 0 1px 2px rgba(16,42,67,.04), 0 2px 8px rgba(16,42,67,.05);
  --shadow-md: 0 10px 30px rgba(16,42,67,.09);
  --shadow-lg: 0 24px 64px rgba(16,42,67,.14);
  --shadow-gold: 0 12px 28px rgba(229,107,79,.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
}
html { background: var(--cream); }
body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body > .page-content { background: var(--cream); }
p { color: var(--ink-soft); line-height: 1.72; }
h1,h2,h3,h4,h5 { color: var(--navy); letter-spacing: -.025em; }
h1,h2 { font-family: 'Lora', Georgia, serif; }
h3,h4,h5 { font-family: 'Nunito', sans-serif; font-weight: 800; }
.container { max-width: 1240px; }

/* Global navigation */
.navbar {
  background: rgba(8,29,49,.96);
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 24px rgba(8,29,49,.14);
  backdrop-filter: blur(16px);
}
.navbar .container { min-height: 72px; column-gap: 2rem; }
.navbar-brand { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: -.045em; }
.navbar-brand .brand-dot { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(229,107,79,.16); }
.navbar-links { gap: 1.5rem; }
.navbar-links a, .btn-nav-login { color: rgba(255,255,255,.76); text-transform: none; letter-spacing: 0; font-size: .875rem; }
.navbar-links a:hover, .navbar-links a.nav-active, .btn-nav-login:hover { color: #fff; }
.btn-nav-signup {
  border-radius: 999px;
  background: var(--gold);
  color: #fff !important;
  padding: .58rem 1rem;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(229,107,79,.24);
}
.btn-nav-signup:hover { background: var(--gold-dark); color:#fff !important; }
.verify-nav-banner { background: #fef3e8; color: #6e321f; border-bottom: 1px solid #f6d5bb; font-size: .875rem; padding: .55rem 1rem; text-align:center; }
.verify-nav-banner a { color: #a23e26; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

/* Shared surfaces and controls */
.page-content { padding: 3rem 0 4rem; }
.btn {
  border-radius: 10px;
  min-height: 42px;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--navy); border-color: var(--navy); color:#fff; box-shadow: 0 3px 8px rgba(16,42,67,.12); }
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border-dark); }
.btn-secondary:hover { background: #f5f8fb; color: var(--navy); border-color: var(--navy); }
.btn-gold { color: #fff; border-color: var(--gold); }
.btn-gold:hover { color:#fff; }
.form-control,.form-input {
  min-height: 48px;
  border-color: var(--border);
  border-radius: 10px;
  box-shadow: inset 0 1px 1px rgba(16,42,67,.02);
}
.form-control:focus,.form-input:focus { border-color: #287b7a; box-shadow: 0 0 0 4px rgba(40,123,122,.13); }
.form-group label { color: var(--ink-soft); text-transform:none; letter-spacing:0; font-size:.875rem; }
.card,.hub-card,.auth-form-wrapper,.verify-wrapper {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.card:hover,.hub-card:hover { box-shadow: var(--shadow-md); }

/* Auth and verification conversion moments */
.auth-form-wrapper {
  max-width: 480px;
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  background:#fff;
}
.auth-form-wrapper h1 { font-size: 2.2rem; }
.auth-form-wrapper .subtitle { font-size: 1rem; margin-bottom: 1.75rem; }
.signup-trust-note { border-radius: 10px; background: #eff8f7; color: #245b59; border: 1px solid #c9e8e5; }
.btn-google { border-radius: 10px; border-color: var(--border); }
.divider { color: var(--ink-faint); }
.verify-page { padding: 1rem 0 3rem; }
.verify-section-card { border-color: var(--border); box-shadow: var(--shadow-sm); }
.verify-hero-icon,.verify-step-num { background: var(--navy); }
.btn-verify-cta { background: var(--gold); border-color:var(--gold); color:#fff; box-shadow: var(--shadow-gold); }
.btn-verify-cta:hover { background:var(--gold-dark); color:#fff; }

/* Hubs and conversation surfaces */
.hub-page { max-width: 1180px; margin:0 auto; }
.hub-hero {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 2rem 3.5rem;
  margin: -3rem -1.5rem 2.5rem;
  color:#fff;
  background: radial-gradient(circle at 80% -20%, rgba(68,196,183,.38), transparent 34%), linear-gradient(120deg, #0b2946, #102a43 60%, #163e5d);
  border-bottom: 0;
}
.hub-hero::after { content:''; position:absolute; width:240px; height:240px; right:7%; bottom:-145px; border:1px solid rgba(255,255,255,.18); border-radius:50%; }
.hub-hero > * { position:relative; z-index:1; }
.hub-hero h1 { color:#fff; font-size:3.25rem; letter-spacing:-.05em; }
.hub-hero p { color:rgba(255,255,255,.77); font-size:1.05rem; }
.hub-search-form { max-width:560px; box-shadow:0 16px 36px rgba(0,0,0,.2); border-radius:12px; overflow:visible; gap:.5rem; }
.hub-search-input { background:#fff; color:var(--ink); border-radius:10px; border:1px solid rgba(255,255,255,.3); }
.hub-search-input::placeholder { color:var(--ink-faint); }
.hub-search-form .btn { border-radius:10px; background:var(--gold); border-color:var(--gold); color:#fff; }
.hub-category-row { gap:.6rem; margin-bottom:2.25rem; }
.hub-chip { background:#fff; color:var(--ink-soft); border-color:var(--border); border-radius:999px; padding:.5rem 1rem; }
.hub-chip:hover:not(.active) { color:var(--navy); border-color:var(--navy); background:#fff; }
.hub-chip.active { background:var(--navy); border-color:var(--navy); color:#fff; }
.hub-grid-header h2 { color:var(--navy); }
.hub-count-badge { background:#edf5f4; color:#286866; }
.hub-cards-grid { gap:1.25rem; }
.hub-card { border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-sm); }
.hub-card-link:hover,.hub-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.hub-card p,.hub-card-create p { font-family:'Nunito',sans-serif; color:var(--ink-muted); }
.hub-card-stats { border-top:1px solid var(--border); padding-top:.75rem; color:var(--ink-muted); }
.hub-header,.hub-post-detail-card,.hub-post-card,.hub-sidebar-card,.hub-comment-form-card {
  border-color:var(--border);
  box-shadow:var(--shadow-sm);
}
.hub-post-card:hover { border-color:#c8d8e6; }
.hub-post-body h4 a:hover { color:var(--navy-mid); }
.hub-post-tag { border-radius:999px; }
.vote-btn { border-radius:8px; }
.hub-sidebar { top:5.5rem; }
.empty-state { background:#fff; border:1px dashed var(--border-dark); border-radius:16px; }

/* Footer */
.footer { background:#081d31; border-top:0; padding:2.5rem 0; }
.footer p,.footer a,.footer-text-link { color:rgba(255,255,255,.68); }
.footer a:hover,.footer-text-link:hover { color:#fff; }

/* Premium landing page */
.th-landing {
  --th-ink: #102a43;
  --th-teal: #287b7a;
  --th-coral: #e56b4f;
  background:#fbfcfe;
  color:var(--th-ink);
}
.th-landing * { box-sizing:border-box; }
.th-landing .container { max-width:1200px; }
.th-nav {
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  background:rgba(251,252,254,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid #e7ecf2;
  position:sticky;
  top:0;
  z-index:10;
}
.th-nav .container { width:100%; display:flex; align-items:center; justify-content:space-between; }
.th-brand { color:var(--th-ink); font-family:'Nunito',sans-serif; font-size:1.42rem; font-weight:900; letter-spacing:-.06em; }
.th-brand:hover { color:var(--th-ink); text-decoration:none; }
.th-brand-mark { color:var(--th-coral); }
.th-nav-actions { display:flex; align-items:center; gap:1.25rem; }
.th-text-link { color:var(--ink-soft); font-size:.9rem; font-weight:800; }
.th-text-link:hover { color:var(--th-ink); text-decoration:none; }
.th-pill { display:inline-flex; align-items:center; justify-content:center; min-height:43px; border-radius:999px; padding:.72rem 1.1rem; font-size:.88rem; font-weight:900; text-decoration:none; transition:.2s ease; }
.th-pill-primary { color:#fff; background:var(--th-ink); box-shadow:0 7px 16px rgba(16,42,67,.13); }
.th-pill-primary:hover { color:#fff; background:#163e5d; text-decoration:none; transform:translateY(-1px); }
.th-hero {
  overflow:hidden;
  position:relative;
  padding:7.5rem 0 6rem;
  background:radial-gradient(circle at 80% 12%, rgba(74,190,179,.18), transparent 24%), radial-gradient(circle at 18% 82%, rgba(229,107,79,.11), transparent 24%), #fbfcfe;
}
.th-hero::after { content:''; position:absolute; width:560px; height:560px; border:1px solid #dce9eb; border-radius:50%; right:-260px; top:-290px; }
.th-hero-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr); align-items:center; gap:4rem; position:relative; z-index:1; }
.th-eyebrow { display:inline-flex; align-items:center; gap:.55rem; border:1px solid #c9dfdc; color:#17645f; background:#eff8f7; border-radius:999px; padding:.44rem .78rem; font-size:.74rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.th-eyebrow::before { content:''; width:7px; height:7px; border-radius:50%; background:#36a49b; box-shadow:0 0 0 4px rgba(54,164,155,.12); }
.th-hero h1 { max-width:720px; font-family:'Lora',Georgia,serif; font-size:clamp(3rem,5.6vw,5.15rem); line-height:.98; letter-spacing:-.065em; margin:1.3rem 0 1.4rem; color:var(--th-ink); }
.th-hero h1 em { color:var(--th-teal); font-style:normal; }
.th-hero-copy { max-width:630px; font-size:1.15rem; color:#4a5b70; margin:0 0 2rem; }
.th-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.85rem; }
.th-primary-cta,.th-secondary-cta { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:.9rem 1.35rem; border-radius:12px; text-decoration:none; font-weight:900; font-size:.95rem; transition:.2s ease; }
.th-primary-cta { background:var(--th-coral); color:#fff; box-shadow:0 12px 24px rgba(229,107,79,.24); }
.th-primary-cta:hover { background:#c9543a; color:#fff; transform:translateY(-2px); text-decoration:none; }
.th-secondary-cta { color:var(--th-ink); background:#fff; border:1px solid #cad5e0; }
.th-secondary-cta:hover { border-color:var(--th-ink); color:var(--th-ink); text-decoration:none; }
.th-reassurance { display:flex; align-items:center; gap:.5rem; color:#627186; font-size:.82rem; font-weight:700; margin-top:1rem; }
.th-reassurance svg { color:#287b7a; width:17px; height:17px; }
.th-hero-card { background:#fff; border:1px solid #dce5ee; border-radius:22px; padding:1.35rem; box-shadow:0 26px 65px rgba(16,42,67,.14); transform:rotate(1.2deg); }
.th-hero-card-inner { border-radius:15px; padding:1.35rem; background:linear-gradient(135deg,#102a43,#174b66); color:#fff; min-height:370px; display:flex; flex-direction:column; justify-content:space-between; }
.th-card-label { color:#87d8d1; font-size:.72rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.th-card-quote { font-family:'Lora',Georgia,serif; font-size:1.65rem; line-height:1.25; letter-spacing:-.03em; max-width:330px; }
.th-person { display:flex; align-items:center; gap:.7rem; padding-top:1rem; border-top:1px solid rgba(255,255,255,.15); }
.th-person-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#f4a261; color:#102a43; font-weight:900; font-size:.77rem; }
.th-person-meta strong,.th-person-meta span { display:block; font-size:.78rem; }
.th-person-meta span { color:rgba(255,255,255,.62); margin-top:.05rem; }
.th-proof { margin-top:3rem; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid #dce5ee; border-bottom:1px solid #dce5ee; }
.th-proof-item { padding:1.15rem 1.2rem; border-right:1px solid #dce5ee; }
.th-proof-item:last-child { border-right:0; }
.th-proof-kicker { display:block; font-size:.72rem; font-weight:900; color:#287b7a; text-transform:uppercase; letter-spacing:.08em; margin-bottom:.2rem; }
.th-proof-item span:last-child { color:#4a5b70; font-weight:700; font-size:.9rem; }
.th-section { padding:6.5rem 0; }
.th-section-soft { background:#f0f6f6; }
.th-section-ink { background:#102a43; color:#fff; }
.th-section-ink h2,.th-section-ink p { color:#fff; }
.th-section-heading { max-width:670px; margin-bottom:3.2rem; }
.th-kicker { color:#287b7a; font-size:.75rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; margin-bottom:.75rem; }
.th-section-heading h2 { font-size:clamp(2.1rem,3.7vw,3.35rem); margin:0 0 1rem; letter-spacing:-.055em; }
.th-section-heading p { font-size:1.07rem; }
.th-value-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.th-value { background:#fff; border:1px solid #dce5ee; border-radius:16px; padding:1.65rem; }
.th-value-number { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#e9f5f4; color:#17645f; font-size:.78rem; font-weight:900; margin-bottom:1.35rem; }
.th-value h3 { color:var(--th-ink); font-size:1.12rem; margin:0 0 .55rem; }
.th-value p { font-size:.94rem; margin:0; }
.th-path { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.th-path-card { position:relative; padding:2rem; border-radius:18px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); }
.th-path-card.is-accent { background:#fff; color:var(--th-ink); border-color:#fff; }
.th-path-card.is-accent h3,.th-path-card.is-accent p { color:var(--th-ink); }
.th-path-tag { display:inline-block; border-radius:999px; padding:.35rem .65rem; color:#a5e5df; background:rgba(98,211,200,.12); font-size:.7rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.th-path-card.is-accent .th-path-tag { color:#b54b35; background:#fff0ec; }
.th-path h3 { color:#fff; margin:1.15rem 0 .6rem; font-size:1.45rem; }
.th-path p { color:rgba(255,255,255,.7); margin:0 0 1.25rem; }
.th-path-list { list-style:none; margin:0; padding:0; display:grid; gap:.6rem; }
.th-path-list li { display:flex; align-items:flex-start; gap:.55rem; font-size:.9rem; color:rgba(255,255,255,.8); }
.th-path-list li::before { content:'✓'; color:#7ee0d7; font-weight:900; }
.th-path-card.is-accent .th-path-list li { color:#40526a; }
.th-path-card.is-accent .th-path-list li::before { color:#287b7a; }
.th-privacy { display:grid; grid-template-columns:.85fr 1.15fr; gap:5rem; align-items:center; }
.th-privacy-panel { padding:2rem; background:#fff; border:1px solid #dce5ee; border-radius:20px; box-shadow:var(--shadow-md); }
.th-privacy-line { display:flex; gap:.8rem; padding:1rem 0; border-bottom:1px solid #e7edf3; }
.th-privacy-line:last-child { border-bottom:0; }
.th-privacy-icon { flex:0 0 32px; width:32px; height:32px; border-radius:9px; display:grid; place-items:center; background:#e9f5f4; color:#17645f; font-weight:900; }
.th-privacy-line strong { color:var(--th-ink); display:block; font-size:.92rem; margin-bottom:.15rem; }
.th-privacy-line span { color:#66758b; font-size:.85rem; }
.th-final { text-align:center; padding:6.5rem 0; background:radial-gradient(circle at 50% 0, rgba(97,204,195,.2), transparent 30%), #102a43; }
.th-final .th-kicker { color:#83d8d1; }
.th-final h2 { color:#fff; font-size:clamp(2.35rem,4vw,3.8rem); max-width:760px; margin:0 auto 1rem; }
.th-final p { color:rgba(255,255,255,.72); max-width:570px; margin:0 auto 2rem; font-size:1.05rem; }
.th-final .th-actions { justify-content:center; }
.th-final .th-secondary-cta { color:#fff; background:transparent; border-color:rgba(255,255,255,.35); }
.th-final .th-secondary-cta:hover { color:#fff; border-color:#fff; }
.th-landing-footer { padding:2rem 0; background:#081d31; color:rgba(255,255,255,.6); text-align:center; font-size:.85rem; }
.th-landing-footer a { color:rgba(255,255,255,.72); margin:0 .45rem; }
.th-landing-footer a:hover { color:#fff; }
@media (max-width:800px) {
  .th-hero { padding:5rem 0 4.2rem; }
  .th-hero-grid,.th-privacy,.th-path { grid-template-columns:1fr; gap:2rem; }
  .th-hero-card { max-width:460px; margin:0 auto; transform:none; }
  .th-value-grid { grid-template-columns:1fr; }
  .th-proof { grid-template-columns:1fr; }
  .th-proof-item { border-right:0; border-bottom:1px solid #dce5ee; }
  .th-proof-item:last-child { border-bottom:0; }
  .hub-hero { margin:-3rem -1.5rem 2rem; padding:3.2rem 1rem 2.8rem; }
  .hub-hero h1 { font-size:2.5rem; }
}
@media (max-width:520px) {
  .th-nav { min-height:66px; }
  .th-nav-actions { gap:.7rem; }
  .th-text-link { font-size:.84rem; }
  .th-pill { min-height:39px; padding:.6rem .8rem; }
  .th-hero h1 { font-size:2.75rem; }
  .th-hero-copy { font-size:1rem; }
  .th-primary-cta,.th-secondary-cta { width:100%; }
  .th-actions { display:flex; }
  .th-section { padding:4.2rem 0; }
  .th-section-heading h2 { font-size:2.2rem; }
  .th-hero-card-inner { min-height:300px; }
}


/* ── Member identity media ─────────────────────────────────────────────── */
.listing-poster-link,
.poster-identity,
.thread-person,
.admin-user-identity,
.applicant-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.listing-poster-link { color: inherit; text-decoration: none; }
.listing-poster-link:hover .poster-name,
.poster-identity a:hover { color: var(--gold-dark); }
.poster-avatar,
.thread-avatar,
.admin-user-avatar,
.applicant-avatar {
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--navy);
}
.poster-avatar { width: 48px; height: 48px; }
.thread-avatar { width: 46px; height: 46px; }
.admin-user-avatar { width: 32px; height: 32px; }
.applicant-avatar { width: 40px; height: 40px; }
.poster-avatar .mini-avatar-inline,
.thread-avatar .mini-avatar-inline,
.admin-user-avatar .mini-avatar-inline,
.applicant-avatar .mini-avatar-inline {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: grid;
  place-items: center;
}
.poster-identity { margin-bottom: 0.65rem; }
.poster-identity .poster-username,
.poster-identity .poster-username-small { margin: 0.1rem 0; }
.thread-person { margin-top: 0.4rem; }
.admin-user-identity { min-width: 180px; }
.applicant-info { flex-direction: row; }
.applicant-info > div:last-child { display: flex; flex-direction: column; gap: 2px; }
