/*
 * One blog post (blog_new.php): blog.php's layout in blogs_new.css's language.
 *
 * As blog.php: one panel in the author's colour (--uc). Inside it the post is a white bulletin,
 * the author's big avatar and their other posts down its left side, the post on the right
 * (title, tags, who/when/views, the text, a poll, then + / −). Comments sit below it on the
 * same colour, each one a white bulletin like a post on blogs_new; replies are indented under
 * a thin line.
 * From blogs_new: condensed uppercase headings, chamfered
 * buttons and chips, square-cornered white bulletins, Inter for reading.
 *
 * The context menu, user tooltip and hunt items are moved onto <body> by the page's script,
 * so their styles aren't scoped to .bp-page.
 */

#bodydiv { position: relative; background-color: #fff; min-width: 320px; }

.bp-page,
.blog-context-menu,
.restrict-modal-overlay {
  --panel:    oklch(0.98 0.01 265.35);
  --soft:     oklch(0.95 0.006 265);
  --soft-hi:  oklch(0.91 0.008 265);
  --line:     oklch(0.91 0.008 265);
  --text:     oklch(0.21 0.02 265);
  --text-2:   oklch(0.40 0.018 265);
  --muted:    oklch(0.55 0.018 265);
  --sky-text: oklch(0.97 0.01 265);
  --sky-dim:  rgb(255 255 255 / 0.88);
  --sky-chip: rgb(0 0 0 / 0.08);
  --sky-chip-hi: rgb(0 0 0 / 0.14);
  --teal:     #53cdb8;
  --orange:   #f08b33;
  --orange-hi:#d97824;
  --red:      oklch(0.58 0.2 27);
  --red-hi:   oklch(0.5 0.2 27);
  --link:     oklch(0.50 0.16 265);
  --display:  'Saira Condensed', 'Arial Narrow', 'Inter', sans-serif;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --cut:      7px;
  --shadow:   rgba(0, 0, 0, 0.08) 0px 2px 8px, rgba(0, 0, 0, 0.04) 0px 4px 12px;
}

.bp-page {
  --uc: #888;   /* the author's colour, set on the element */

  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.bp-page *, .bp-page *::before, .bp-page *::after { box-sizing: border-box; }
.bp-page h1, .bp-page h2, .bp-page h3, .bp-page p { margin: 0; color: inherit; font-family: inherit; }
.bp-page a { color: inherit; text-decoration: none; }
.bp-page :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.bp-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Chamfer: top-left and bottom-right corners cut */
.bp-cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--orange);
  box-shadow: none;
  color: #fff !important;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
.bp-btn:hover { background: var(--orange-hi); }
.bp-btn:disabled { opacity: 0.5; cursor: default; }

.bp-btn-ghost { background: var(--soft); color: var(--text-2) !important; }
.bp-btn-ghost:hover { background: var(--soft-hi); color: var(--text) !important; }

/* On the author's colour: a darker shade of it, so it reads against the panel */
.bp-btn-uc { background: color-mix(in oklch, var(--uc), black 28%); text-shadow: 0 1px 2px rgb(0 0 0 / 0.22); }
.bp-btn-uc:hover { background: color-mix(in oklch, var(--uc), black 40%); }

.bp-btn-danger { background: var(--red); }
.bp-btn-danger:hover { background: var(--red-hi); }

/* ─── The panel, in the author's colour ─────────────────────────────────── */

