/* =========================================================
   Journey Beyond Menopause — base.css (CLEAN)
   - Single source of truth (no duplicates)
   - No border-bottom dividers
   - No “weird” section/header backgrounds on Community/Threads
   ========================================================= */

/* -------------------------
   Root tokens
   ------------------------- */
:root{
  --bg: #fbfaf7;
/*  --text: #36415c; */
/*  --text: #475569; */
/*  --text: #5f6b7a; */
/*  --text: #606060; */
  --text: #4f4f4f;

  --muted: #5f6b7a;

  --accent: #2aa9a3;
  --accent-2: #1f8f8a;
  --accent-soft: rgba(42,169,163,.12);

  --warm-soft: rgba(242,184,162,.22);
  --lav-soft: rgba(139,123,189,.16);

  --container: 1120px;
  /*    --font: Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;  */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --space-y: 28px;
  --space-y-tight: 16px;

  /* Surfaces + radii */
  --radius: 18px;
  --radius-sm: 14px;
  --border: rgba(15,23,42,.10);

  --panel: rgba(255,255,255,.70);
  --panel-strong: rgba(255,255,255,.82);

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 12px 34px rgba(15,23,42,.10);

  /* Form tokens */
  --field-bg: rgba(255,255,255,.70);
  --field-bg-hover: rgba(255,255,255,.78);
  --field-border: rgba(15,23,42,.12);
  --field-border-hover: rgba(15,23,42,.18);
  --field-ring: rgba(42,169,163,.22);
  --placeholder: rgba(95,107,122,.75);
  --field-radius: 16px;
  --field-pad-y: 14px;
  --field-pad-x: 14px;


    /* Default reading text (Skool-ish) */
  --text-base-size: 18px;
  --text-base-line: 1.55;
  --text-base-weight: 400;

  /* Scale */
  --text-sm: 13px;   /* meta */
  --text-md: 16px;   /* normal */
  --text-lg: 18px;   /* subhead if needed */
  --text-xl: 20px;   /* title */
  --text-2xl: 23px;  /* h1-ish (Skool editor h1 is 23px) */
}

@media (min-width: 1280px){
  :root{ --container: 1280px; }
}

/* -------------------------
   Reset / base
   ------------------------- */
*,
*::before,
*::after{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  overflow-x:hidden;
  background: var(--bg);

  min-height: 100vh;
  min-height: 100svh;

  display:flex;
  flex-direction:column;

  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
  font-weight: var(--text-base-weight);
}

/* 3) Make everything inherit by default */
p, ul, ol, li, blockquote, pre, code,
label, input, select, textarea, button{
  font: inherit;
}

a{ color:inherit; text-decoration:none; }
button,input:not([type="file"]),
select,textarea{ font:inherit; }
img{ max-width:100%; height:auto; display:block; }

/* -------------------------
   Background (site-level)
   - Keep this if you like the “soft aurora”
   - Remove if you want totally flat background
   ------------------------- */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 520px at 12% 4%, var(--warm-soft), transparent 58%),
    radial-gradient(1000px 520px at 88% 10%, rgba(42,169,163,.18), transparent 58%),
    radial-gradient(1000px 520px at 55% 92%, var(--lav-soft), transparent 58%),
    var(--bg);
  background-repeat: no-repeat;
}

body::after{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.22), transparent 48%),
    radial-gradient(circle at 70% 42%, rgba(255,255,255,.16), transparent 58%),
    radial-gradient(circle at 40% 85%, rgba(255,255,255,.12), transparent 58%);
  mix-blend-mode: overlay;
  opacity: .42;
}

/* -------------------------
   Layout containers
   ------------------------- */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 48px);
  width: 100%;
  position: relative;
  z-index: 1;
}

main{
  flex: 1 0 auto;
  display:flex;
  min-width:0;
}

main.container{ padding-top: 24px; }

.main-card,
.main-card-inner{ flex: 1 0 auto; min-width:0; }

footer{ flex: 0 0 auto; }

/* -------------------------
   Topbar
   ------------------------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  /* no border-bottom */
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.brand-mark{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(42,169,163,.22);
  color: var(--accent-2);
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  flex: 0 0 auto;
}

