/* ===================================================================
   G1R:MP — Colony :: COMPACT overrides
   Only sizes (heights / padding / margins / font-size). Colors, fonts,
   gradients and borders are inherited from g1rmp-colony.css untouched.
   Loaded last via headerinclude so it wins on load order.
   =================================================================== */

/* --- Hero banner ------------------------------------------------------ */
.g1r-forum-hero        { min-height: 130px !important; }
.g1r-hero-copy         { padding: 1.4rem 0 !important; }
.g1r-forum-hero h1     { font-size: clamp(1.9rem, 3.6vw, 3rem) !important; }
.g1r-forum-hero p      { margin: .45rem 0 0 !important; font-size: .8rem !important; }
.g1r-forum-hero::after { font-size: clamp(3.5rem, 9vw, 7rem) !important; bottom: -1.4rem !important; }

/* --- Main column padding --------------------------------------------- */
.g1r-forum-main        { padding: 1.5rem 0 2.5rem !important; }

/* --- Welcome / actions bar ------------------------------------------- */
.g1r-forum-welcome     { margin-bottom: .9rem !important; padding: .6rem 1rem !important; }

/* --- Category header (thead) ----------------------------------------- */
.thead-forums          { margin-top: 1.1rem !important; padding: .5rem 1rem .5rem 1.25rem !important; }
.thead-forums .forum-name,
.thead-forums .forum-name span { font-size: 1rem !important; }
.description-forums    { font-size: .64rem !important; }

/* --- Forum rows (subforum blocks) ------------------------------------ */
.g1r-forum-row {
  grid-template-columns: 54px minmax(210px, 1.4fr) 150px minmax(200px, .8fr) !important;
  gap: .9rem !important;
  min-height: 58px !important;
  padding: .55rem 1.1rem !important;
}
.g1r-forum-rune          { width: 30px !important; height: 34px !important; }
.g1r-forum-rune::before  { font-size: 1rem !important; }
.g1r-forum-copy h2       { margin: 0 0 .12rem !important; font-size: 1.02rem !important; }
.g1r-forum-copy p,
.g1r-subforums           { font-size: .64rem !important; }
.g1r-subforums           { margin-top: .2rem !important; }
.g1r-forum-counts div    { padding: .2rem .6rem !important; }
.g1r-forum-counts dd,
.g1r-thread-counts dd,
.g1r-author-stats dd     { font-size: .78rem !important; }
.g1r-forum-lastpost,
.g1r-thread-lastpost     { gap: .6rem !important; padding-left: .75rem !important; }
.g1r-mini-avatar         { width: 32px !important; height: 32px !important; flex: 0 0 32px !important; }
.g1r-mini-avatar::before { font-size: .95rem !important; }

/* --- "At a glance" stats — tight flat chips + traditional board stats - */
.g1r-colony-stats        { padding: .6rem .8rem !important; margin-top: .9rem !important; }
.g1r-stats-heading       { margin-bottom: .4rem !important; padding-bottom: .3rem !important; }
.g1r-stats-heading h2    { font-size: .88rem !important; letter-spacing: .02em !important; }
.g1r-stats-heading .g1r-eyebrow { font-size: .54rem !important; }
.g1r-stat-grid           { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; gap: .35rem !important; }
.g1r-stat-card,
.g1r-stat-grid > .box-stats { min-height: 0 !important; align-items: center !important; gap: .5rem !important; padding: .3rem .5rem !important; }
.g1r-stat-icon,
.g1r-stat-grid > .box-stats .icon-stats {
  width: 18px !important; height: 18px !important; flex: 0 0 18px !important;
  background: linear-gradient(145deg, rgba(184,139,69,.18), rgba(184,139,69,.03)) !important;
  border-color: rgba(226,189,115,.38) !important;
}
.g1r-stat-icon i         { font-size: .5rem !important; }
.g1r-stat-grid > .box-stats .icon-stats img { width: 13px !important; height: 13px !important; }
.g1r-stat-card strong,
.g1r-stat-grid .title-stats { font-size: .82rem !important; line-height: 1 !important; }
.g1r-stat-card small,
.g1r-stat-grid .text-stats,
.g1r-stat-grid .text-stats12 { font-size: .46rem !important; letter-spacing: .1em !important; }