.bp-panel {
  padding: 20px;
  background: var(--uc);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ─── The post ──────────────────────────────────────────────────────────── */

.bp-blog {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  background: var(--panel);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* Left: the author, then their other posts */
.bp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.bp-ava-link { display: block; }
.bp-ava {
  display: block;
  width: 200px;
  height: 200px;
  background-repeat: no-repeat;
  background-size: 110%;
  background-position: top;
}

.bp-side-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.bp-side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-family: var(--display) !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp-history { display: flex; flex-direction: column; gap: 3px; }

.bp-history-link {
  display: block;
  padding: 6px 10px;
  background: var(--soft);
  border-left: 3px solid var(--uc);
  color: var(--text-2) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 150ms ease-out;
}
.bp-history-link:hover { background: var(--soft-hi); color: var(--text) !important; }
.bp-history-link.is-on { background: var(--uc); color: #fff !important; text-shadow: 0 1px 2px rgb(0 0 0 / 0.22); }

.bp-side > .bp-btn { align-self: flex-start; }

/* Right: the post itself */
.bp-main { min-width: 0; display: flex; flex-direction: column; }

.bp-head { display: flex; align-items: flex-start; gap: 12px; }

.bp-title {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-family: var(--sans) !important;  /* Inter */
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.blog-menu-wrapper { flex: none; }
.bp-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.bp-dots:hover { background: var(--soft); color: var(--text); }

/* Tags, as blogs_new's chips but in each tag's colour */
.bp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.bp-tag {
  --cut: 5px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  background: var(--tc, var(--uc));
  color: #fff !important;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  white-space: nowrap;
  transition: filter 150ms ease-out;
}
.bp-tag:hover { filter: brightness(1.1); }

/* Who, when, views (blogs_new's post foot) */
.bp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.bp-meta img { flex: none; display: block; margin-right: -6px; }
.bp-author { font-weight: 700; margin: 0 !important; white-space: nowrap; }
.bp-author:hover { text-decoration: underline; }
.bp-meta time, .bp-views { white-space: nowrap; }
.bp-meta time::before, .bp-views::before { content: '\00B7'; margin-right: 6px; }

/* The text */
.bp-body {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bp-body img, .bp-body iframe { display: block; max-width: 100%; height: auto; }
.bp-body iframe { margin: 4px 0; }
.bp-body iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }
.bp-page a[rel~="noopener"] { color: var(--link) !important; }

/* @mentions: name tags in the user's colour, as blogs_new */
.bp-page .tagbox { opacity: 1 !important; padding: 0 4px !important; font-weight: 600; }
.bp-page .tagtext { color: #fff; filter: none !important; cursor: pointer; }

/* ─── Poll ──────────────────────────────────────────────────────────────── */

.bp-poll {
  max-width: 520px;
  margin-top: 22px;
  padding: 16px 18px 18px;
  background: var(--soft);
  border-left: 4px solid var(--uc);
}

.bp-poll-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bp-poll-title {
  color: var(--text);
  font-family: var(--display) !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}
.bp-poll-ended {
  flex: none;
  padding: 2px 8px 1px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poll-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }

.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow 150ms ease-out;
}
.poll-option:hover { box-shadow: inset 0 0 0 2px var(--uc); }
.poll-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--uc); font-weight: 600; }
.poll-option input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--uc); cursor: pointer; }

