/* Scoped styles for localized Football Formation Builder pages */

/* Action Buttons Localization Safeguards */
.football-formation-page .ffb-action-grid .btn {
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.25;
  padding: 10px 12px;
  min-height: 42px;
}

.football-formation-page .ffb-action-grid .btn svg {
  flex-shrink: 0;
}

/* Team Summary Card Localization */
.football-formation-page .ffb-summary-list div {
  gap: 8px;
}

.football-formation-page .ffb-summary-list dt {
  color: #475569;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.football-formation-page .ffb-summary-list dd {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 850;
  text-align: right;
  word-break: break-word;
}

/* Player Token Localization Support */
.football-formation-page .ffb-player-name {
  word-break: break-word;
}

/* Formation Cards Description Typography */
.football-formation-page .ffb-formation-card p {
  line-height: 1.45;
  color: #475569;
}

/* Universal Section Badge Spacing */
.football-formation-page .eyebrow {
  margin: 0 0 12px;
}

/* Japanese Typography Enhancement */
html[lang^="ja"] .football-formation-page,
html[lang^="ja"] .ffb-lineup-card,
html[lang^="ja"] .ffb-player-token {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

/* Korean Typography & Word-Breaking Enhancement */
html[lang^="ko"] .football-formation-page {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

html[lang^="ko"] .football-formation-page .ffb-hero h1,
html[lang^="ko"] .football-formation-page .ffb-tool-head h2,
html[lang^="ko"] .football-formation-page .ffb-hero .lead,
html[lang^="ko"] .football-formation-page .ffb-tool-head p:not(.eyebrow),
html[lang^="ko"] .football-formation-page .ffb-info-card p,
html[lang^="ko"] .football-formation-page .ffb-info-card li,
html[lang^="ko"] .football-formation-page .ffb-formations-section h2,
html[lang^="ko"] .football-formation-page .ffb-formations-section p,
html[lang^="ko"] .football-formation-page .ffb-formation-card p,
html[lang^="ko"] .football-formation-page .ffb-tactics-section h2,
html[lang^="ko"] .football-formation-page .ffb-tactics-section p,
html[lang^="ko"] .football-formation-page .ffb-numbering-title,
html[lang^="ko"] .football-formation-page .ffb-positions-section h2,
html[lang^="ko"] .football-formation-page .ffb-positions-section p,
html[lang^="ko"] .football-formation-page .ffb-tactic-label,
html[lang^="ko"] .football-formation-page .ffb-pos-name,
html[lang^="ko"] .football-formation-page .ffb-faq-item p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Mobile Player Editor Dialog Touch Targets Enhancement */
@media (max-width: 767px) {
  .football-formation-page .ffb-dialog-head .ffb-icon-button {
    width: 44px;
    height: 44px;
  }

  .football-formation-page .ffb-dialog-actions .btn {
    min-height: 44px;
    padding: 12px 16px;
  }
}

/* Inline non-breaking word/phrase utility for heading typography */
.football-formation-page .ffb-nowrap {
  white-space: nowrap;
}