/* board statistics as compact labeled stat chips (newest / online / peak /
   who's-online) instead of long sentences. */
.g1r-board-stats {
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px solid var(--g1r-line-soft, var(--g1r-line));
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, .55fr)) minmax(320px, 2fr);
  align-items: stretch;
  gap: 0;
}
.g1r-bstat {
  display: flex;
  min-width: 0;
  min-height: 40px;
  padding: .18rem .85rem;
  flex-direction: column;
  justify-content: center;
  gap: .1rem;
  border-left: 1px solid rgba(226, 189, 115, .1);
}
.g1r-bstat:first-child { padding-left: 0; border-left: 0; }
.g1r-bstat-k { color: var(--g1r-ore-bright); font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; }
.g1r-bstat-v { color: #cdd0c6; font-size: .8rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.g1r-bstat-v > em { display: block; margin-top: .06rem; color: #7e847b; font-style: normal; font-size: .54rem; font-weight: 400; letter-spacing: .03em; }
.g1r-bstat-v a { color: #cdd0c6; font-weight: 600; }
.g1r-bstat-list {
  margin: 0;
  max-width: none;
  padding-right: 0;
  text-align: right;
  align-items: flex-end;
}
.g1r-bstat-list .g1r-bstat-k {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
}
.g1r-bstat-list .g1r-bstat-k i {
  width: .72rem;
  height: .72rem;
  color: #789665;
}
.g1r-bstat-list .g1r-bstat-v {
  display: block !important;
  width: 100%;
  font-size: .64rem;
  font-weight: 400;
  line-height: 1.45;
  color: #9a9f96;
  overflow-wrap: normal;
  word-break: normal;
}
.g1r-bstat-list .g1r-bstat-v a,
.g1r-bstat-list .g1r-bstat-v > span,
.g1r-bstat-list .g1r-bstat-v a > span,
.g1r-bstat-list .g1r-bstat-v a strong,
.g1r-bstat-list .g1r-bstat-v a em {
  display: inline !important;
  width: auto !important;
  white-space: nowrap !important;
}
.g1r-bstat-list .g1r-bstat-v a { font-weight: 500; color: #c9c6ba; }
.g1r-bstat-list .g1r-bstat-v:empty::before { content: "No one is online right now."; color: #6f746c; }

@media (max-width: 980px) {
  .g1r-board-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: .55rem;
  }

  .g1r-bstat-list {
    grid-column: 1 / -1;
    min-height: 36px;
    padding: .55rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(226, 189, 115, .1);
    text-align: left;
    align-items: flex-start;
  }

  .g1r-bstat-list .g1r-bstat-k { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .g1r-board-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g1r-bstat { padding: .25rem .6rem; }
  .g1r-bstat:first-child { padding-left: 0; }
  .g1r-bstat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .g1r-bstat-list { grid-column: 1 / -1; padding: .55rem 0 0; }
}

/* ===================================================================
   Inline-SVG icon system. Renders the theme's <i class="fas fa-X">
   icons as themed SVGs via CSS mask (coloured by currentColor), so the
   icons work WITHOUT the domain-locked FontAwesome kit. Add an icon by
   giving its .fa-NAME a --svg url(). Paths are Material-style, 24x24.
   =================================================================== */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  font-style: normal;
  -webkit-mask: var(--svg, none) center / contain no-repeat;
          mask: var(--svg, none) center / contain no-repeat;
}
.fa-check        { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>"); }
.fa-bolt         { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v11h3v9l7-12h-4l4-8z'/></svg>"); }
.fa-eye          { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5C21.27 7.61 17 4.5 12 4.5zM12 17a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/></svg>"); }
.fa-search       { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/></svg>"); }
.fa-users        { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/></svg>"); }
.fa-comments,
.fa-comment-dots { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/></svg>"); }
.fa-clock        { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/></svg>"); }
.fa-caret-down   { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>"); }
.fa-thumbs-up    { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/></svg>"); }
.fa-sign-out-alt { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5-5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/></svg>"); }
.fa-paper-plane  { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2.01 21 23 12 2.01 3 2 10l15 2-15 2z'/></svg>"); }
.fa-key          { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z'/></svg>"); }
.fa-fire         { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z'/></svg>"); }
.fa-book-open    { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z'/></svg>"); }
.fa-server       { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z'/></svg>"); }
.fa-shield-alt   { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/></svg>"); }
.fa-feather-alt  { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/></svg>"); }
.fa-scroll       { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/></svg>"); }
.fa-bars         { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/></svg>"); }
.fa-plus         { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/></svg>"); }
.fa-reply        { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z'/></svg>"); }
.fa-bell         { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 22a2 2 0 0 0 2-2h-4a2 2 0 0 0 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4a1.5 1.5 0 0 0-3 0v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/></svg>"); }
.fa-envelope     { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/></svg>"); }
.fa-trash,
.fa-trash-alt    { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/></svg>"); }
.fa-pen,
.fa-edit         { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/></svg>"); }
.fa-quote-right,
.fa-quote-left   { --svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/></svg>"); }

/* --- Tighten navbar: no gap to the hero + trim its bottom padding
   (was 20px) so the nav sits closer to the banner. */
.g1r-header { margin-bottom: 0 !important; padding-bottom: 5px !important; padding-top: 5px !important; }

/* --- Forum-body icons: bigger + gold so they're clearly legible. The
   navbar sits OUTSIDE .content-bg, so its (perfect) 12px icons are
   untouched. Body button icons were 10px and grey — bump + recolour. */
.content-bg .g1r-button .fa,   .content-bg .g1r-button .fas,   .content-bg .g1r-button .far,
.content-bg .button .fa,       .content-bg .button .fas,       .content-bg .button .far,
.content-bg .postbit_buttons a .fa, .content-bg .postbit_buttons a .fas,
.content-bg .g1r-toolbar-actions .fas, .content-bg .g1r-directory-footer .fas,
.content-bg .g1r-thread-toolbar .fas {
  width: 14px !important; height: 14px !important;
  background-color: var(--g1r-ore-bright) !important;
}
/* stat diamond icons: up from ~8px to legible */
.content-bg .g1r-stat-icon i { width: 12px !important; height: 12px !important; }

/* --- Subforum markers: a folder icon instead of the blue circle —
   a nice green when there are unread posts, muted grey when read. */
.subforumicon {
  width: 12px !important; height: 12px !important;
  margin: 0 5px -1px 1px !important;
  border-radius: 0 !important;
  background-image: none !important;
  background-color: #5b615a !important;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z'/></svg>") center / contain no-repeat !important;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z'/></svg>") center / contain no-repeat !important;
}
.subforum_minion            { background-color: #6fbf73 !important; background-image: none !important; }  /* unread → green */
.subforum_minioff,
.subforum_minioffclose,
.subforum_miniofflink       { background-color: #5b615a !important; background-image: none !important; }  /* read → muted */

/* --- No-avatar user placeholder: show a person icon instead of the "G".
   (Real avatars still cover this via the <img>.) */
.g1r-mini-avatar { position: relative !important; }
.g1r-mini-avatar::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 60% !important; height: 60% !important;
  background-color: #8a7b5f !important;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>") center / contain no-repeat !important;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>") center / contain no-repeat !important;
}

.g1r-mini-avatar:has(img)::before {
  display: none !important;
}

/* Last Poster Avatar compatibility.
   The plugin owns avatar injection; the theme only frames its output. */
.g1r-forum-lastpost > .avatarep_fd,
.g1r-thread-lastpost .avatarep_fd {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(226, 189, 115, .3) !important;
  background: linear-gradient(145deg, #252b26, #101411) !important;
  box-sizing: border-box !important;
}

.g1r-forum-lastpost > .avatarep_fd {
  float: none !important;
  position: relative !important;
}

.g1r-thread-lastpost {
  position: relative !important;
  padding-left: calc(1rem + 44px + .85rem) !important;
}

.g1r-thread-lastpost .avatarep_fd {
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  float: none !important;
}

.g1r-forum-lastpost > .avatarep_fd img,
.g1r-thread-lastpost .avatarep_fd img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

@media (max-width: 720px) {
  .g1r-forum-lastpost > .avatarep_fd,
  .g1r-thread-lastpost .avatarep_fd {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
  }

  .g1r-thread-lastpost {
    padding-left: calc(.75rem + 32px + .6rem) !important;
  }

  .g1r-thread-lastpost .avatarep_fd {
    left: .75rem !important;
  }
}

/* Explicit MyBB group/rank name in the post author panel. */
.g1r-user-rank {
  display: inline-flex !important;
  align-items: center !important;
  gap: .35rem !important;
  max-width: 100% !important;
  margin-top: .45rem !important;
  padding: .28rem .52rem !important;
  border: 1px solid rgba(197, 151, 64, .28) !important;
  background: rgba(197, 151, 64, .055) !important;
  color: #d3c5a5 !important;
  font-size: .61rem !important;
  line-height: 1.2 !important;
  letter-spacing: .055em !important;
  text-transform: none !important;
  box-sizing: border-box !important;
}

.g1r-user-rank > i {
  color: #b58a3b !important;
  font-size: .64rem !important;
}


/* --- Remove the leftover blue accent bars (base theme's blue scheme).
   They appear on category headers, .thead panel headings (e.g. "YOUR
   ACCOUNT SUMMARY"), last-post/thread headings and sidebar headings.
   The theme's accent is gold, so drop these entirely. */
a.forum-name:before,
.thead-forums a.forum-name:before,
.sidebar-thead1:before,
.lt-lastpost h2:before,
.lt-lastthread h2:before,
tr .thead:before { display: none !important; }
/* reclaim the indent that reserved space for the removed bar */
a.forum-name span { margin-left: 0 !important; }

/* --- Footer: headings left-aligned directly above each link column ---
   Links are width:fit-content (left), while the block heading inherited
   text-align:center. Force the whole column left so they line up. */
.g1r-footer-links      { text-align: left !important; }
.g1r-footer-links h3   { text-align: left !important; }

/* --- Forum view header ("DISCUSSION BOARD / MY FORUM") ----------------
   Compact the oversized board header. The Subscribe button is relocated
   into the thread toolbar (as a 3rd button matching "Mark this forum
   read") via a template edit — see forumdisplay_threadlist. */
.g1r-board-head,
.g1r-thread-head {
  align-items: flex-start !important;
  margin-bottom: 1rem !important;
  padding: .8rem 1.15rem !important;
}
.g1r-board-head h1,
.g1r-thread-head h1 {
  margin: .1rem 0 .2rem !important;
  font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
}

/* --- Thread post block: match the header/toolbar width -----------------
   #posts had width:min(1180px, 100% - 2.5rem) but lives inside the
   already-1180px .g1r-thread-page, so the 2.5rem inset applied twice and
   the post border sat 40px narrower than the headers. Fill the parent. */
#posts {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* --- Thread moderation / forum-jump bar: one compact line -------------
   The bar was flex-wrap:wrap with <br> tags forcing the forum-jump onto
   a second row. Collapse everything onto a single tidy line. */
.g1r-thread-admin-tools {
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .5rem 1rem !important;
  font-size: .72rem !important;
}
.g1r-thread-admin-tools br { display: none !important; }
.g1r-thread-admin-tools form {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  flex: 0 1 auto !important;
}
.g1r-thread-admin-tools .smalltext { white-space: nowrap !important; }
.g1r-thread-admin-tools select {
  flex: 0 1 150px !important;
  min-width: 88px !important;
  padding: .28rem .5rem !important;
  font-size: .72rem !important;
}
.g1r-thread-admin-tools .button,
.g1r-thread-admin-tools input.button {
  height: 28px !important;      /* match the dropdown select height */
  min-height: 0 !important;     /* theme's .button forces a taller fixed height */
  line-height: 1 !important;
  padding: 0 .7rem !important;
}

/* --- Thread toolbar: "Subscribe to this thread" sits beside "New Reply"
   (moved out of the header via template edit) with matching spacing. */
.g1r-thread-toolbar > div {
  display: inline-flex !important;
  align-items: center !important;
  gap: .6rem !important;
}

/* --- Navbar right-side buttons: same height + centered content --------
   The profile/ADMIN button was 48px (oversized avatar) while Mod CP /
   Admin CP / Log out / mail were 38px. Lock them all to one height with
   vertically-centered labels. */
.g1r-user-links > a {
  height: 38px !important;
  padding: 0 .85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .45rem !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.g1r-user-links .avatar-user {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
}

/* --- Thread toolbar: keep Subscribe + New Reply on the same baseline --
   Both buttons pinned to one height + inline-flex centered so they align. */
.g1r-thread-toolbar > div:last-child > a,
.g1r-thread-toolbar > div:last-child > .button {
  height: 38px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* --- Redirect / post-confirmation page --------------------------------
   "Alternatively, return to the forum." was stretched edge-to-edge because
   nowe.css forces every .trow1 a to width:calc(100% - 100px);inline-block.
   That cell is uniquely <td class="trow1" align="center"><p>…</p>. */
.trow1[align="center"] > p { text-align: center !important; }
.trow1[align="center"] > p a { width: auto !important; display: inline !important; }

/* --- Forumdisplay thread rows: compact to match index forum rows ------ */
.g1r-thread-row {
  grid-template-columns: 40px minmax(210px, 1.4fr) 150px minmax(190px, .8fr) 24px !important;
  gap: .9rem !important;
  min-height: 58px !important;
  padding: .55rem 1.1rem !important;
}
.g1r-thread-status { width: 30px !important; height: 30px !important; }
.g1r-thread-status::before { font-size: 1rem !important; }
.g1r-thread-copy h2 { margin: 0 0 .12rem !important; font-size: 1.02rem !important; }
.g1r-thread-copy p { font-size: .6rem !important; }
.g1r-thread-counts div { padding-left: .6rem !important; }

/* --- Forumdisplay inline-moderation bar: one compact line, buttons
   matched to the dropdown height (theme .button forces a tall 38px). --- */
.g1r-directory-footer {
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .5rem 1rem !important;
  font-size: .72rem !important;
}
.g1r-directory-footer br { display: none !important; }
.g1r-directory-footer form#inlinemoderation_options {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  flex: 0 1 auto !important;
  flex-wrap: nowrap !important;
}
.g1r-directory-footer .smalltext { white-space: nowrap !important; }
.g1r-directory-footer select#inlinemoderation_options_selector {
  flex: 0 1 150px !important;
  min-width: 88px !important;
  padding: .28rem .5rem !important;
  font-size: .72rem !important;
}
.g1r-directory-footer .button,
.g1r-directory-footer input.button {
  height: 28px !important;
  min-height: 0 !important;
  line-height: 1 !important;
  padding: 0 .7rem !important;
}

/* --- Popup menus (EDIT quick/full-edit, inline mod, PM, multiquote):
   open AT the button, not far away. css3.css sets .content-bg{position:
   relative}, making that centered page wrapper the containing block for
   MyBB's absolutely-positioned .popup_menu (its JS writes document-relative
   coords assuming <body>), so the popup lands off to the side. */
.content-bg { position: static !important; }

/* --- User CP nav dropdowns (desktop): stop the bar clipping the popup ----
   new.css sets .topnav1{overflow:hidden} and .dropdown1{overflow:hidden},
   cutting off the hover menu (.dropdown-content1) inside the bar. Let them
   overflow and anchor the popup to its own button. */
.topnav1 {
  display: flex !important;        /* contain + vertically-center the items
                                      (overflow:visible lost the float height) */
  align-items: center !important;
  overflow: visible !important;    /* keep the hover dropdowns from clipping */
  border-radius: 0 !important;     /* square, not rounded */
  padding: 4px 18px !important;
  margin-top: 1.75rem !important;  /* breathing room under the hero */
  border: 1px solid var(--g1r-line) !important;         /* framed like the rest */
  box-shadow: inset 3px 0 0 var(--g1r-ore) !important;  /* gold left accent */
}
.dropdown1 { overflow: visible !important; position: relative !important; }
.dropdown-content1 {
  top: 100% !important;
  left: 0 !important;
  margin-left: 0 !important;
  z-index: 999999 !important;
  width: max-content !important;   /* grow to the longest item… */
  min-width: 180px !important;     /* …but never look cramped */
}
.dropdown-content1 a { white-space: nowrap !important; }  /* one line, no mid-word wrap */

/* --- Table column headers: stop "Replies"/"Views" etc. (.tcat cells are
   uppercase + letter-spaced) from wrapping mid-word in narrow columns
   (e.g. usercp "Your Latest Threads": "REPLI ES" / "VIEW S"). */
.tcat { white-space: nowrap !important; }

/* --- Post body: close the big empty gap between the post header (date bar)
   and the message text. .g1r-post-head had margin-bottom:40px and the body
   added padding-top:20px (~60px of dead space). */
.g1r-post-head { margin-bottom: .7rem !important; }
.g1r-post-body { padding-top: 0 !important; }

/* --- "Important Threads" / "Normal Threads" dividers ------------------
   Core emits these as <tr><td class="trow_sep">, which is invalid inside
   this theme's <div> thread list, so the tags were stripped and the label
   was bare cramped text. The sticky/threads separator templates now emit
   <div class="g1r-thread-group">; style it as a distinct section header
   with clear space above it and below (before the threads). */
.g1r-thread-group {
  margin: 1.6rem 0 .1rem !important;
  padding: .5rem 1.15rem !important;
  border-top: 1px solid var(--g1r-line) !important;
  border-bottom: 1px solid var(--g1r-line) !important;
  background: rgba(255,255,255,.02) !important;
  color: var(--g1r-ore-bright) !important;
  font-family: "G1R Noto Serif", Georgia, serif !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}
.g1r-thread-list > .g1r-thread-group:first-child { margin-top: .4rem !important; }

/* --- [code] blocks: dark, theme-matching instead of white ------------- */
.codeblock {
  background: #0d100e !important;
  border: 1px solid var(--g1r-line) !important;
  color: #cdd1c6 !important;
}
.codeblock .title {
  border-bottom: 1px solid var(--g1r-line) !important;
  background: transparent !important;
  color: var(--g1r-ore-bright) !important;
}
.codeblock code { background: transparent !important; color: #cdd1c6 !important; }

/* --- Forum marker: just the Gothic skull, no gem/hexagon frame. The PNG
   is black-on-white, so invert(1) makes it white-on-black and screen blend
   drops the (now-black) background, leaving a light bone skull on the row. */
.g1r-forum-rune {
  background: none !important;
  clip-path: none !important;
  filter: none !important;
  width: 50px !important;
  height: 50px !important;
  justify-self: center !important;   /* snug in its cell, not floating */
}
.g1r-forum-rune::before {
  content: "" !important;
  width: 100% !important; height: 100% !important;
  background: url("gothic-icon.png") center / contain no-repeat !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)) !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
}
/* status dot would float over the skull now — hide it on the marker */
.g1r-forum-rune .forum_status { display: none !important; }

/* --- Header navigation: keep labels intact and use the mobile menu before
   the complete signed-in navigation becomes too narrow. ---------------- */
.g1r-header-inner {
  width: min(1760px, calc(100% - 2rem)) !important;
}

.g1r-nav {
  flex: 0 0 auto;
}

.g1r-nav a,
.g1r-nav a span {
  flex-shrink: 0;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

@media (max-width: 1480px) {
  .g1r-header-inner {
    position: relative;
  }

  .g1r-mobile-toggle {
    display: inline-grid !important;
    place-items: center;
  }

  .g1r-nav {
    position: absolute;
    z-index: 50;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 82px);
    margin-left: 0;
    padding: .8rem 1rem 1.2rem;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--g1r-line);
    background: #0a0d0b;
    box-shadow: 0 20px 45px rgba(0,0,0,.5);
  }

  .forum-nav-open .g1r-nav {
    display: flex;
  }

  .g1r-nav a {
    min-height: 44px;
    padding: .8rem 1rem;
  }

  .g1r-member-area {
    margin-left: auto;
  }
}
