/* Turn Skills to Consulting (Individuals page): clickable mind map with a detail panel, then the plan cards.
   The tree lines are drawn with borders: each branch and leaf draws its own piece of the vertical spine. */
#tsc .mm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; margin-bottom: 22px; }
.mm-map { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 22px; align-items: center; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); background-image: radial-gradient(rgba(74, 101, 128, 0.16) 1px, transparent 1.2px); background-size: 22px 22px; }
.mm button { font: inherit; cursor: pointer; text-align: left; transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.mm button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.mm-root { position: relative; display: grid; gap: 4px; padding: 14px 10px; border: 0; border-radius: var(--radius-lg); color: #fff; text-align: center !important;
  font: 800 17px/21px var(--display) !important; background: linear-gradient(140deg, #1c2b3a, #2a3f54 70%, #b45309 170%); box-shadow: 0 10px 26px rgba(19, 32, 46, 0.22); }
.mm-root small { font: 500 10.5px/14px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #f5b04a; }
.mm-root[aria-pressed="true"] { box-shadow: 0 0 0 3px #e08a1e, 0 10px 26px rgba(19, 32, 46, 0.22); }

.mm-branches { position: relative; display: grid; gap: 16px; padding-left: 24px; }
.mm-branches::after { content: ""; position: absolute; left: -22px; top: 50%; width: 22px; border-top: 1.5px solid var(--slate-300); }
.mm-branch { --tone: #0f766e; --tone-tint: rgba(15, 118, 110, 0.1); position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 20px; align-items: center; }
.mm-branch[data-tone="value"] { --tone: #b45309; --tone-tint: rgba(180, 83, 9, 0.1); }
.mm-branch[data-tone="comply"] { --tone: #0a66c2; --tone-tint: rgba(10, 102, 194, 0.1); }
.mm-branch[data-tone="time"] { --tone: #be185d; --tone-tint: rgba(190, 24, 93, 0.1); }
.mm-branch::before { content: ""; position: absolute; left: -24px; top: 50%; width: 24px; border-top: 1.5px solid var(--slate-300); }
.mm-branch::after { content: ""; position: absolute; left: -24px; top: 0; bottom: -16px; border-left: 1.5px solid var(--slate-300); }
.mm-branch:first-child::after { top: 50%; }
.mm-branch:last-child::after { bottom: 50%; }
.mm-node { position: relative; padding: 8px 10px; border: 1.5px solid var(--tone); border-radius: var(--radius-md); background: var(--bg); color: var(--tone);
  font: 700 14px/19px var(--display) !important; }
.mm-node::after { content: ""; position: absolute; right: -21.5px; top: 50%; width: 20px; border-top: 1.5px solid var(--tone); opacity: .55; }
.mm-node:hover, .mm-node[aria-pressed="true"] { background: var(--tone); color: #fff; }

.mm-leaves { list-style: none; padding: 0 0 0 18px; display: grid; gap: 6px; }
.mm-leaves li { position: relative; }
.mm-leaves li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 18px; border-top: 1.5px solid var(--tone); opacity: .55; }
.mm-leaves li::after { content: ""; position: absolute; left: -18px; top: 0; bottom: -6px; border-left: 1.5px solid var(--tone); opacity: .55; }
.mm-leaves li:first-child::after { top: 50%; }
.mm-leaves li:last-child::after { bottom: 50%; }
.mm-leaves button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); color: var(--ink); font-size: 13.5px; line-height: 19px; }
.mm-leaves i { font: 500 11px/1 var(--mono); font-style: normal; color: var(--tone); }
.mm-leaves button:hover { border-color: var(--tone); transform: translateX(3px); }
.mm-leaves button[aria-pressed="true"] { border-color: var(--tone); background: var(--tone-tint); color: var(--ink-heading); box-shadow: inset 3px 0 0 var(--tone); }

.mm-detail { position: sticky; top: 88px; display: grid; gap: 12px; padding: 22px 22px 20px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(160deg, #1c2b3a 0%, #13202e 70%); box-shadow: 0 14px 34px rgba(19, 32, 46, 0.24); border-top: 4px solid var(--tone, #e08a1e); }
.mm-detail.swap { animation: mm-in .28s ease; }
@keyframes mm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mm-eyebrow { font: 500 11px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #f5b04a; }
.mm-detail h3 { font: 800 22px/28px var(--display); color: #fff; }
.mm-detail p { color: #c9d6e3; font-size: 14.5px; line-height: 22px; }
.mm-detail ul { padding-left: 18px; display: grid; gap: 6px; color: #e3eaf1; font-size: 14px; line-height: 21px; }
.mm-detail ul:empty { display: none; }
.mm-detail li::marker { color: #e08a1e; }
.mm-cta { justify-self: start; margin-top: 2px; color: #f5b04a; font-weight: 600; text-decoration: none; }
.mm-cta:hover { text-decoration: underline; }

@media (max-width: 900px) {
  #tsc .mm { grid-template-columns: 1fr; }
  .mm-detail { position: static; }
  .mm-map > .mm-detail, .mm-branch > .mm-detail { grid-column: 1 / -1; margin-top: 12px; }
}
@media (max-width: 680px) {
  .mm-map { grid-template-columns: 1fr; row-gap: 22px; padding: 18px 14px; }
  .mm-branches { padding-left: 0; gap: 18px; }
  .mm-branches::after, .mm-branch::before, .mm-branch::after, .mm-node::after { display: none; }
  .mm-branch { grid-template-columns: 1fr; row-gap: 10px; }
  .mm-node { justify-self: start; }
  .mm-leaves { margin-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mm button, .mm-detail.swap { transition: none; animation: none; }
  .mm-leaves button:hover { transform: none; }
}
