/* Iron Gate forum - ONLY what the register site's own stylesheet does not cover.
   The page skeleton (main-box, nav-tabs, tab-content) comes from template/light,
   so the forum changes look automatically whenever the website does.

   ============================================================
   THE FIVE DIALS. Change a value here and the whole forum follows.
   --ig-panel  the big outer panel behind everything
   --ig-paper  the reading area inside the red borders
   --ig-card   each section box / each post
   Lower the LAST number (the 0.94) to let more wallpaper through.
   Lower the three numbers before it to make the paper darker.
   ============================================================ */

:root {
  --ig-panel:    rgba(226, 221, 211, 0.94);  /* was rgba(255,255,255,0.95) - pure white */
  --ig-paper:    rgba(233, 229, 220, 0.96);  /* was #fdfdfd - pure white */
  --ig-card:     #f4f1ea;
  --ig-ink:      #2f2b26;
  --ig-ink-soft: #6b645a;
  --ig-line:     #cfc8ba;
  --ig-red:      #e74c3c;                    /* the site's own accent */
  --ig-red-dark: #c0392b;                    /* same red, dark enough for small white text */
  --ig-navy:     #272e38;                    /* the site's own nav bar */
}

/* tone the two white panels down - forum pages only, the register page is untouched */
.main-box    { background-color: var(--ig-panel); }
.tab-content { background: var(--ig-paper); color: var(--ig-ink);
               border-color: var(--ig-line);
               border-top-color: var(--ig-red); border-bottom-color: var(--ig-red); }

/* .main-box centres its text; forum copy reads left. */
.ig-body { text-align: left; }
.ig-body h1 { font-size: 26px; margin: 0 0 6px; color: var(--ig-ink); }
.ig-body h2 { font-size: 19px; margin: 0 0 4px; }

/* the GM badge sitting in the dark nav bar */
.ig-gm { font-size: 11px; border: 1px solid currentColor; border-radius: 3px;
  padding: 0 5px; vertical-align: middle; }

.ig-crumbs { margin: 0 0 14px; font-size: 14px; color: var(--ig-ink-soft); }

/* a section or topic row - light card with the site's red left edge */
.ig-card { background: var(--ig-card); border: 1px solid var(--ig-line);
  border-left: 4px solid var(--ig-red); border-radius: 3px;
  padding: 12px 14px; margin-bottom: 10px; }
.ig-card h2 a { color: var(--ig-navy); text-decoration: none; }
.ig-card h2 a:hover { color: var(--ig-red); }
.ig-card p { margin: 0; }
.ig-row { display: flex; justify-content: space-between; gap: 14px;
  align-items: baseline; flex-wrap: wrap; }
.ig-meta { font-size: 13px; color: var(--ig-ink-soft); line-height: 1.4; }

.ig-tag { font-size: 11px; font-weight: bold; letter-spacing: .5px; color: #fff;
  background: var(--ig-red-dark); border-radius: 3px; padding: 1px 6px; margin-right: 6px;
  vertical-align: middle; white-space: nowrap; }
.ig-tag.ig-quiet { background: #6c757d; }

/* a post */
.ig-post { background: var(--ig-card); border: 1px solid var(--ig-line);
  border-radius: 3px; padding: 12px 14px; margin-bottom: 10px; }
.ig-phead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 6px; margin-bottom: 10px; border-bottom: 1px solid var(--ig-line);
  font-size: 14px; color: var(--ig-ink-soft); }
.ig-phead b { color: var(--ig-navy); font-size: 15px; }
.ig-pbody { word-wrap: break-word; overflow-wrap: anywhere; }
.ig-removed .ig-pbody { color: var(--ig-ink-soft); font-style: italic; }

/* forms - the boxes you type in stay light, so text is easy to read back */
.ig-form { background: var(--ig-card); border: 1px solid var(--ig-line);
  border-radius: 3px; padding: 16px 18px; margin-top: 16px; }
.ig-form label { display: block; margin: 10px 0 4px; font-size: 14px;
  color: var(--ig-ink-soft); }
.ig-form input[type=text], .ig-form input[type=password], .ig-form textarea {
  width: 100%; padding: 9px 10px; background: #fbfaf7;
  border: 1px solid var(--ig-line); border-radius: 4px; font: inherit;
  color: var(--ig-ink); }
.ig-form textarea { min-height: 170px; resize: vertical; }
.ig-form button { margin-top: 14px; }

/* ---- moderator controls - only ever rendered for a moderator ---- */
.ig-modbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 12px 0 4px; padding: 8px 10px; background: rgba(39,46,56,.06);
  border: 1px dashed var(--ig-line); border-radius: 3px; }
.ig-modbar-post { margin: 10px 0 0; padding: 6px 8px; }
.ig-modbar-label { font-size: 11px; font-weight: bold; letter-spacing: .5px;
  text-transform: uppercase; color: var(--ig-ink-soft); margin-right: 2px; }
.ig-modform { display: inline; margin: 0; }
.ig-mbtn { display: inline-block; font-size: 13px; line-height: 1.4;
  padding: 3px 10px; border: 1px solid var(--ig-line); border-radius: 3px;
  background: #fbfaf7; color: var(--ig-navy); text-decoration: none;
  cursor: pointer; }
.ig-mbtn:hover { background: #fff; color: var(--ig-red-dark);
  border-color: var(--ig-red-dark); text-decoration: none; }
.ig-mbtn-danger { color: var(--ig-red-dark); border-color: #d9b3ad; }
.ig-mbtn-danger:hover { background: var(--ig-red-dark); color: #fff;
  border-color: var(--ig-red-dark); }

/* a deleted topic, visible to moderators only */
.ig-gone { opacity: .6; border-left-color: #6c757d; }

.ig-empty { color: var(--ig-ink-soft); font-style: italic; }
.ig-muted { color: var(--ig-ink-soft); font-size: 13px; }
.ig-foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--ig-line); }
.ig-foot p { margin: 0 0 8px; font-size: 14px; }
