/** White Trash Networks / wpForo companion — industrial black and old gold. */
:root {
  --wtnfc-accent: #d8ae52;
  --wtnfc-surface: #141517;
  --wtnfc-text: #f0e9dd;
  --wtnfc-muted: #c7bbaa;
  --wtnfc-line: #5e4b30;
}

body.wtnfc-forum-page {
  background-color: #111214;
}
.wtnfc-forum-layout {
  padding: 40px 0 84px;
  min-height: 56vh;
}
.wtnfc-forum-layout__container {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}
.wtnfc-forum-layout__content {
  min-width: 0;
}
.wtnfc-forum-layout__content > .entry-content { max-width: 100%; }
.wtnfc-hero {
  color: var(--wtnfc-text);
  margin: 0 0 28px;
  border: 1px solid #8a7045;
  border-top: 4px solid var(--wtnfc-accent);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background-image: linear-gradient(96deg, #0e1011fc 0%, #111314ee 37%, #17151385 74%, #12131365 100%), var(--wtnfc-hero-image, url('../images/wtn-forums-hero.png'));
  background-position: center center;
  background-size: cover;
  box-shadow: inset 0 1px #f4d89454, 0 13px 40px #000b;
}
.wtnfc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .25;
  pointer-events: none;
  background: repeating-linear-gradient(125deg, transparent 0 18px, #e4bf7540 19px, transparent 20px 39px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 53%);
  mask-image: linear-gradient(to right, #000, transparent 53%);
}
.wtnfc-hero__content {
  padding: clamp(29px, 5vw, 65px);
  max-width: 850px;
}
.wtnfc-hero__brand { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.wtnfc-hero__badge,
.wtnfc-hero__monogram {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  object-fit: contain;
  border: 1px solid #b8985f;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 20%, #67522b, #121313 72%);
  box-shadow: 0 0 0 3px #161616, 0 0 0 4px #7f6740;
  color: var(--wtnfc-accent);
  font: 900 17px Impact, 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .08em;
}
.wtnfc-hero__kicker {
  color: #f0c875;
  font: 800 12px/1.4 'Trebuchet MS', Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.wtnfc-hero h1 {
  margin: 0 0 19px;
  color: #f3dcaa;
  font: 900 clamp(43px, 6.4vw, 93px)/.97 Impact, 'Arial Narrow', 'Trebuchet MS', sans-serif;
  letter-spacing: .027em;
  text-shadow: 1px 3px 0 #050505, 0 5px 22px #000;
  text-transform: uppercase;
}
.wtnfc-hero__description {
  max-width: 650px;
  margin: 0 0 30px;
  color: #f2e7d5;
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 600;
  line-height: 1.66;
  text-shadow: 0 2px 6px #000;
}
.wtnfc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wtnfc-button,
.wtnfc-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 2px;
  text-decoration: none;
  font: 900 12px/1.25 'Trebuchet MS', Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s, background-color .2s, transform .2s, box-shadow .2s;
}
.wtnfc-button:hover { transform: translateY(-2px); }
.wtnfc-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wtnfc-button--gold, .wtnfc-button--gold:visited {
  border: 1px solid #f4d794;
  color: #14110b;
  background: linear-gradient(140deg, #ffe5a5, var(--wtnfc-accent) 60%, #a27736);
  box-shadow: inset 0 1px #fff8cf8f, 0 5px 13px #0009;
}
.wtnfc-button--gold:hover { color: #070707; background: #ffe0a0; }
/* WTN theme link styles can override button text and make the Explore CTA unreadable.
 * This high-contrast rule is limited to the forum hero and all link states. */
.wtnfc-hero .wtnfc-hero__actions a.wtnfc-button--gold,
.wtnfc-hero .wtnfc-hero__actions a.wtnfc-button--gold:link,
.wtnfc-hero .wtnfc-hero__actions a.wtnfc-button--gold:visited {
  color: #151008 !important;
  -webkit-text-fill-color: #151008;
  opacity: 1;
  text-shadow: none;
  text-decoration: none !important;
  border: 1px solid #f4dba0;
  background: linear-gradient(165deg, #ffe7a9, #e1b960 48%, #bd9145);
  box-shadow: inset 0 1px 0 #fff5cb, 0 5px 14px #000b;
  font-size: 13px;
  font-weight: 900;
}
.wtnfc-hero .wtnfc-hero__actions a.wtnfc-button--gold:hover,
.wtnfc-hero .wtnfc-hero__actions a.wtnfc-button--gold:focus-visible {
  color: #080705 !important;
  -webkit-text-fill-color: #080705;
  background: #ffe19a;
  border-color: #fff4cc;
  box-shadow: inset 0 1px 0 #fff9e2, 0 8px 20px #000b;
}
.wtnfc-hero .wtnfc-hero__actions a.wtnfc-button--gold > span { color: inherit !important; -webkit-text-fill-color: inherit; }
.wtnfc-button--outline, .wtnfc-button--outline:visited {
  color: #f4dfb0;
  background: #0d0e0ebd;
  border: 1px solid var(--wtnfc-accent);
}
.wtnfc-button--outline:hover { background: #514025; color: #fff7e6; }
.wtnfc-button--text, .wtnfc-button--text:visited { color: #f5e2bc; border: 1px solid transparent; }
.wtnfc-button--text:hover { color: #fff; text-decoration: underline; }
.wtnfc-hero__signed-in { font-size: 12px; letter-spacing: .11em; color: #d7bc82; font-weight: 800; }
.wtnfc-hero__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 65px);
  border-top: 1px solid #715b3c;
  background: #111213eb;
  color: #baaa90;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wtnfc-hero__footer a, .wtnfc-hero__footer a:visited { color: #e6c880; text-decoration: none; }
.wtnfc-hero__footer a:hover { color: #fff0c5; }
.wtnfc-forum-index { min-width: 0; }
.wtnfc-menu-item > a { color: #f1d293; }
.wtnfc-menu-item > a:hover,
.wtnfc-menu-item > a:focus-visible { color: #ffedb8; }
/* Custom WTN headers may render buttons directly instead of using wp_nav_menu. */
.wtnfc-header-forum-link { opacity: 1; text-decoration: none; }
.wtnfc-header-forum-link:focus-visible { outline: 2px solid #f4d794; outline-offset: 3px; }

/** wpForo-specific treatment. Keep its own layout, editor and permission logic. */
body.wtnfc-forum-page #wpforo { min-width: 0; }
body.wtnfc-forum-page #wpforo #wpforo-wrap {
  color: var(--wtnfc-text);
  background: var(--wtnfc-surface);
  border: 1px solid var(--wtnfc-line);
  box-shadow: 0 12px 33px #0007;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}
body.wtnfc-forum-page #wpforo #wpforo-wrap a { transition: color .15s ease, background .15s ease; }
body.wtnfc-forum-page #wpforo #wpforo-wrap :is(.wpforo-category, .wpf-forum-icon) { border-color: #7a6138; }
body.wtnfc-forum-page #wpforo #wpforo-wrap .wpforo-category {
  color: #f0d194;
  background: linear-gradient(120deg, #302719, #151719);
  border-top: 2px solid var(--wtnfc-accent);
}
body.wtnfc-forum-page #wpforo #wpforo-wrap .wpforo-forum-title {
  color: #f1d59b;
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.3;
}
body.wtnfc-forum-page #wpforo #wpforo-wrap .wpforo-topic-title a { font-size: clamp(15px, 1.4vw, 18px); }
body.wtnfc-forum-page #wpforo #wpforo-wrap .wpforo-post .wpf-right .wpforo-post-content p { font-size: 17px; line-height: 1.75; }
body.wtnfc-forum-page #wpforo #wpforo-wrap :is(.wpf-button, .wpforo-button, .wpf-action-button) { border-radius: 2px; }
body.wtnfc-forum-page #wpforo #wpforo-wrap :is(input, select, textarea) { max-width: 100%; }

/** Optional Blog Sidebar widget. */
.wtnfc-widget {
  padding: 19px 16px 21px;
  border: 1px solid #8f713e;
  border-top: 4px solid var(--wtnfc-accent);
  background: linear-gradient(140deg, #30271b, #101213 71%);
  box-shadow: inset 0 1px #ffe2a442, 0 7px 23px #0008;
}
.wtnfc-widget__kicker { color: var(--wtnfc-accent); font: 900 11px Arial, sans-serif; letter-spacing: .19em; }
.wtnfc-widget h2 { margin: 8px 0 10px; color: #f3dca9; font: 900 26px/1.05 Impact, 'Arial Narrow', sans-serif; letter-spacing: .04em; }
.wtnfc-widget p { color: #d9cbb5; font-size: 14px; line-height: 1.65; margin-bottom: 15px; }
.wtnfc-widget .wtnfc-button { width: 100%; }

@media (max-width: 690px) {
  .wtnfc-forum-layout { padding: 14px 0 45px; }
  .wtnfc-forum-layout__container { width: min(100% - 20px, 1440px); }
  .wtnfc-hero__content { padding: 27px 20px 34px; }
  .wtnfc-hero__brand { gap: 12px; }
  .wtnfc-hero__badge, .wtnfc-hero__monogram { width: 49px; height: 49px; font-size: 12px; }
  .wtnfc-hero__kicker { font-size: 10px; letter-spacing: .12em; }
  .wtnfc-hero h1 { font-size: clamp(39px, 11vw, 61px); }
  .wtnfc-hero__description { font-size: 16px; }
  .wtnfc-hero__actions { align-items: stretch; }
  .wtnfc-hero__actions .wtnfc-button { flex: 1 1 100%; }
  .wtnfc-hero__footer { padding: 14px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .wtnfc-button, .wtnfc-button:hover { transform: none; transition: none; }
}

/** v1.1.2 — wpForo share controls. Preserve the plugin's button behaviour and URLs. */
#wpforo #wpforo-wrap .wpf-sbtn .wpf-sbtn-wrap {
  background: linear-gradient(145deg, #23201a, #111214) !important;
  border: 1px solid rgba(216, 174, 82, .34);
  border-radius: 8px;
  box-shadow: 0 6px 20px #0007;
}
#wpforo #wpforo-wrap .wpf-sbtn .wpf-sbtn-wrap :is(a, button, .wpf-sbw),
#wpforo #wpforo-wrap .wpf-sbtn :is(a, button).wpf-sbtn-toggle {
  color: #f0d9a5 !important;
  background-color: #28241e !important;
  border: 1px solid #776039 !important;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #f5d48a1c;
  text-shadow: none;
  opacity: 1;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
#wpforo #wpforo-wrap .wpf-sbtn .wpf-sbtn-wrap :is(a, button, .wpf-sbw):hover,
#wpforo #wpforo-wrap .wpf-sbtn .wpf-sbtn-wrap :is(a, button, .wpf-sbw):focus-visible,
#wpforo #wpforo-wrap .wpf-sbtn :is(a, button).wpf-sbtn-toggle:hover {
  color: #14110a !important;
  background-color: #e2bd71 !important;
  border-color: #f5da9b !important;
}
#wpforo #wpforo-wrap .wpf-sbtn .wpf-sbtn-wrap :is(a, button, .wpf-sbw) :is(i, svg) {
  color: inherit !important;
  fill: currentColor;
}

/** v1.1.2 — directory cards and tables use the same black-and-gold palette. */
#wpforo #wpforo-wrap .wpforo-members-wrap,
#wpforo #wpforo-wrap .wpforo-members-wrap .wpforo-members-content,
#wpforo #wpforo-wrap .wpforo-members-content.wpfbg-7 {
  color: #eee5d3 !important;
  background: #151615 !important;
  border-color: #6e5734 !important;
}
#wpforo #wpforo-wrap .wpforo-members-wrap .wpforo-members-content {
  border: 1px solid #6e5734 !important;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 10px 24px #0006;
}
#wpforo #wpforo-wrap .wpforo-members-content table {
  border-collapse: separate;
  border-spacing: 0;
  color: #eee5d3;
}
#wpforo #wpforo-wrap .wpforo-members-content table th {
  color: #f2d89d !important;
  background: linear-gradient(180deg, #332919, #191a1a) !important;
  border-color: #6e5734 !important;
  font-weight: 800;
  letter-spacing: .025em;
}
#wpforo #wpforo-wrap .wpforo-members-content table tr:nth-child(odd),
#wpforo #wpforo-wrap .wpforo-members .wpforo-member:nth-child(odd) {
  background: #211f1b !important;
}
#wpforo #wpforo-wrap .wpforo-members-content table tr:nth-child(even),
#wpforo #wpforo-wrap .wpforo-members .wpforo-member:nth-child(even) {
  background: #171818 !important;
}
#wpforo #wpforo-wrap .wpforo-members-content table td,
#wpforo #wpforo-wrap .wpforo-members .wpforo-member,
#wpforo #wpforo-wrap .wpforo-members .wpforo-member .wpf-members-info {
  color: #eee5d3 !important;
  border-color: #514631 !important;
}
#wpforo #wpforo-wrap .wpforo-members-content table tbody tr:hover,
#wpforo #wpforo-wrap .wpforo-members .wpforo-member:hover {
  background: #302a20 !important;
}
#wpforo #wpforo-wrap .wpforo-members :is(.wpf-members-info, .wpforo-member) a,
#wpforo #wpforo-wrap .wpforo-members-content table td a {
  color: #f0cf84 !important;
  text-shadow: none;
}
#wpforo #wpforo-wrap .wpforo-members :is(.wpf-members-info, .wpforo-member) a:hover,
#wpforo #wpforo-wrap .wpforo-members-content table td a:hover {
  color: #ffefbc !important;
}
#wpforo #wpforo-wrap .wpforo-members .wpforo-member img.avatar,
#wpforo #wpforo-wrap .wpforo-members-content img.avatar {
  border: 2px solid #b18d4c;
  border-radius: 50%;
  box-shadow: 0 3px 10px #0007;
}
#wpforo #wpforo-wrap .wpforo-members .wpforo-member .wpf-member-title.wpfut {
  color: #17130c !important;
  background: #c7a35b !important;
  border: 1px solid #e3c781;
  border-radius: 4px;
  padding: 3px 7px;
  font-weight: 800;
}
#wpforo #wpforo-wrap .wpforo-members .wpforo-member .wpforo-member-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 28px;
  min-height: 28px;
  color: #e9cc8a !important;
  background: #29241b !important;
  border: 1px solid #836739;
  border-radius: 5px;
  text-decoration: none;
}
#wpforo #wpforo-wrap .wpforo-members .wpforo-member .wpforo-member-social a:hover,
#wpforo #wpforo-wrap .wpforo-members .wpforo-member .wpforo-member-social a:focus-visible {
  color: #17120b !important;
  background: #e3c477 !important;
}
#wpforo #wpforo-wrap .wpforo-members-wrap :is(input, select) {
  color: #eee5d3;
  background: #23211d;
  border: 1px solid #79623e;
  border-radius: 5px;
}
@media (max-width: 690px) {
  #wpforo #wpforo-wrap .wpf-sbtn .wpf-sbtn-wrap {
    max-width: 100%;
  }
  #wpforo #wpforo-wrap .wpforo-members-wrap .wpforo-members-content {
    border-radius: 6px;
  }
}