.bp-poll-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.poll-results { display: flex; flex-direction: column; gap: 10px; }
.poll-result-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}
.poll-result-stats { flex: none; color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bp-poll-mine {
  margin-left: 6px;
  padding: 1px 6px 0;
  background: var(--uc);
  color: #fff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.poll-result-bar { height: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.poll-result-fill { height: 100%; background: var(--uc); transition: width 500ms ease-out; }
.poll-result-item:not(.is-mine) .poll-result-fill { opacity: 0.7; }
.poll-total { margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }

.poll-message { color: var(--text-2); }
.poll-message a { color: var(--link) !important; text-decoration: underline !important; }

.bp-poll-end { margin: 12px 0 0; }

/* ─── + / − ─────────────────────────────────────────────────────────────── */

.bp-vote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 32px;
}
.bp-vote form { margin: 0; display: block; }

.bp-vote-btn {
  --cut: 5px;
  display: block;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
.bp-vote-up   { background: var(--teal); }
.bp-vote-up:hover   { background: #3fb6a2; }
.bp-vote-down { background: var(--red); }
.bp-vote-down:hover { background: var(--red-hi); }
.bp-vote-btn:disabled, .bp-vote-btn:disabled:hover { background: var(--soft-hi); color: var(--muted); cursor: default; }

.bp-vote-count {
  margin-left: 8px;
  color: var(--text-2);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

/* ─── Comments ──────────────────────────────────────────────────────────── */

.bp-comments { margin-top: 28px; color: var(--sky-text); }

.bp-col-head { display: flex; align-items: center; height: 38px; margin-bottom: 10px; text-shadow: 0 1px 2px rgb(0 0 0 / 0.22); }
.bp-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display) !important;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bp-comment-form { margin: 0 0 24px; }
.bp-comment-form textarea.comment,
.bp-page .reply-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 96px;
}
.bp-comment-form textarea.comment::placeholder,
.bp-page .reply-input::placeholder { color: var(--muted); }
.bp-comment-form textarea.comment:focus,
.bp-page .reply-input:focus { outline: none; box-shadow: 0 0 0 2px var(--text), var(--shadow); }
.bp-comment-form-foot { display: flex; justify-content: flex-end; margin-top: 10px; }

#comments-container { display: flex; flex-direction: column; gap: 14px; }

.bp-page .comment-thread { animation: bp-in 300ms ease-out backwards; }
@keyframes bp-in { from { opacity: 0; } }

/* A comment: a white bulletin like blogs_new's posts */
.bp-page .comm,
.bp-page .comm-reply {
  position: relative;
  display: flex;
  gap: 14px;
  color: var(--text);
  background: var(--panel);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: opacity 300ms ease-out;
}
.bp-page .comm { padding: 16px 18px 12px; }
.bp-page .comm-reply { margin-top: 8px; padding: 12px 14px 10px; }

.bp-page .smallava,
.bp-page .reply-avatar {
  flex: none;
  border-radius: 50%;
  background-color: var(--soft);
  background-repeat: no-repeat;
  background-size: 180%;
  background-position: top;
}
.bp-page .smallava { width: 52px; height: 52px; }
.bp-page .reply-avatar { width: 38px; height: 38px; }

.bp-page .comment-body { flex: 1; min-width: 0; }

.bp-page .comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.bp-page .comment-username { display: inline-flex; align-items: baseline; font-weight: 700; }
.bp-page .comment-username img { display: block; align-self: flex-end; }
.bp-page .comment-username span { margin: 0 !important; }
.bp-page .comment-username:hover span { text-decoration: underline; }
.bp-page .comment-timestamp { color: var(--muted); font-size: 12px; }

.bp-page .user-badge {
  padding: 1px 6px 0;
  color: #fff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bp-page .user-badge.admin { background: #8b5cf6; }
.bp-page .user-badge.mod   { background: #10a37f; }
.bp-page .user-badge.des   { background: #e0453a; }

.bp-page .comment-content {
  margin: 0 0 6px;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bp-page .comment-content img,
.bp-page .comment-content iframe { display: block; max-width: 100%; margin: 6px 0; }

/* Actions: quiet words under the comment */
.bp-page .comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: -8px; }

.bp-page .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.bp-page .action-btn:hover { background: var(--soft); color: var(--text); }
.bp-page .action-btn:disabled { cursor: default; }

.bp-page .like-btn .heart-icon { font-size: 13px; }
.bp-page .like-btn .like-count { min-width: 0; color: inherit; font-size: inherit; font-variant-numeric: tabular-nums; }
.bp-page .like-btn:hover,
.bp-page .like-btn.liked { color: var(--red); }
.bp-page .like-btn.liked:hover { background: oklch(0.96 0.03 27); }

.bp-page .report-content-btn.is-complete { color: var(--teal); }
.bp-page .delete-btn:hover { background: oklch(0.96 0.03 27); color: var(--red); }
.bp-page .delete-btn .delete-icon { font-size: 18px; }

/* Replies: indented under a thin line */
.bp-page .replies-container { margin-left: 26px; padding-left: 16px; border-left: 2px solid rgb(255 255 255 / 0.35); }
.bp-page .replies-container:empty { display: none; }

.bp-page .reply-form-container { margin: 8px 0 0 42px; }
.bp-page .reply-form { margin: 0; }
.bp-page .reply-input-wrapper { display: flex; flex-direction: column; gap: 8px; }
.bp-page .reply-input { min-height: 64px; }
.bp-page .reply-form-actions { display: flex; justify-content: flex-end; gap: 6px; }

.bp-page .cancel-reply-btn,
.bp-page .submit-reply-btn {
  --cut: 5px;
  min-height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 150ms ease-out;
}
.bp-page .cancel-reply-btn { background: var(--sky-chip); color: var(--sky-text); }
.bp-page .cancel-reply-btn:hover { background: var(--sky-chip-hi); }
.bp-page .submit-reply-btn { background: var(--orange); color: #fff; }
.bp-page .submit-reply-btn:hover { background: var(--orange-hi); }

/* Exact time on hover over a relative time */
.bp-page .relative-time { position: relative; cursor: help; }
.bp-page .relative-time[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 5px 9px;
  background: var(--text);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

/* ─── The ⋯ menu (moved onto <body>) ───────────────────────────────────── */

.blog-context-menu {
  position: fixed;
  z-index: 9999;
  display: none;
  min-width: 170px;
  padding: 4px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.blog-menu-item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: left !important;
  text-decoration: none !important;
  opacity: 1 !important;
  cursor: pointer !important;
}
.blog-menu-item:hover { background: var(--soft) !important; }
.blog-menu-item--danger { color: var(--red) !important; }
.blog-menu-item:disabled { opacity: 0.5 !important; cursor: default !important; }

/* ─── Modals ────────────────────────────────────────────────────────────── */

.restrict-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(10 12 20 / 0.6);
}
.restrict-modal {
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  background: var(--panel);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.restrict-modal h3 {
  margin: 0 0 6px;
  font-family: var(--display) !important;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.restrict-modal p { margin: 0 0 14px; color: var(--text-2); }
.bp-check { display: flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }
.bp-check input { margin: 0; accent-color: var(--orange); }
.restrict-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ─── @mention tooltip (moved onto <body>), as blog.php ────────────────── */

.user-tooltip {
  --tooltip-color: #333;
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  width: 230px;
  padding: 10px;
  background-color: #333;
  border-radius: 4px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.user-tooltip::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  margin-left: -12px;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.3) transparent transparent transparent;
}
.user-tooltip::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  margin-left: -10px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: var(--tooltip-color) transparent transparent transparent;
}
.user-tooltip.visible { opacity: 1; transform: translateY(-20px); }
.user-tooltip .tooltip-avatar {
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #fff;
  background-size: 190%;
  background-position: center 5%;
  box-shadow: 0 0 1px 3px rgb(0 0 0 / 19%);
}
.user-tooltip .tooltip-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; margin-top: 6px; }
.user-tooltip .tooltip-header { margin-bottom: 1px; }
.user-tooltip .tooltip-name-container { display: flex; align-items: center; margin-bottom: 2px; }
.user-tooltip .tooltip-flame { position: relative; top: -2px; height: 16px; }
.user-tooltip .tooltip-username { font-size: 16px; font-weight: 700; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
.user-tooltip .tooltip-staffrank {
  margin-left: 11px;
  padding: 1px 4px;
  border-radius: 3px;
  background-color: rgb(255 255 255 / 54%);
  font-size: 9px;
  font-weight: 700;
}
.user-tooltip .tooltip-staffrank.admin-rank { color: #ae58ff; }
.user-tooltip .tooltip-staffrank.mod-rank { color: #1baf80; }
.user-tooltip .tooltip-staffrank.des-rank { color: #e62626; }
.user-tooltip .tooltip-stats { margin-bottom: 4px; font-size: 11px; }
.user-tooltip .tooltip-points,
.user-tooltip .tooltip-last-active { padding-left: 5px; }
.user-tooltip .tooltip-quote {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 23px;
  margin-left: 5px;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-style: italic;
  opacity: 0.5;
}

/* ─── Hunt items (added onto <body>), as blog.php ──────────────────────── */

.hunt-item {
  position: fixed;
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: huntItemPulse 2s ease-in-out infinite;
}
.hunt-item:hover { transform: scale(1.1); filter: brightness(1.2); }
.hunt-item img { max-width: 60px; max-height: 60px; pointer-events: none; }
@keyframes huntItemPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
  50%      { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
}

@media (prefers-reduced-motion: reduce) {
  .bp-page, .bp-page *, .user-tooltip { animation: none !important; transition: none !important; }
}

/* ─── Smaller screens: the post first, the author and their other posts under it ─── */

@media (max-width: 899px) {
  .bp-blog { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bp-side { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
  .bp-ava-link { grid-row: span 2; }
  .bp-ava { width: 120px; height: 120px; }
  .bp-side > .bp-btn { grid-column: 2; }
  .bp-main { order: -1; }
  .bp-side { order: 1; padding-top: 20px; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .bp-panel { padding: 12px; }
  .bp-blog { padding: 18px 16px; }
  .bp-title { font-size: 24px; }
  .bp-body { font-size: 15px; }
  .bp-side { grid-template-columns: 84px minmax(0, 1fr); }
  .bp-ava { width: 84px; height: 84px; }
  .bp-col-title { font-size: 24px; }
  .bp-page .comm { padding: 12px 14px 10px; gap: 10px; }
  .bp-page .smallava { width: 40px; height: 40px; }
  .bp-page .reply-avatar { width: 32px; height: 32px; }
  .bp-page .replies-container { margin-left: 12px; padding-left: 10px; }
  .bp-page .reply-form-container { margin-left: 22px; }
  .bp-body iframe { width: 100% !important; }
}
