/* framework-graphic.js: The Training Framework at a glance (framework.html). The same design is on productadvisory.co. */
.fg { --fg-core: #1f3b63; --fg-ai: #0f8a8a; }
.fg-levels { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 26px; }
.fg-levels li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .8125rem; font-weight: 700; color: var(--ink); text-align: center; }
.fg-levels li:not(:last-child)::after { content: '→'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--gray); font-weight: 400; }
.fg-dots { display: inline-flex; gap: 4px; }
.fg-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--fg-core); box-sizing: border-box; }
.fg-dots i.on { background: var(--fg-core); }
.fg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.fg-h { font-size: 1.1875rem; margin: 0; }
.fg-toggle { font: inherit; font-size: .8125rem; font-weight: 700; color: var(--navy); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.fg-toggle:hover { border-color: var(--navy); }
.fg-toggle:focus-visible, .fg-tile-a:focus-visible, .fg-comps a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.fg-groups { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.fg-group { min-width: 0; }
.fg-gh { margin: 0 0 10px; padding: 9px 14px; border-radius: 10px; color: #fff; font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.fg-gh span { font-weight: 400; opacity: .85; }
.fg-core .fg-gh { background: var(--fg-core); }
.fg-ai .fg-gh { background: var(--fg-ai); }
.fg-tiles { display: grid; gap: 10px; }
.fg-core .fg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fg-ai .fg-tiles { grid-template-columns: minmax(0, 1fr); }
.fg-tile { border-radius: 12px; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--fg-c); }
.fg-tile-a { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 10px; color: var(--ink); text-decoration: none; border-radius: 12px; }
.fg-tile-a:hover .fg-name { color: var(--navy); text-decoration: underline; }
.fg-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface); margin-bottom: 2px; }
.fg-name { font-weight: 700; font-size: .875rem; line-height: 1.3; }
.fg-n { font-size: .75rem; color: var(--gray); }
.fg-comps { display: none; list-style: none; margin: 0; padding: 0 12px 10px; }
.fg.open .fg-comps { display: block; }
.fg-comps li { padding: 4px 0; border-top: 1px solid var(--line); font-size: .78rem; }
.fg-comps a { color: var(--ink-soft); text-decoration: none; }
.fg-comps a:hover { color: var(--navy); text-decoration: underline; }
@media (max-width: 760px) {
  .fg-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-levels li:nth-child(2)::after { display: none; }
  .fg-groups { grid-template-columns: 1fr; }
  .fg-core .fg-tiles, .fg-ai .fg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
