/* Guild Hub NH */
.guild-hub { max-width: 1100px; margin: 0 auto 2rem; color: #1d2433; }
.guild-hub-banner {
  margin: 0 0 .85rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #0e1218;
  max-height: 220px;
}
.guild-hub-banner img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}
.guild-hub-banner-preview {
  margin: .35rem 0 .55rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
  max-width: 100%;
  background: #0e1218;
}
.guild-hub-banner-preview img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
}
.guild-hub-hero {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem 1.4rem; border-radius: 10px;
  background: linear-gradient(180deg, rgba(51,101,166,.12), #fff);
  border: 1px solid rgba(0,0,0,.08); margin-bottom: 1rem;
}
.guild-hub-emblem { width: 72px; height: 72px; image-rendering: pixelated; background: #e8eef6; border-radius: 8px; }
.guild-hub-hero h1 { margin: 0 0 .35rem; font-size: 1.55rem; }
.guild-hub-meta { display: flex; flex-wrap: wrap; gap: .5rem .85rem; font-size: .9rem; opacity: .85; margin: .4rem 0; }
.guild-hub-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.guild-hub-tag {
  font-size: .75rem; padding: .15rem .5rem; border-radius: 999px;
  background: #e8eef6; color: #1a5189; border: 1px solid #c5d4e8;
}
.guild-hub-tag.is-recruit { background: #e7f6ea; color: #1e6b34; border-color: #b7dfc0; }
.guild-hub-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; align-items: center; }
.guild-hub-actions a, .guild-hub-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; max-width: 100%; box-sizing: border-box;
  padding: .45rem .9rem; border-radius: 6px;
  background: #1a5189; color: #fff !important; text-decoration: none; border: 0;
  cursor: pointer; font-size: .9rem; line-height: 1.2; white-space: nowrap;
}
.guild-hub-actions a.secondary, .guild-hub-btn.secondary { background: #667788; }
.guild-hub-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
@media (max-width: 860px) { .guild-hub-grid { grid-template-columns: 1fr; } }
.guild-hub-card {
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 10px;
  padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.guild-hub-card h2, .guild-hub-card h3 { margin: 0 0 .75rem; font-size: 1.1rem; }
.guild-hub-card p { margin: 0 0 .65rem; line-height: 1.45; }
.guild-hub-card p.guild-hub-bio,
.guild-hub-card article p { white-space: pre-wrap; }
.guild-hub-tabs {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem;
  padding: .5rem; background: #f1f0f0; border-radius: 8px;
}
.guild-hub-tabs a {
  padding: .35rem .7rem; border-radius: 6px; text-decoration: none; color: #333;
  font-size: .9rem;
}
.guild-hub-tabs a.is-active { background: #1a5189; color: #fff !important; }
.guild-hub-flash {
  padding: .65rem .85rem; border-radius: 8px; margin-bottom: 1rem;
  background: #e7f6ea; border: 1px solid #b7dfc0; color: #1e6b34;
}
.guild-hub-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.guild-hub-table th, .guild-hub-table td {
  border-bottom: 1px solid #e4e7ec; padding: .4rem .45rem; text-align: left;
}
.guild-hub-table th { background: #f6f8fb; font-weight: 600; }
.guild-hub-form label { display: block; margin: .55rem 0 .2rem; font-size: .9rem; }
.guild-hub-form input[type=text], .guild-hub-form input[type=url],
.guild-hub-form input[type=number], .guild-hub-form input[type=datetime-local],
.guild-hub-form textarea, .guild-hub-form select {
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: .35rem .5rem; border: 1px solid #c9d0db; border-radius: 6px;
}
.guild-hub-form textarea { min-height: 90px; }
.guild-hub-form .row-check { display: flex; flex-wrap: wrap; gap: .75rem; margin: .6rem 0; }
.guild-hub-muted { opacity: .7; font-size: .85rem; }
.guild-hub-kpi { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.guild-hub-kpi .kpi {
  flex: 1 1 120px; background: #f6f8fb; border-radius: 8px; padding: .65rem .75rem;
  border: 1px solid #e4e7ec;
}
.guild-hub-kpi .kpi b { display: block; font-size: 1.2rem; }
.guild-hub-filter { margin-bottom: .75rem; }
.guild-hub-icon-cell { width: 28px; vertical-align: middle; }
.guild-hub-item-icon {
  width: 24px; height: 24px; image-rendering: pixelated;
  display: block; vertical-align: middle;
}
html[data-theme=dark] .guild-hub { color: #dbe7f5; }
html[data-theme=dark] .guild-hub-banner,
html[data-theme=dark] .guild-hub-banner-preview {
  border-color: #2c3a4f;
}
html[data-theme=dark] .guild-hub-hero,
html[data-theme=dark] .guild-hub-card {
  background: #1a2332; border-color: #2c3a4f; color: #dbe7f5;
}
html[data-theme=dark] .guild-hub-tabs { background: #141c28; }
html[data-theme=dark] .guild-hub-tabs a { color: #c5d4e8; }
html[data-theme=dark] .guild-hub-table th { background: #141c28; }
html[data-theme=dark] .guild-hub-table th,
html[data-theme=dark] .guild-hub-table td { border-color: #2c3a4f; }
html[data-theme=dark] .guild-hub-kpi .kpi { background: #141c28; border-color: #2c3a4f; }
html[data-theme=dark] .guild-hub-form input,
html[data-theme=dark] .guild-hub-form textarea,
html[data-theme=dark] .guild-hub-form select {
  background: #141c28; border-color: #2c3a4f; color: #dbe7f5;
}