.nav{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav a{
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 650;
}

.nav a:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.06);
  color: var(--text);
}

@media (max-width: 980px){
  .nav a{ padding: 8px 10px; }
}

/* -------------------------
   Main content card
   ------------------------- */
.main-card{
  width: 100%;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15,23,42,.12);
  backdrop-filter: blur(18px);
}

.main-card-inner{
  background: rgba(255,255,255,.35);
  border-radius: 22px;
  padding: 40px 68px 44px;
}

@media (max-width: 720px){
  .main-card{
    padding: 18px 0;
    margin: 16px auto 28px;
    border-radius: 22px;
  }
  .main-card-inner{
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* -------------------------
   Buttons
   ------------------------- */
.btn{
  display:flex;
  width: 100%;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 780;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(15,23,42,.10); }
.btn:active{ transform: translateY(0); box-shadow: 0 1px 4px rgba(15,23,42,.06); }

.btn-soft{
  background: rgba(42,169,163,.12);
  border-color: rgba(42,169,163,.22);
  color: var(--accent-2);
}

.btn.sm{
  width:auto;
  padding: 10px 14px;
  font-size: 0.92rem;
}

/* -------------------------
   Typography
   ------------------------- */
.thread-post-content p,
.thread-post-content ul,
.thread-post-content ol,
.thread-post-content li,
.thread-post-content blockquote{
  font-size: inherit;
  line-height: inherit;
}

h1,h2,h3{ margin: 0; }

h1{
  font-size: clamp(2.0rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  font-weight: 860;
  letter-spacing: -0.02em;
}

p, ul, ol{
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.block{ padding-top: var(--space-y); }
.block h3{
  margin-top: 12px;
  margin-bottom: 10px;
}
.block h3:first-child{ margin-top: 0; }

/* -------------------------
   Footer
   ------------------------- */
.footer{
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: .95rem;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  padding-top: 16px;
}

.footer a{ color: var(--muted); }
.footer a:hover{ color: var(--text); }

/* -------------------------
   Forms
   ------------------------- */
label{
  display:block;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 8px;
  font-size: .98rem;
}

input:not([type="file"]),
select,
textarea{
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  padding: var(--field-pad-y) var(--field-pad-x);
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
  -webkit-tap-highlight-color: transparent;
}

textarea{ min-height: 140px; resize: vertical; }

input::placeholder,
textarea::placeholder{ color: var(--placeholder); }

input:hover,
select:hover,
textarea:hover{
  background: var(--field-bg-hover);
  border-color: var(--field-border-hover);
}

input:not([type="file"]):focus,
select:focus,
textarea:focus{
  background: rgba(255,255,255,.84);
  border-color: rgba(42,169,163,.40);
  box-shadow:
    0 0 0 4px var(--field-ring),
    0 10px 24px rgba(15,23,42,.08);
}

input:disabled,
select:disabled,
textarea:disabled{
  opacity: .65;
  cursor: not-allowed;
}

select{
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input[type="checkbox"],
input[type="radio"]{
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 6px;
  vertical-align: middle;
  box-shadow: none;
}
input[type="radio"]{ border-radius: 999px; }

.form-row{ display:grid; gap: 16px; }
.form-actions{ margin-top: 16px; }

.help{
  margin-top: 8px;
  color: var(--muted);
  font-size: .95rem;
}

.error{
  margin-top: 8px;
  color: #8a2b2b;
  font-weight: 700;
  font-size: .95rem;
}

.honeypot{
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill{
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0px 1000px rgba(255,255,255,.82) inset;
}

/* =========================================================
   Generic “card” utility (used by markup)
   - Keep it subtle
   ========================================================= */
.card{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.60);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* =========================================================
   Community pages
   - ONE CARD RULE: no nested card visuals
   ========================================================= */
.page-shell{ width: 100%; }
.page-card{
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* Page header */
.page-title{
  font-size: clamp(2.0rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  font-weight: 880;
  letter-spacing: -0.02em;
}

.page-subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 1.05rem;
}
.page-subtitle strong{
  color: var(--text);
  font-weight: 800;
}

/* Breadcrumb pills */
.comm-breadcrumb{
  margin-top: 18px;
  margin-bottom: 18px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.crumb-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.70);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  color: var(--muted);
  font-weight: 500;
  font-size: .92rem;
  white-space: nowrap;
}

.crumb-pill a{ color: inherit; font-weight: 500; }
.crumb-pill:hover{
  background: rgba(255,255,255,.82);
  border-color: rgba(15,23,42,.12);
  color: var(--text);
}

/* Search pill */
.pill-search-form{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
  flex: 1 1 320px;
  justify-content:flex-end;
}

.pill-search-input{
  width: min(380px, 100%);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.70);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  font-size: .98rem;
}

.pill-search-input:focus{
  border-color: rgba(42,169,163,.40);
  box-shadow:
    0 0 0 4px rgba(42,169,163,.18),
    0 10px 24px rgba(15,23,42,.08);
  background: rgba(255,255,255,.86);
}

.pill-search-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 820;
  border: 1px solid rgba(42,169,163,.22);
  background: rgba(42,169,163,.12);
  color: var(--accent-2);
  cursor:pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}

.pill-search-btn:hover{
  transform: translateY(-1px);
  background: rgba(42,169,163,.16);
  box-shadow: 0 12px 26px rgba(15,23,42,.10);
}

.pill-search-btn:active{
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}

/* Community content wrapper */
.community-page-content{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

/* Tip bar */
.community-tip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(42,169,163,.18);
  background: rgba(42,169,163,.10);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  margin:0px;
  font-size:0.95rem;
}

/* Sections: pinned + main discussion
   - NO section background, NO borders, NO header bars */
.dash-section{
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 0;
}

.dash-section-header{
  background: transparent;
  border: 0;
  padding: 0 0 6px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:4px;
  text-align:left;
}

.dash-section-header > span{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}

.dash-section-header small{
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
  margin: 0;
}
.dash-section-header > *:not(span) {
  font-weight: 400;
}

.dash-section-body{
  padding: 0;
}
.dash-section-body > span{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}

.dash-section-body small{
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
  margin: 0;
}
/* Thread rows */
.comm-thread-link{ display:block; color:inherit; text-decoration:none; }

.comm-thread-row{
  display:flex;
  align-items:stretch;
  gap: 0;
  margin: 8px 0;
  padding: 0;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,.86);
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
  transition: box-shadow .15s ease, transform .15s ease;
}

/* kill any leftover row dividers */
.dash-row{ border-bottom: none !important; }

.comm-thread-link:hover .comm-thread-row{
  box-shadow: 0 10px 25px rgba(15,23,42,0.12);
  transform: translateY(-1px);
}

/* Avatar column (subtle, not “weird”) */
.comm-thread-avatar-wrap{
  flex: 0 0 90px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px 0;
  background: rgba(42,169,163,.08);
  border-right: 1px solid rgba(15,23,42,0.06);
}

.comm-thread-avatar,
.comm-thread-avatar--fallback{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  object-fit:cover;
  font-weight: 850;
  font-size: .95rem;
  color: #fff;
  /* background: linear-gradient(135deg, var(--accent-2), var(--accent)); */
}

.comm-thread-body{
  flex: 1 1 auto;
  min-width:0;
  padding: 12px 14px;
}

.comm-thread-title{
  font-weight: 700;
 /* letter-spacing: -0.01em; */
  line-height: inherit;
  font-size: 1.25rem;
}

.comm-thread-snippet{
  margin-top: 4px;
  font-size: inherit;
  line-height: inherit;
  color: var(--muted);
  max-height: 3.6em;
  overflow:hidden;
}

.dash-meta{
  margin-top: 6px;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 650;
}

.comm-scheduled-pill{
  display:inline-flex;
  align-items:center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(42,169,163,0.10);
  border: 1px solid rgba(42,169,163,0.28);
  color: var(--text);
  margin-left: 8px;
}

/* Make the “New thread” button not full width in that one spot */
.community-page-content > p > .btn{
  width:auto;
  display:inline-flex;
  padding: 12px 16px;
}

/* Responsive: keep search usable */
@media (max-width: 900px){
  .pill-search-form{
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex: 1 1 100%;
  }
  .pill-search-input{ width: 100%; }
}

@media (max-width: 640px){
  .comm-thread-avatar-wrap{ display:none; }
  .comm-thread-body{ padding: 12px 12px; }
  .comm-thread-title{ font-size: 1.05rem; }
}

/* =========================================================
   Thread view (thread.php)
   - No header background bars
   - No border-bottom dividers
   ========================================================= */
.thread-page-shell{ width:100%; }

.thread-card{
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  display:flex;
  flex-direction:column;
}

/* Header: remove divider */
.thread-header{
  padding: 0 0 14px;
  border: 0;
  margin-bottom: 14px;
}

.thread-back{
  margin: 0 0 8px;
  font-size: .98rem;
  color: var(--muted);
}

.thread-back a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.60);
}

.thread-back a:hover{
  background: rgba(255,255,255,.80);
  border-color: rgba(15,23,42,.12);
  color: var(--text);
}

.thread-title{
  margin:0;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.thread-meta{
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.0rem;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}
.thread-meta strong{ color: var(--text); }

/* Scheduled pill */
.thread-scheduled-pill{
  display:inline-flex;
  align-items:center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(42,169,163,0.10);
  border: 1px solid rgba(42,169,163,0.28);
}

/* Posts stack */
.thread-posts-wrap{
  width:100%;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* Post card (avatar column + body) */
.thread-post-card{
  display:flex;
  gap:0;
  overflow:hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
  transition: box-shadow .15s ease, transform .15s ease;
}

.thread-post-card:hover{
  box-shadow: 0 10px 25px rgba(15,23,42,0.12);
  transform: translateY(-1px);
}

.thread-post-card.ai-post{
  background: rgba(255,255,255,.86);
}

.thread-post-left{
  flex: 0 0 105px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background: rgba(42,169,163,.08);
  border-right: 1px solid rgba(15,23,42,0.06);
  gap: 4px;
  padding: 12px 0;
}

.thread-post-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  color:#000;
  font-weight: 850;
  font-size: .9rem;
  /* background: linear-gradient(135deg, var(--accent-2), var(--accent)); */
  margin-bottom: 4px;
}

.thread-post-author{
  font-weight: 850;
  font-size: .80rem;
}

.thread-post-subtitle{
  font-size: .70rem;
  color: var(--muted);
}

.thread-post-body{
  flex: 1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding: 12px 14px 14px;
}

.thread-post-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.thread-post-date{
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
}

/* Keep HR usable for readability, but subtle */
.thread-post-divider{
  border: 0;
  border-top: 1px solid rgba(15,23,42,0.08);
  margin: 6px 0 4px;
}

.thread-post-content{
  white-space: normal;
  font-size: inherit;
  line-height: inherit;
}
/* IMPORTANT:
   The global p,ul rule sets a larger font-size.
   Override inside thread posts so first post + replies match. */
.thread-post-content p,
.thread-post-content ul,
.thread-post-content ol,
.thread-post-content li,
.thread-post-content blockquote {
  font-size: inherit;
  line-height: inherit;
}

/* Optional: restore normal paragraph spacing inside posts */
.thread-post-content p { margin: 0 0 0.75em; }
.thread-post-content p:last-child { margin-bottom: 0; }

/* Reply-to line */
.thread-post-replyto{
  font-size: .85rem;
  color: var(--muted);
}
.thread-post-replyto a{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Actions */
.thread-post-actions{
  display:flex;
  justify-content:flex-end;
  gap: 12px;
  font-size: .82rem;
  margin-top: 6px;
}

.thread-post-action-btn{
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 0;
  font-weight: 650;
}
.thread-post-action-btn:hover{ color: var(--text); }

.post-like-btn.is-liked{
  color: var(--accent-2);
  font-weight: 850;
}

/* One-level replies */
.thread-replies{
  margin-left: 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(15,23,42,0.10);
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 8px;
}

.thread-post-card.is-reply{
  background: rgba(255,255,255,.78);
}

/* Reply box (no top border) */
.thread-reply{
  margin-top: 14px;
  padding-top: 0;
  border: 0;
}

.thread-reply-title{
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
}

.thread-reply-form{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.thread-reply-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}

/* =========================================================
   New thread form
   ========================================================= */
.form-group{ margin-top: 16px; }
.form-group:first-child{ margin-top: 0; }

.community-new-thread-form input[type="text"]{ font-size: 1.05rem; }
.community-new-thread-form p{ font-size: 1rem; }

.new-thread-actionbar{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  border: 0;
  padding-top: 0;
}

.toggle-inline{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
  user-select:none;
}

.toggle-inline input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
}

.new-thread-actionbar .btn{
  width:auto;
  padding: 12px 18px;
  min-width: 200px;
}

@media (max-width: 720px){
  .new-thread-actionbar .btn{
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   Emoji picker (ftb-emoji-*)
   ========================================================= */
.ftb-emoji-row{
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
}

.ftb-emoji-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  font-weight: 750;
  color: var(--muted);
}

.ftb-emoji-btn:hover{
  background: rgba(255,255,255,.85);
  color: var(--text);
}

.ftb-emoji-pop{
  position:absolute;
  top: 42px;
  left: 0;
  z-index: 99;
  width: min(420px, 92vw);
  max-height: 260px;
  overflow:auto;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(15,23,42,.18);
  display:grid;
  grid-template-columns: repeat(10, minmax(0,1fr));
  gap: 6px;
}

@media (max-width: 520px){
  .ftb-emoji-pop{ grid-template-columns: repeat(8, minmax(0,1fr)); }
}

.ftb-emoji-item{
  border: 1px solid transparent;
  background: rgba(15,23,42,.02);
  border-radius: 12px;
  padding: 8px 0;
  cursor:pointer;
  font-size: 18px;
}

.ftb-emoji-item:hover{
  background: rgba(42,169,163,.10);
  border-color: rgba(42,169,163,.18);
}

/* =========================================================
   Editor (editor.php markup)
   ========================================================= */
.editor-container{ overflow:hidden; }
.editor-toolbar{ display:flex; flex-wrap:wrap; gap:6px; }
.editor-body{ background: transparent; color: var(--text); }

/* Toolbar buttons injected by editor.js */
.editor-toolbar button{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  border-radius: 12px;
  padding: 6px 10px;
  cursor:pointer;
  font-weight: 700;
  color: var(--muted);
}
.editor-toolbar button:hover{
  background: rgba(255,255,255,.86);
  color: var(--text);
}
/* =========================================================
   Journal cards (non-clickable)
   ========================================================= */
.journal-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.journal-card{
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
  overflow:hidden;
  position: relative;
}

/* not clickable (no hover lift) — keep it calm */
.journal-card-head{
  padding: 14px 14px 10px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.journal-card-meta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.journal-date{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

.journal-card-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-size: 1.12rem;
  color: var(--text);
}

.journal-card-body{
  padding: 0 14px 14px;
  font-size: inherit;
  line-height: inherit;
  color: var(--text);
}

/* footer with actions in bottom-left */
.journal-card-footer{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,.55);
}

.journal-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:flex-start;
}

/* emoji action buttons */
.journal-action-btn{
  appearance: none;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  color: var(--text);
}

.journal-action-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15,23,42,0.10);
  background: rgba(255,255,255,.85);
}

/* Journal entries: reuse thread post card styling, but no hover lift */
.journal-entry-card{
  cursor: default;
}
.journal-entry-card:hover{
  transform: none;
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}

/* Put actions bottom-left (your .thread-post-actions currently aligns right) */
.journal-entry-actions{
  justify-content: flex-start;
}
input[type="file"]{
  background: transparent;
  box-shadow: none;
  padding: 0;
}
/* Journal list preview: clamp without breaking HTML */
.journal-preview{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;  /* number of lines to show */
  overflow: hidden;
}
/* Content blocks (used on settings, forms, etc.) */
.content-block-member{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 22px;
}
/* Space BETWEEN sections */
.content-block-member + .content-block-member{
  margin-top: 30px;
}
/* spacing between blocks is controlled by the wrapper gap,
   so we don't need vertical padding hacks */
@media (max-width: 900px){
  .content-block-member{ padding: 18px 16px; }
}
