@import url("brand-tokens.css");

.main-nav a.active { color: var(--cream); }
.main-nav a.active::after { right: 0; }

.tools-hero { min-height: 590px; padding-block: 82px; display: grid; grid-template-columns: minmax(300px, .7fr) minmax(560px, 1.3fr); align-items: center; gap: 68px; }
.tools-hero h1 { margin: 22px 0 20px; color: #f8fafc; font-size: clamp(48px, 6vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.tools-hero h1 em { color: var(--cream); font-style: normal; }
.tools-hero-copy > p { max-width: 560px; margin: 0; color: #aebbd0; font-size: 16px; line-height: 1.85; }

.role-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.role-entry { min-height: 320px; padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(148,163,184,.16); background: linear-gradient(165deg, rgba(30,41,59,.92), rgba(15,23,42,.78)); transition: transform .2s, border-color .2s, background .2s; }
.role-entry::before { content: ''; position: absolute; width: 170px; height: 170px; right: -65px; top: -65px; border-radius: 50%; border: 1px solid rgba(234,179,8,.12); box-shadow: 0 0 0 28px rgba(234,179,8,.025), 0 0 0 56px rgba(234,179,8,.018); }
.role-entry:hover { transform: translateY(-5px); border-color: rgba(234,179,8,.5); background: linear-gradient(165deg, #202c41, #111b2e); }
.role-number { color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.role-entry > i { margin: auto 0 24px; color: var(--gold); font-size: 35px; }
.role-entry strong { color: #fff; font-size: 23px; }
.role-entry small { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.role-arrow { width: 34px; height: 34px; margin-top: 24px; display: grid; place-items: center; border: 1px solid rgba(148,163,184,.16); color: var(--gold); font-size: 11px; }

.role-section { padding-block: 88px; border-top: 1px solid rgba(148,163,184,.1); scroll-margin-top: 68px; }
.role-section-alt { background: var(--surface); }
.role-heading { margin-bottom: 28px; display: flex; align-items: center; gap: 18px; }
.role-heading-icon { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); background: rgba(234,179,8,.06); font-size: 20px; }
.role-heading h2 { margin: 5px 0 3px; color: #f8fafc; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; }
.role-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool-grid-three { grid-template-columns: repeat(3, 1fr); }
.tool-card { width: 100%; min-height: 118px; padding: 20px; display: flex; align-items: center; justify-content: flex-start; gap: 14px; border: 1px solid rgba(148,163,184,.14); color: var(--text); background: rgba(15,23,42,.7); text-align: left; cursor: pointer; transition: transform .18s, border-color .18s, background .18s; }
.role-section-alt .tool-card { background: rgba(10,16,30,.68); }
.tool-card:hover, .tool-card.featured { transform: translateY(-3px); border-color: rgba(234,179,8,.42); background: var(--surface-2); }
.tool-card > i { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: var(--gold); background: rgba(234,179,8,.07); }
.tool-card span { min-width: 0; flex: 0 1 auto; margin-right: auto; text-align: left; }
.tool-card strong, .tool-card small { display: block; }
.tool-card strong { color: var(--cream); font-size: 14px; line-height: 1.35; }
.tool-card small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tool-card > b { margin-left: auto; color: #64748b; font-size: 10px; }
.tool-card:hover > b { color: var(--gold); }
.player-online-card { min-height: 126px; grid-column: 1 / -1; border-color: rgba(234,179,8,.42); background: linear-gradient(105deg, rgba(234,179,8,.08), rgba(15,23,42,.78) 48%); }
.player-online-card > i { width: 52px; height: 52px; flex-basis: 52px; font-size: 18px; }
.player-online-card strong { font-size: 18px; }
.player-online-card small { margin-top: 5px; }
.player-online-card em { margin-top: 8px; display: block; color: #cbd5e1; font-size: 11px; font-style: normal; line-height: 1.55; }

.bp-mode-dialog[hidden] { display: none; }
.bp-mode-dialog { position: fixed; inset: 0; z-index: 200; }
.bp-mode-backdrop { position: absolute; inset: 0; background: rgba(2,6,14,.76); opacity: 0; backdrop-filter: blur(6px); transition: opacity .24s ease; }
.bp-mode-panel { width: min(720px, calc(100% - 32px)); padding: 26px; position: absolute; left: 50%; bottom: 26px; border: 1px solid rgba(234,179,8,.48); background: #0d1627; box-shadow: 0 22px 70px rgba(0,0,0,.5); opacity: 0; transform: translate(-50%, 28px); transition: opacity .24s ease, transform .24s ease; }
.bp-mode-dialog.is-open .bp-mode-backdrop { opacity: 1; }
.bp-mode-dialog.is-open .bp-mode-panel { opacity: 1; transform: translate(-50%, 0); }
.bp-mode-open { overflow: hidden; }
.bp-mode-header { padding-bottom: 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(148,163,184,.14); }
.bp-mode-header h2 { margin: 6px 0 4px; color: #f8fafc; font-size: 28px; letter-spacing: -.03em; }
.bp-mode-header p { margin: 0; color: var(--muted); font-size: 11px; }
.bp-mode-close { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(148,163,184,.2); color: var(--cream); background: var(--surface); cursor: pointer; }
.bp-mode-close:hover { border-color: var(--gold); color: var(--gold); }
.bp-mode-options { padding-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bp-mode-options a { min-height: 112px; padding: 18px; display: flex; align-items: center; justify-content: flex-start; gap: 14px; border: 1px solid rgba(148,163,184,.14); background: rgba(23,32,51,.66); text-align: left; transition: transform .18s, border-color .18s, background .18s; }
.bp-mode-options a:hover { transform: translateY(-3px); border-color: rgba(234,179,8,.5); background: var(--surface-2); }
.bp-mode-options a > i { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: var(--gold); background: rgba(234,179,8,.07); }
.bp-mode-options span, .bp-mode-options strong, .bp-mode-options small { display: block; min-width: 0; text-align: left; }
.bp-mode-options span { margin-right: auto; }
.bp-mode-options strong { color: var(--cream); font-size: 15px; }
.bp-mode-options small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.bp-mode-options b { margin-left: auto; color: #64748b; font-size: 10px; }
.bp-mode-options a:hover b { color: var(--gold); }

@media (max-width: 980px) {
    .tools-hero { min-height: 0; padding-block: 64px; grid-template-columns: 1fr; gap: 42px; }
    .role-entry { min-height: 240px; }
    .tool-grid, .tool-grid-three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tools-hero { padding-block: 48px 58px; gap: 32px; }
    .tools-hero h1 { font-size: clamp(42px, 14vw, 60px); }
    .tools-hero-copy > p { font-size: 14px; }
    .role-entry-grid { grid-template-columns: 1fr; }
    .role-entry { min-height: 150px; padding: 20px; display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; }
    .role-entry .role-number { display: none; }
    .role-entry > i { width: 42px; height: 42px; margin: 0; grid-row: 1 / 3; display: grid; place-items: center; background: rgba(234,179,8,.07); font-size: 19px; }
    .role-entry strong { align-self: end; font-size: 19px; }
    .role-entry small { align-self: start; margin-top: 4px; }
    .role-arrow { margin: 0; grid-column: 3; grid-row: 1 / 3; }
    .role-section { padding-block: 62px; }
    .role-heading { align-items: flex-start; }
    .role-heading-icon { width: 48px; height: 48px; }
    .tool-grid, .tool-grid-three { grid-template-columns: 1fr; }
    .tool-card { min-height: 98px; padding: 16px; }
    .player-online-card { min-height: 132px; }
    .player-online-card > i { width: 46px; height: 46px; flex-basis: 46px; }
    .player-online-card strong { font-size: 16px; }
    .player-online-card em { font-size: 10px; }
    .bp-mode-panel { width: 100%; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); left: 0; bottom: 0; border-inline: 0; transform: translateY(100%); }
    .bp-mode-dialog.is-open .bp-mode-panel { transform: translateY(0); }
    .bp-mode-options { grid-template-columns: 1fr; }
    .bp-mode-options a { min-height: 92px; padding: 14px; }
}

/* Approved 2026 content-site visual system. */
.tools-page {
  --bg: var(--gsbp-ink-950);
  --surface: var(--gsbp-ink-900);
  --surface-2: var(--gsbp-ink-850);
  --surface-3: #18243a;
  --gold: var(--gsbp-gold);
  --gold-strong: #f59e0b;
  --cream: var(--gsbp-cream);
  --text: var(--gsbp-text-primary);
  --muted: var(--gsbp-text-muted);
  --line: var(--gsbp-line-subtle);
  --shell: 1200px;
  background:
    radial-gradient(circle at 80% 3%, rgba(234, 179, 8, .045), transparent 27rem),
    var(--gsbp-ink-950);
  color: var(--gsbp-text-primary);
  font-family: var(--gsbp-font-sans);
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}.tools-page .site-header {
  border-bottom-color: var(--gsbp-line-subtle);
  background: rgba(8, 13, 25, .92);
}

.tools-page .nav-shell {
  min-height: 76px;
}

.tools-page .brand img {
  width: 104px;
  height: 52px;
}

.tools-page .main-nav {
  gap: 28px;
  color: var(--gsbp-text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.tools-page .main-nav a {
  min-height: 76px;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.tools-page .eyebrow,
.tools-page .section-kicker {
  color: var(--gsbp-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}

.tools-page .tools-hero {
  min-height: 510px;
  padding-block: 66px;
  grid-template-columns: minmax(300px, .72fr) minmax(570px, 1.28fr);
  gap: 54px;
}

.tools-page .tools-hero h1 {
  margin-block: 20px 22px;
  color: var(--gsbp-text-primary);
  font-family: var(--gsbp-font-display);
  font-size: clamp(52px, 5.5vw, 76px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .01em;
}

.tools-page .tools-hero-copy > p {
  color: var(--gsbp-text-secondary);
  font-size: 16px;
  line-height: 1.85;
}

.tools-page .role-entry-grid {
  gap: 10px;
}

.tools-page .role-entry {
  min-height: 260px;
  padding: 22px;
  border-color: var(--gsbp-line-subtle);
  background: linear-gradient(165deg, rgba(18, 29, 49, .92), rgba(13, 22, 39, .82));
}

.tools-page .role-entry::before {
  opacity: .72;
}

.tools-page .role-number {
  color: var(--gsbp-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.tools-page .role-entry > i {
  margin-bottom: 20px;
  font-size: 31px;
}

.tools-page .role-entry strong {
  color: var(--gsbp-text-primary);
  font-size: 21px;
  font-weight: 500;
}

.tools-page .role-entry small {
  margin-top: 7px;
  color: var(--gsbp-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tools-page .role-arrow {
  width: 38px;
  height: 38px;
  margin-top: 20px;
  border-color: var(--gsbp-line-subtle);
  font-size: 13px;
}

.tools-page .role-section {
  padding-block: 76px;
  border-top-color: var(--gsbp-line-subtle);
  scroll-margin-top: 76px;
}

.tools-page .role-section-alt {
  background: var(--gsbp-ink-900);
}

.tools-page .role-heading {
  margin-bottom: 30px;
}

.tools-page .role-heading-icon {
  border-color: var(--gsbp-line-subtle);
}

.tools-page .role-heading h2 {
  color: var(--gsbp-text-primary);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 500;
}

.tools-page .role-heading p {
  color: var(--gsbp-text-muted);
  font-size: 15px;
}

.tools-page .tool-grid {
  gap: 10px;
}

.tools-page .tool-card {
  min-height: 124px;
  padding: 19px;
  border-color: var(--gsbp-line-subtle);
  background: rgba(13, 22, 39, .75);
}

.tools-page .role-section-alt .tool-card {
  background: rgba(8, 13, 25, .66);
}

.tools-page .tool-card > i {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.tools-page .tool-card strong {
  color: var(--gsbp-cream);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.tools-page .tool-card small {
  margin-top: 6px;
  color: var(--gsbp-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tools-page .tool-card > b {
  color: var(--gsbp-text-muted);
  font-size: 13px;
}

.tools-page .player-online-card {
  min-height: 144px;
}

.tools-page .player-online-card strong {
  font-size: 19px;
}

.tools-page .player-online-card em {
  margin-top: 7px;
  color: var(--gsbp-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.tools-page .bp-mode-panel {
  background: var(--gsbp-ink-900);
}

.tools-page .bp-mode-header h2 {
  color: var(--gsbp-text-primary);
  font-size: 29px;
  font-weight: 500;
}

.tools-page .bp-mode-header p {
  color: var(--gsbp-text-muted);
  font-size: 14px;
}

.tools-page .bp-mode-options a {
  border-color: var(--gsbp-line-subtle);
  background: rgba(18, 29, 49, .66);
}

.tools-page .bp-mode-options strong {
  font-size: 16px;
  font-weight: 500;
}

.tools-page .bp-mode-options small {
  color: var(--gsbp-text-muted);
  font-size: 14px;
}

.tools-page .bp-mode-options b {
  color: var(--gsbp-text-muted);
  font-size: 13px;
}

.tools-page .site-footer {
  color: var(--gsbp-text-muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .tools-page .nav-shell {
    min-height: 68px;
  }

  .tools-page .main-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .tools-page .main-nav a {
    min-height: 0;
    padding: 11px 2px;
    font-size: 15px;
  }

  .tools-page .tools-hero {
    min-height: 0;
    padding-block: 60px;
    grid-template-columns: 1fr;
  }

  .tools-page .role-entry {
    min-height: 220px;
  }
}

@media (max-width: 640px) {.tools-page .tools-hero {
    padding-block: 46px 56px;
  }

  .tools-page .tools-hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .tools-page .tools-hero-copy > p {
    font-size: 16px;
  }

  .tools-page .role-entry {
    min-height: 138px;
  }

  .tools-page .role-entry small {
    font-size: 14px;
  }

  .tools-page .role-section {
    padding-block: 58px;
  }

  .tools-page .tool-card {
    min-height: 104px;
    padding: 16px;
  }

  .tools-page .player-online-card {
    min-height: 158px;
  }

  .tools-page .player-online-card em {
    font-size: 13px;
  }
}
