/* ============================================================
   profession.css
   직업(Profession) 페이지 공통 스타일
   warrior.html, guardian.html 등 모든 직업 페이지에서 사용
   ============================================================ */

/* ── 언어 전환: EN 숨김 (프로토타입 이중 언어 구조 대응) ── */
[data-lang="en"] { display: none !important; }

/* ── 프로토타입 내부 지시서/메모 숨김 ── */
.profession-generated-note { display: none !important; }
.sec-box > p[style*="font-size: 14px"][style*="color: var(--color-text-muted)"] { display: none !important; }
.sec-box > p[style*="font-size: 15px"][style*="color: var(--color-text-2)"] { display: none !important; }
.sec-box > .info-grid { display: none !important; }


/* ── Hero Banner ─────────────────────────────────────────── */
.prof-hero {
  --prof-hero-base: #17120e;
  --prof-hero-mid: #2d1d13;
  --prof-hero-accent: #7f5425;
  --prof-hero-bright: #d7ae66;
  --prof-hero-glow: rgba(215, 174, 102, 0.18);
  --prof-hero-glow-soft: rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(135deg, var(--prof-hero-base) 0%, var(--prof-hero-mid) 54%, var(--prof-hero-accent) 100%);
  box-shadow: inset 0 -28px 64px rgba(0, 0, 0, 0.18);
  padding: var(--sp-10) var(--sp-5) var(--sp-8);
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
}
.prof-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 14%, var(--prof-hero-glow-soft) 0, transparent 30%),
    radial-gradient(circle at 84% 10%, var(--prof-hero-glow) 0, transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 34%);
  pointer-events: none;
}
.prof-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--prof-hero-bright) 20%, var(--prof-hero-accent) 50%, var(--prof-hero-bright) 80%, transparent 100%);
}
.prof-hero > * {
  position: relative;
  z-index: 1;
}
.prof-hero--warrior {
  --prof-hero-base: #15100d;
  --prof-hero-mid: #2f2117;
  --prof-hero-accent: #8d5f2b;
  --prof-hero-bright: #d9ac63;
  --prof-hero-glow: rgba(192, 122, 26, 0.2);
}
.prof-hero--guardian {
  --prof-hero-base: #10161f;
  --prof-hero-mid: #1e3047;
  --prof-hero-accent: #426f97;
  --prof-hero-bright: #95c2e4;
  --prof-hero-glow: rgba(78, 168, 209, 0.18);
}
.prof-hero--revenant {
  --prof-hero-base: #160f10;
  --prof-hero-mid: #31181c;
  --prof-hero-accent: #8f3b43;
  --prof-hero-bright: #d97a7f;
  --prof-hero-glow: rgba(193, 55, 55, 0.18);
}
.prof-hero--ranger {
  --prof-hero-base: #10150e;
  --prof-hero-mid: #21311c;
  --prof-hero-accent: #58773a;
  --prof-hero-bright: #a8c977;
  --prof-hero-glow: rgba(109, 162, 52, 0.18);
}
.prof-hero--thief {
  --prof-hero-base: #151014;
  --prof-hero-mid: #2e1921;
  --prof-hero-accent: #8c4659;
  --prof-hero-bright: #d78fa0;
  --prof-hero-glow: rgba(192, 88, 110, 0.18);
}
.prof-hero--engineer {
  --prof-hero-base: #17120d;
  --prof-hero-mid: #31261a;
  --prof-hero-accent: #77502f;
  --prof-hero-bright: #cc9960;
  --prof-hero-glow: rgba(140, 90, 44, 0.18);
}
.prof-hero--necromancer {
  --prof-hero-base: #0f1512;
  --prof-hero-mid: #183028;
  --prof-hero-accent: #2f6b56;
  --prof-hero-bright: #79c39e;
  --prof-hero-glow: rgba(33, 163, 100, 0.16);
}
.prof-hero--elementalist {
  --prof-hero-base: #170f0f;
  --prof-hero-mid: #341a18;
  --prof-hero-accent: #9d4540;
  --prof-hero-bright: #e28f82;
  --prof-hero-glow: rgba(216, 69, 69, 0.18);
}
.prof-hero--mesmer {
  --prof-hero-base: #151016;
  --prof-hero-mid: #2c1833;
  --prof-hero-accent: #70427a;
  --prof-hero-bright: #c58fcf;
  --prof-hero-glow: rgba(164, 72, 163, 0.18);
}
.prof-icon-large { font-size: 42px; margin-bottom: 8px; }
.prof-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.prof-subtitle {
  font-size: 16px; color: rgba(255,255,255,0.7); letter-spacing: 0.05em;
  margin-bottom: 24px; line-height: 1.8;
}
.prof-meta {
  display: inline-flex; gap: 16px; background: rgba(0,0,0,0.3);
  padding: 8px 24px; border-radius: 6px; font-size: 14px; font-weight: 800;
}
.prof-meta-item { display: flex; align-items: center; gap: 6px; }

