/* Iran-Travian Main Forum Hub — Medieval Green */
#it-forum-hub {
  --it-hub-forest: #0c3519;
  --it-hub-forest-2: #155725;
  --it-hub-leaf: #7dbb28;
  --it-hub-gold: #b99a51;
  --it-hub-paper: #fbf8ee;
  --it-hub-paper-2: #f0ead8;
  --it-hub-line: #d8cfb6;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 14px;
  overflow: hidden;
  direction: rtl;
  color: #263628;
  border: 1px solid #a18a4c;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--it-hub-paper), var(--it-hub-paper-2));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .20), inset 0 0 0 1px rgba(255,255,255,.65);
  text-align: right;
  box-sizing: border-box;
}
#it-forum-hub *, #it-forum-hub *::before, #it-forum-hub *::after { box-sizing: border-box; }
#it-forum-hub .it-hub-heading {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 9px;
  color: #fff7d9;
  border-bottom: 1px solid #a18a4c;
  background: linear-gradient(180deg, #3c982a 0%, #1a6426 100%);
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
#it-forum-hub .it-hub-heading-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
#it-forum-hub .it-hub-heading-symbol { color: #f4d985; font-size: 15px; line-height: 1; }
#it-forum-hub .it-hub-collapse {
  width: 23px;
  height: 22px;
  flex: 0 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #174b1e;
  border: 1px solid #f1e8c2;
  border-radius: 4px;
  background: linear-gradient(#fffef2, #e8e1c9);
  box-shadow: 0 1px 2px rgba(0,0,0,.16);
  cursor: pointer;
  text-shadow: none;
}
#it-forum-hub .it-hub-collapse span { display: block; font-size: 17px; line-height: 1; transition: transform .18s ease; }
#it-forum-hub.is-collapsed .it-hub-collapse span { transform: rotate(180deg); }
#it-forum-hub .it-hub-content { display: block; }
#it-forum-hub.is-collapsed .it-hub-content { display: none; }
#it-forum-hub .it-hub-grid {
  display: grid;
  grid-template-columns: minmax(238px, 28%) minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  align-items: stretch;
}
#it-forum-hub .it-hub-ranking {
  min-width: 0;
  padding: 0 8px 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(236,229,208,.56));
  border-left: 1px solid #c7b991;
}
#it-forum-hub .it-hub-panel-title {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 1px 6px;
  color: #28532b;
  border-bottom: 1px solid #bdb08c;
  font-size: 11px;
}
#it-forum-hub .it-hub-period-form { margin: 0; flex: 0 0 auto; }
#it-forum-hub .it-hub-period-form select {
  width: 106px;
  min-height: 26px;
  padding: 3px 6px;
  color: #30442b;
  border: 1px solid #c5b98f;
  border-radius: 4px;
  background: #fffdf5;
  font-size: 10px;
  line-height: 1.4;
}
#it-forum-hub .it-hub-posters { padding-top: 4px; }
#it-forum-hub .it-hub-poster-row {
  min-height: 29px;
  display: grid;
  grid-template-columns: 30px 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 3px 1px;
  border-bottom: 1px dashed rgba(112, 102, 72, .38);
  font-size: 10.5px;
}
#it-forum-hub .it-hub-poster-row:last-child { border-bottom: 0; }
#it-forum-hub .it-hub-rank {
  color: #68745d;
  direction: ltr;
  text-align: right;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
#it-forum-hub .it-hub-crown { color: #a78b3c; text-align: center; font-size: 12px; }
#it-forum-hub .it-hub-poster-name {
  min-width: 0;
  overflow: hidden;
  color: #29812c;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
#it-forum-hub .it-hub-poster-name:hover { color: #0a431b; text-decoration: underline; }
#it-forum-hub .it-hub-poster-count {
  min-width: 34px;
  color: #47533f;
  direction: ltr;
  text-align: left;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
