
.forum-page { padding: 2rem 0 3rem; }
.forum-page h1 {
  font-family: Georgia, serif;
  color: var(--navy);
  margin: 0 0 .4rem;
}
.forum-page .lede { color: var(--muted); max-width: 40em; margin: 0 0 1.5rem; }
.forum-new, .forum-board-list {
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(11,31,58,.12);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
}
.forum-new h2, .forum-board-list h2, .forum-form h3 {
  margin: 0 0 .75rem;
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 1.25rem;
}
.forum-form { display: grid; gap: .55rem; }
.forum-form label {
  display: grid; gap: .25rem;
  font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #5c6b7a;
}
.forum-form input, .forum-form textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid rgba(11,31,58,.22);
  border-radius: 8px;
  padding: .55rem .7rem;
  font: inherit;
  color: #0b1f3a;
  background: #fff;
}
.forum-form button[type="submit"] {
  justify-self: start;
  appearance: none; border: 0;
  background: var(--gold, #c9a227);
  color: #0b1f3a;
  font-weight: 700;
  border-radius: 8px;
  padding: .55rem 1rem;
  cursor: pointer;
}
.forum-form-status { color: #8a4b00; margin: 0; }
.forum-muted { color: #5c6b7a; }
.forum-row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(11,31,58,.1);
}
.forum-row:hover .forum-row-title { color: #8a6a12; }
.forum-row-title {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #0b1f3a;
  margin-bottom: .2rem;
}
.forum-row-meta { font-size: .85rem; color: #5c6b7a; }
.forum-back { margin: 0 0 1rem; }
.forum-back a { color: #0b1f3a; }
.forum-thread-title {
  font-family: Georgia, serif;
  color: #0b1f3a;
  margin: 0 0 .75rem;
}
.forum-post {
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(11,31,58,.12);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: .75rem;
}
.forum-post.op { border-color: rgba(201,162,39,.45); }
.forum-post-meta { font-size: .82rem; color: #5c6b7a; margin-bottom: .35rem; }
.forum-post-text { margin: 0; white-space: pre-wrap; color: #0b1f3a; }

.forum-op-wrap {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.35rem 1.4rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  border: 2.5px solid rgba(201,162,39,.7);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(11,31,58,.09);
}
.forum-op-wrap .forum-post.op {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}
.forum-op-wrap .forum-post-meta {
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.forum-op-wrap .forum-post-text {
  font-size: 1.22rem;
  line-height: 1.55;
  min-height: 3.2em;
}
.forum-op-wrap .forum-post-actions {
  margin-top: 0.85rem;
}
.forum-op-wrap .jt-avatar,
.forum-op-wrap .jt-avatar-fallback {
  width: 36px;
  height: 36px;
}
/* Comments stay smaller / secondary under the OP */
.forum-comments-wrap {
  max-width: 36rem;
}
.forum-comments .forum-comment-block {
  /* keep comment cards visually smaller than OP */
}
.forum-comments .forum-post-text {
  font-size: 1rem;
}
.forum-comments-wrap {
  margin: 0 0 1.5rem;
  padding-top: .25rem;
  border-top: 1px dashed rgba(11,31,58,.18);
}
.forum-comments-heading {
  font-family: Georgia, serif;
  color: #0b1f3a;
  font-size: 1.15rem;
  margin: 1rem 0 .85rem;
}
.forum-comment-block { /* styled below */ }


.forum-post-actions {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: .55rem;
}
.forum-like-post {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  color: #0b1f3a;

  min-width: 40px;
  min-height: 40px;
  padding: 0.25rem 0.4rem;
}
.forum-like-post .jt-ig-heart-path {
  fill: none;
  stroke: #0b1f3a;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.forum-like-post.liked .jt-ig-heart-path,
.forum-like-post[aria-pressed="true"] .jt-ig-heart-path {
  fill: #ff3040;
  stroke: #ff3040;
}
.forum-post-likes { font-size: .9rem; font-variant-numeric: tabular-nums; }
.forum-reply-to {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5c6b7a;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.forum-reply-to:hover { color: #0b1f3a; }
.forum-inline-reply {
  display: grid;
  gap: .45rem;
  margin-top: .65rem;
  padding: .65rem .7rem;
  background: #f4f1ea;
  border-radius: 10px;
}
.forum-inline-reply[hidden] { display: none !important; }
.forum-inline-actions { display: flex; gap: .5rem; align-items: center; }
.forum-cancel-reply {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5c6b7a;
  cursor: pointer;
  font: inherit;
}
.forum-composer {
  margin-top: .5rem;
  padding: 1rem 1.1rem 1.2rem;
  border: 1px solid rgba(11,31,58,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
}
.forum-composer h3 {
  margin: 0 0 .75rem;
  font-family: Georgia, serif;
  color: #0b1f3a;
  font-size: 1.15rem;
}

.forum-op-badge {
  display: inline-block;
  margin-left: .25rem;
  padding: .05rem .35rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  vertical-align: middle;
  border-radius: 3px;
  background: #c9a227;
  color: #1a1406;
}
.forum-id {
  display: inline-block;
  margin-left: .25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #6b4f12;
  background: rgba(201,162,39,.18);
  padding: .05rem .3rem;
  border-radius: 3px;
  vertical-align: middle;
}
.jt-comment-meta .forum-id { color: #8a6a12; }
.episode .forum-id, .watch .forum-id {
  color: #f0c96a;
  background: rgba(201,162,39,.22);
}
.episode .forum-op-badge, .watch .forum-op-badge {
  background: #c9a227;
  color: #1a1406;
}

/* Auth panel */
.forum-auth {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(11,31,58,.12);
  border-radius: 12px;
  padding: .9rem 1.1rem 1rem;
  margin-bottom: 1.25rem;
}
.forum-auth-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}
.forum-auth-tab {
  appearance: none;
  border: 1px solid rgba(11,31,58,.18);
  background: #f4f1ea;
  color: #0b1f3a;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .35rem .85rem;
  cursor: pointer;
}
.forum-auth-tab.on {
  background: var(--navy, #0b1f3a);
  color: #fff;
  border-color: transparent;
}
.forum-auth-form {
  max-width: 28rem;
}
.forum-auth-user[hidden],
#forum-auth-user[hidden],
.forum-auth-guest[hidden],
#forum-auth-guest[hidden],
#forum-ops-link[hidden],
.forum-ops-link[hidden] {
  display: none !important;
}
.forum-auth-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.forum-auth-hello {
  margin: 0;
  color: #0b1f3a;
}
.forum-logout-btn {
  appearance: none;
  border: 1px solid rgba(11,31,58,.22);
  background: #fff;
  color: #0b1f3a;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: .4rem .85rem;
  cursor: pointer;
}
.forum-name-locked input {
  background: #f4f1ea;
  color: #0b1f3a;
  font-weight: 600;
}

/* Role badges: Official gold, Mod navy */
.forum-role-badge {
  display: inline-block;
  margin-left: .25rem;
  padding: .05rem .4rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  vertical-align: middle;
  border-radius: 3px;
  text-transform: uppercase;
}
.forum-role-badge.official {
  background: #c9a227;
  color: #1a1406;
}
.forum-role-badge.mod {
  background: #0b1f3a;
  color: #f5f0e6;
}

.forum-row-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid rgba(11,31,58,.1);
}
.forum-row-wrap .forum-row {
  flex: 1;
  border-bottom: 0;
}
.forum-delete-post,
.forum-delete-thread {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a3a2a;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  padding: .25rem .4rem;
  white-space: nowrap;
}
.forum-delete-post:hover,
.forum-delete-thread:hover {
  text-decoration: underline;
}

.forum-ops-link {
  display: inline-block;
  margin-right: .75rem;
  font-weight: 700;
  color: #8a6a12;
  text-decoration: none;
}
.forum-manage {
  display: inline-flex;
  gap: .55rem;
  margin-left: .35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.forum-post:hover .forum-manage,
.forum-post:focus-within .forum-manage {
  opacity: 1;
  pointer-events: auto;
}
/* Thread OP: Edit / Delete thread always visible */
.forum-manage-always,
.forum-post.op .forum-manage-always,
.forum-op-wrap .forum-manage {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.forum-edit-post,
.forum-delete-post,
.forum-delete-thread {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5c6b7a;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.forum-edit-post:hover { color: #0b1f3a; }
.forum-delete-post:hover,
.forum-delete-thread:hover { color: #c0392b; }
.forum-role-badge.official { background: #c9a227; color: #1a1406; }
.forum-role-badge.mod { background: #0b1f3a; color: #f0c96a; }
.forum-auth { margin-bottom: 1.25rem; }

/* Email verification */
.verify-page .verify-card {
  max-width: 28rem;
}
.verify-link {
  display: inline-block;
  margin: 0.75rem 1rem 0 0;
  color: #0b1f3a;
  font-weight: 600;
}
.forum-form-status.ok { color: #1a5c2a; }
.forum-resend-row {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.forum-resend-btn {
  appearance: none;
  border: 1px solid rgba(11,31,58,.25);
  background: #fff;
  color: #0b1f3a;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.forum-resend-btn:disabled { opacity: 0.6; cursor: default; }


.forum-forgot-wrap { margin: 0.25rem 0 0; }
.forum-forgot-link {
  appearance: none; border: 0; background: transparent;
  color: #8a6a12; font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px;
}
.forum-forgot-link:hover { color: #c9a227; }


.jt-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; vertical-align: middle;
  margin-right: .4rem; border: 1px solid rgba(201,162,39,.35);
  background: #0b1f3a;
}
.jt-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #c9a227; color: #0b1f3a; font-weight: 800; font-size: .75rem;
  margin-right: .4rem; vertical-align: middle;
}
.settings-avatar-preview {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem;
}
.settings-avatar-preview img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid #c9a227;
}
.settings-avatar-preview .jt-avatar-fallback {
  width: 72px; height: 72px; font-size: 1.6rem; margin: 0;
}
.forum-post-head, .jt-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .35rem; }


.forum-auth-heading {
  margin: 0 0 .75rem;
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 1.15rem;
}
.forum-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin: .35rem 0 0;
}
a.forum-forgot-link {
  appearance: none; border: 0; background: transparent;
  color: #8a6a12; font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px;
}
a.forum-forgot-link:hover { color: #c9a227; }
.settings-avatar-preview { display:flex; align-items:center; gap:.75rem; margin-bottom:.85rem; }
.settings-avatar-preview img {
  width:72px; height:72px; border-radius:50%; object-fit:cover;
  border:1px solid rgba(201,162,39,.35); background:#0b1f3a;
}
.settings-upload-row { display:grid; gap:.35rem; margin-bottom:.5rem; }

.jt-avatar-fallback[hidden] { display: none !important; }
img.jt-avatar + .jt-avatar-fallback { display: none !important; }

.forum-like-post svg,
.forum-like-post .jt-ig-heart {
  width: 26px !important;
  height: 26px !important;
}
.forum-post.nested .forum-like-post svg,
.forum-comments .forum-like-post svg {
  width: 24px !important;
  height: 24px !important;
}
.forum-add-comment-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 178, 60, 0.65);
  background: rgba(227, 178, 60, 0.18);
  color: var(--navy, #0b1f3a);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.forum-add-comment-btn:hover {
  background: rgba(227, 178, 60, 0.32);
}
.forum-composer-compact {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
}
.forum-composer-compact .forum-inline-reply {
  margin-top: 0.75rem;
}

.settings-avatar-preview .jt-avatar-fallback.is-hidden,
.settings-avatar-preview .jt-avatar-fallback[hidden],
#settings-avatar-fallback.is-hidden,
#settings-avatar-fallback[hidden] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
#settings-avatar-img.is-hidden,
#settings-avatar-img[hidden] {
  display: none !important;
}
.settings-avatar-preview {
  display: flex;
  align-items: center;
  gap: 0;
}
.settings-avatar-preview img:not([hidden]):not(.is-hidden) {
  margin: 0;
}


/* Unread count sits on Notifications link — not the whole auth card */
.forum-notif-link {
  position: relative;
  display: inline-block;
  padding-right: 0.95rem;
  margin-right: 0.75rem;
}
.forum-notif-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.1rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #e74c3c;
  border: 1.5px solid #0b1f3a;
  color: #fff !important;
  font: 800 0.65rem/1.05rem system-ui, sans-serif;
  letter-spacing: 0;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}
.forum-notif-badge[hidden] {
  display: none !important;
}



/* One visual card per top-level comment; replies nest inside */
.forum-comment-block {
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.9rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.05);
}
.forum-comment-block > .forum-post {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.forum-nested {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0 0 0.85rem;
  border-left: 3px solid rgba(201, 162, 39, 0.55);
  border-top: 1px dashed rgba(11, 31, 58, 0.12);
}
.forum-post.nested {
  margin: 0.45rem 0 0;
  background: #f7f3ea;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  box-shadow: none;
}
.forum-see-replies {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a6a12;
  font: 700 0.9rem Georgia, serif;
  cursor: pointer;
  padding: 0.45rem 0 0.15rem;
  display: block;
  text-align: left;
  width: 100%;
}
.forum-see-replies:hover { color: #c9a227; text-decoration: underline; }
.forum-nested-more[hidden] { display: none !important; }