/* ── Table of Contents ───────────────────────────────────── */
.toc {
  background: var(--color-surface); border: 1.5px solid var(--color-border);
  border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm);
  position: sticky; top: 80px;
}
.toc-title {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 10px;
}
.toc-link {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--color-text-2); text-decoration: none; padding: 6px 8px;
  border-radius: var(--r-sm); transition: background .12s;
}
.toc-link:hover { background: var(--color-brand-light); color: var(--color-brand-dark); }

/* ── Skill List (Common) ─────────────────────────────────── */
.skill-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.skill-item {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.skill-item:hover { background: var(--color-surface); border-color: var(--color-brand-mid); }
.skill-img { width: 32px; height: 32px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.2); }
.skill-content { flex: 1; display: flex; align-items: center; gap: 12px; }
.skill-name { font-size: 14px; font-weight: 800; color: var(--color-text); }
.skill-type { font-size: 11px; color: var(--color-brand); font-weight: 700; margin-left: 4px; }
.skill-desc {
  font-size: 13px; color: var(--color-text-muted); line-height: 1.4;
  border-left: 1px solid var(--color-border); padding-left: 12px;
}
@media(max-width: 768px) {
  .skill-content { flex-direction: column; align-items: flex-start; gap: 4px; }
  .skill-desc { border-left: none; padding-left: 0; }
}

/* ── Section UI ── */
.sec-box {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) { .sec-box { padding: 20px; } }

.sec-title {
  font-size: 20px; font-weight: 800; color: var(--color-text);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.sec-title::after { content: ''; flex: 1; height: 1.5px; background: var(--color-border); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media(max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--color-surface-alt); padding: 16px;
  border-radius: var(--r-md); border: 1px solid var(--color-border);
}
.info-card h4 { font-size: 12px; font-weight: 800; color: var(--color-text-muted); text-transform: uppercase; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--color-text-2); line-height: 1.6; }