#it-forum-hub .it-hub-ranking-note {
  margin: 7px 1px 0;
  color: #7a775f;
  font-size: 9px;
  line-height: 1.6;
}
#it-forum-hub .it-hub-topics { min-width: 0; background: rgba(255,255,255,.44); }
#it-forum-hub .it-hub-tabs {
  min-height: 39px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid #c4b78f;
  background: linear-gradient(180deg, #fffdf7, #f1ead7);
}
#it-forum-hub .it-hub-tab {
  position: relative;
  min-height: 39px;
  margin: 0;
  padding: 5px 10px;
  color: #52634b;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-shadow: none;
}
#it-forum-hub .it-hub-tab:hover { color: #174d22; background: rgba(55, 130, 42, .06); }
#it-forum-hub .it-hub-tab.is-active {
  color: #164c20;
  border-bottom-color: #3d8a2d;
  background: rgba(255,255,255,.52);
}
#it-forum-hub .it-hub-pane { display: none; min-width: 0; }
#it-forum-hub .it-hub-pane.is-active { display: block; }
#it-forum-hub .it-hub-topic {
  min-height: 29px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) minmax(92px, 125px);
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-bottom: 1px solid rgba(203, 195, 170, .52);
  background: rgba(249, 247, 238, .63);
  font-size: 10.5px;
}
#it-forum-hub .it-hub-topic:nth-child(even) { background: rgba(230, 225, 209, .48); }
#it-forum-hub .it-hub-topic:hover { background: rgba(213, 230, 197, .55); }
#it-forum-hub .it-hub-topic-mark {
  width: 6px;
  height: 6px;
  border: 1px solid #73a34c;
  border-radius: 2px;
  background: #dcebc8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
#it-forum-hub .it-hub-topic-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#it-forum-hub .it-hub-subject {
  display: block;
  overflow: hidden;
  color: #679b16;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
#it-forum-hub .it-hub-subject:hover { color: #155322; text-decoration: underline; }
#it-forum-hub .it-hub-topic-meta { display: flex; flex-wrap: wrap; gap: 0 9px; color: #89836e; font-size: 9px; line-height: 1.4; }
#it-forum-hub .it-hub-topic-meta span + span::before { content: "·"; padding-left: 5px; color: #b2a47c; }
#it-forum-hub .it-hub-topic-poster { min-width: 0; overflow: hidden; text-align: left; }
#it-forum-hub .it-hub-last-poster {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #4e8c29;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
#it-forum-hub .it-hub-last-poster:hover { color: #174b22; text-decoration: underline; }
#it-forum-hub .it-hub-topic-stats { display: flex; justify-content: flex-end; gap: 7px; color: #8a866f; direction: ltr; font-size: 9px; white-space: nowrap; }
#it-forum-hub .it-hub-empty {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #77745f;
  font-size: 11px;
  text-align: center;
}
#it-forum-hub .it-hub-empty-ranking { min-height: 74px; }
#it-forum-hub .it-hub-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 820px) {
  #it-forum-hub .it-hub-grid { grid-template-columns: minmax(0, 1fr); }
  #it-forum-hub .it-hub-ranking { order: 2; border-left: 0; border-top: 1px solid #c7b991; }
  #it-forum-hub .it-hub-topics { order: 1; }
  #it-forum-hub .it-hub-posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  #it-forum-hub .it-hub-topic { grid-template-columns: 8px minmax(0, 1fr) minmax(84px, 115px); }
}
@media (max-width: 560px) {
  #it-forum-hub { border-radius: 6px; }
  #it-forum-hub .it-hub-tabs { padding: 0 3px; }
  #it-forum-hub .it-hub-tab { flex: 1 1 0; padding: 5px 3px; font-size: 9.5px; white-space: normal; }
  #it-forum-hub .it-hub-topic { grid-template-columns: 7px minmax(0, 1fr); gap: 5px; padding: 5px 6px; }
  #it-forum-hub .it-hub-topic-poster { display: none; }
  #it-forum-hub .it-hub-topic-meta { font-size: 8.5px; }
  #it-forum-hub .it-hub-poster-row { min-height: 28px; }
  #it-forum-hub .it-hub-posters { grid-template-columns: minmax(0, 1fr); }
}