/* ── Weapon Accordion ────────────────────────────────────── */
.wpn-group { margin-bottom: 24px; }
.wpn-group h4 {
  font-size: 13px; font-weight: 800; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--color-border); padding-bottom: 8px; margin-bottom: 12px;
}
.wpn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wpn-tag {
  background: var(--color-surface-alt); border: 1.5px solid var(--color-border-strong);
  padding: 6px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700;
  color: var(--color-text-2); cursor: pointer; transition: all 0.2s ease; user-select: none;
}
.wpn-tag:hover { background: var(--color-brand-light); border-color: var(--color-brand-mid); color: var(--color-brand-dark); }
.wpn-tag.active { background: var(--color-brand); border-color: var(--color-brand); color: #fff; box-shadow: 0 4px 10px rgba(192,122,26,0.2); }
.wpn-tag.expac { background: #fff3e0; border-color: #f5a623; color: #b35900; }
.wpn-tag.expac.active { background: var(--color-brand); color: #fff; }

.wpn-panel {
  display: none; background: var(--color-surface); border: 1.5px solid var(--color-border);
  border-radius: var(--r-md); padding: 20px; margin-top: 12px;
  box-shadow: var(--shadow-md); animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Trait Tree ──────────────────────────────────────────── */
.trait-tree {
  position: relative; height: 140px;
  background-color: #1a1612; /* 어두운 배경으로 변경 */
  border: 1px solid #3d352c;
  border-radius: var(--r-md); margin-bottom: 24px;
  display: flex; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  align-items: center;
}
.trait-tree::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center left;
  opacity: 0.25; z-index: 0; pointer-events: none; /* 배경 이미지 더 선명하게 */
}

/* Warrior Specs */
.trait-tree.Strength::before     { background-image: url('../icons/traits/warrior/strength_bg.png'); }
.trait-tree.Arms::before         { background-image: url('../icons/traits/warrior/arms_bg.png'); }
.trait-tree.Defense::before      { background-image: url('../icons/traits/warrior/defense_bg.png'); }
.trait-tree.Tactics::before      { background-image: url('../icons/traits/warrior/tactics_bg.png'); }
.trait-tree.Discipline::before   { background-image: url('../icons/traits/warrior/discipline_bg.png'); }
.trait-tree.Berserker::before    { background-image: url('../icons/traits/warrior/berserker_bg.png'); }
.trait-tree.Spellbreaker::before { background-image: url('../icons/traits/warrior/spellbreaker_bg.png'); }
.trait-tree.Bladesworn::before   { background-image: url('../icons/traits/warrior/bladesworn_bg.png'); }
.trait-tree.Paragon::before      { background-image: url('../icons/traits/warrior/paragon_bg.png'); }

.spec-info {
  width: 140px; height: 100%;
  background: rgba(0,0,0,0.6); /* 더 어둡게 */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1; border-right: 2px solid rgba(0,0,0,0.8);
}
.spec-info-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.18s ease;
}
.spec-info-link:hover {
  background: rgba(255,255,255,0.06);
}
.spec-icon-main {
  width: 48px; height: 48px; margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.spec-name-label {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 11px;
  color: #fff; text-transform: uppercase; letter-spacing: 1px;
  text-align: center; width: 100%;
}

.trait-track {
  flex: 1; display: flex; align-items: center;
  justify-content: space-evenly;
  z-index: 1; position: relative; height: 100%;
}
.trait-track::after {
  content: ''; position: absolute; top: 50%; left: 20px; right: 20px;
  height: 2px; background: rgba(0,0,0,0.15);
  z-index: -1; transform: translateY(-50%);
}

.trait-slot {
  position: relative; width: 38px; height: 38px;
  display: block; text-decoration: none;
  cursor: pointer; transition: transform 0.1s, filter 0.1s;
}
.trait-slot:hover { transform: scale(1.15); filter: brightness(1.1); z-index: 10; }
.trait-slot img {
  display: block; width: 100%; height: 100%; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); border: 1px solid rgba(0,0,0,0.2);
}

.trait-minor-slot { width: 32px; height: 32px; }
.trait-minor-slot img {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0; border: none; background: #222;
}

.major-tier { display: flex; flex-direction: column; gap: 8px; }
.major-trait-slot { border: 1.5px solid rgba(0,0,0,0.3); }
.major-trait-slot.active {
  border-color: #f5a623; outline: 1.5px solid #f5a623;
  box-shadow: 0 0 12px rgba(245,166,35,0.4);
}

/* ── Elite Spec Unique Skills ── */
.wpn-skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-top: 16px;
}
.wpn-skill-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(0,0,0,0.03); padding: 12px;
  border-radius: var(--r-md); border: 1px solid var(--color-border);
}
.wpn-skill-item .skill-icon {
  position: relative; width: 42px; height: 42px; flex-shrink: 0;
}
.wpn-skill-item .skill-icon img {
  width: 100%; height: 100%; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.wpn-skill-item .skill-key {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; color: #fff; padding: 1px 6px;
  border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2; white-space: nowrap; z-index: 2;
}
.wpn-skill-item .skill-name { font-weight: 800; font-size: 14px; color: var(--color-text); margin-bottom: 2px; }
.wpn-skill-item .skill-desc { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.4; }

/* ── Traits Section ── */
.traits-section {
  margin-top: 32px; padding-top: 24px;
  border-top: 1.5px solid var(--color-border);
}
.traits-section .sub-title {
  font-size: 16px; font-weight: 800; color: var(--color-text);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.traits-section .sub-title::before { content: '🧬'; font-size: 14px; }

/* ── Tooltip ── */
#gw2-tooltip {
  position: fixed; z-index: 10000;
  background: rgba(10,10,15,0.96); border: 1px solid #444; border-top: 3px solid #f5a623;
  padding: 14px; width: 280px; pointer-events: none; display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8); color: #ddd; font-size: 13px;
}
.tt-header { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.tt-icon { width: 40px; height: 40px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.1); }
.tt-name { font-weight: 800; font-size: 15px; color: #fff; }
.tt-tier { font-size: 10px; color: #f5a623; text-transform: uppercase; font-weight: 700; }
.tt-desc { margin-bottom: 10px; font-size: 12.5px; color: #bbb; }

/* ── Attunement Tabs (Elementalist) ── */
.attun-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border); padding-bottom: 12px; }
.attun-btn {
  padding: 6px 14px; border-radius: var(--r-sm); font-size: 11px; font-weight: 800;
  cursor: pointer; transition: all 0.2s ease; text-transform: uppercase;
  letter-spacing: 0.5px; background: none;
}
.attun-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }
.attun-btn.active { color: #fff !important; }
.attun-btn[data-attun="Fire"]  { border: 1.5px solid #d84545; color: #d84545; }
.attun-btn[data-attun="Water"] { border: 1.5px solid #3498db; color: #3498db; }
.attun-btn[data-attun="Air"]   { border: 1.5px solid #a448a3; color: #a448a3; }
.attun-btn[data-attun="Earth"] { border: 1.5px solid #c07a1a; color: #c07a1a; }
.attun-btn[data-attun="Fire"].active  { background-color: #d84545; }
.attun-btn[data-attun="Water"].active { background-color: #3498db; }
.attun-btn[data-attun="Air"].active   { background-color: #a448a3; }
.attun-btn[data-attun="Earth"].active { background-color: #c07a1a; }

.profession-generated-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.profession-fact-group {
  margin-bottom: 18px;
}

.profession-fact-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.profession-fact-subtitle {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text);
}

.profession-static-skill .profession-static-content {
  align-items: flex-start;
}

.profession-static-main {
  width: 100%;
}

.profession-static-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.profession-static-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}

.fact-chip-slot {
  background: #f7f2e8;
  color: #8a5a12;
  border-color: #e6c998;
}

.fact-chip-category {
  background: #eef4fb;
  color: #2b5a8b;
  border-color: #c6d8ef;
}

.fact-chip-elite {
  background: #f7ecfb;
  color: #7a3296;
  border-color: #d7b8e3;
}

.fact-chip-core {
  background: #edf7ee;
  color: #2f6b3f;
  border-color: #bdd9c5;
}

.profession-slot-section {
  margin-bottom: 24px;
}

.profession-slot-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
}

.profession-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.profession-spec-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 18px;
}

.profession-spec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.profession-spec-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.15);
}

.profession-spec-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profession-spec-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
}

.profession-trait-tier {
  margin-top: 14px;
}

.profession-trait-tier-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.profession-trait-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.profession-trait-row:first-of-type {
  border-top: none;
}

.profession-trait-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.profession-trait-copy {
  flex: 1;
}

.profession-trait-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 3px;
}

.profession-trait-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .profession-static-head {
    flex-direction: column;
  }

  .profession-static-badges {
    justify-content: flex-start;
  }

  .profession-spec-grid {
    grid-template-columns: 1fr;
  }
}

.profession-weapon-details {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  background: var(--color-surface-alt);
  margin-top: 12px;
  overflow: hidden;
}

.profession-weapon-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  background: var(--color-surface);
}

.profession-weapon-summary::-webkit-details-marker {
  display: none;
}

.profession-weapon-summary .profession-fact-subhead {
  margin: 0;
}

.profession-weapon-summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-muted);
}

.profession-weapon-details[open] .profession-weapon-summary::after {
  content: '-';
}

.profession-weapon-panel {
  display: block;
  margin-top: 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  padding: 16px;
  background: transparent;
}

.profession-skill-flow {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--color-border);
  display: grid;
  gap: 8px;
}

.profession-skill-flow-step {
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--r-sm);
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto;
  column-gap: 8px;
  row-gap: 2px;
}

.skill-flow-icon {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
}

.profession-skill-flow-step .profession-skill-flow-title,
.profession-skill-flow-step .profession-skill-flow-desc {
  grid-column: 2;
}

.profession-skill-flow-step-indent-1 {
  margin-left: 18px;
  border-left: 3px solid rgba(0, 0, 0, 0.12);
}

.profession-skill-flow-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 3px;
}

.profession-skill-flow-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.profession-static-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.profession-weapon-browser {
  display: grid;
  gap: 22px;
}

.profession-weapon-group-tabs {
  display: none;
}

.profession-weapon-group-tab {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text-2);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profession-weapon-group-tab:hover {
  border-color: var(--color-brand-mid);
  color: var(--color-brand-dark);
  background: var(--color-brand-light);
  transform: translateY(-1px);
}

.profession-weapon-group-tab.is-active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(192, 122, 26, 0.18);
}

.profession-weapon-group-panel {
  display: grid;
  gap: 12px;
}

.profession-weapon-group-title {
  margin-bottom: 0;
}

.profession-weapon-card-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.profession-weapon-card {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: max-content;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  flex: 0 0 auto;
}

.profession-weapon-card:hover {
  border-color: var(--color-brand-mid);
  background: #f8f3ea;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.profession-weapon-card.is-active {
  border-color: var(--color-brand);
  background: #f6efe3;
  box-shadow: 0 6px 14px rgba(192, 122, 26, 0.12);
}

.profession-weapon-card-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.profession-weapon-card-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.profession-weapon-card-meta {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}

.profession-weapon-card-meta .fact-chip {
  padding: 1px 7px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.profession-weapon-detail-stack {
  display: grid;
}

.profession-weapon-detail-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.profession-weapon-detail-panel[hidden],
.profession-weapon-group-panel[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .profession-weapon-card {
    gap: 6px;
    padding: 7px 9px;
  }

  .profession-weapon-card-name {
    font-size: 12px;
  }
}
