/* ==========================================================================
   NessLek tool engine — additions on top of assets/disc/disc.css
   (every tool reuses the DISC component's tokens, buttons, bars and cards)
   ========================================================================== */

/* Tool name in the toolbar instead of the D·I·S·C letters */
.tool-engine .tool-brand { letter-spacing: 0.14em; font-size: 0.72rem; text-transform: uppercase; }
.tool-engine:lang(ar) .tool-brand { letter-spacing: 0; font-size: 0.85rem; }

/* Answer scales other than 1–5 */
.tool-engine .disc-options { grid-template-columns: repeat(var(--tool-scale, 5), minmax(0, 1fr)); }
@media (max-width: 640px) {
  .tool-engine .disc-options { grid-template-columns: 1fr; }
}

/* "Score" tools: priorities */
.tool-gaps { margin: 0; padding: 0; list-style: none; counter-reset: gap; display: grid; gap: 1.1rem; }
.tool-gaps li { counter-increment: gap; position: relative; padding-inline-start: 2.6rem; }
.tool-gaps li::before {
  content: counter(gap); position: absolute; inset-inline-start: 0; top: 0;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-color); color: var(--secondary-color); font: 600 0.85rem/1 var(--disc-font-ui);
}
.tool-gap-title { font: 600 1rem/1.4 var(--disc-font-ui); color: var(--primary-color); margin: 0.15rem 0 0.4rem; }
.tool-gap-score { color: var(--muted-text-color); font-weight: 500; font-size: 0.85rem; margin-inline-start: 0.35rem; }
.tool-gaps p, .tool-gaps .disc-list { font-size: 0.93rem; margin: 0; }

/* /tools/ index */
.tools-index { list-style: none; margin: -9rem 0 0; padding: 0; display: grid; gap: 1.25rem; position: relative; z-index: 3; }
.tools-index-card {
  background: #fff; border: 1px solid var(--grey-200, #dde1e9); border-radius: 14px; padding: 1.75rem 2rem;
  box-shadow: 0 24px 60px rgba(2, 19, 62, 0.10);
}
.tools-index-card h2 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.tools-index-card h2 a { color: var(--navy, #02133e); }
.tools-index-card h2 a:hover { color: var(--gold-deep, #c8901a); }
.tools-index-card p { color: var(--grey-600, #5a6478); margin: 0; }
@media (max-width: 640px) { .tools-index { margin-top: -7rem; } }

/* Engine result cards sit directly in the results column (DISC wraps its cards in grids that space them) */
.tool-engine .disc-results > .disc-card { margin-bottom: 1.25rem; }

/* Tool placed inside a normal page with [nesslek_tool]: no overlap with the page hero,
   and the page's text styles do not leak into the tool. */
.nesslek-tool-embed { margin: 2rem 0; max-width: none; }
.entry-content .nesslek-tool-embed { width: min(900px, calc(100vw - 2rem)); margin-inline: 50%; transform: translateX(-50%); }
[dir="rtl"] .entry-content .nesslek-tool-embed { transform: translateX(50%); }
.entry-content .nesslek-tool-embed .disc-tool,
.entry-content .tools-index--embed { margin-top: 0 !important; }
.entry-content .nesslek-tool-embed a { text-decoration: none; }
/* The theme's post-content list rules (style.css, rtl.css) are stronger than the tool's: undo them here. */
body .entry-content .nesslek-tool-embed ul,
body .entry-content .nesslek-tool-embed ol { margin-left: 0; margin-right: 0; }
body .entry-content .nesslek-tool-embed li { padding-left: 0; padding-right: 0; margin-bottom: 0; color: inherit; }
body .entry-content .nesslek-tool-embed .disc-checklist li { padding-inline-start: 2rem; }
body .entry-content .nesslek-tool-embed .disc-list li { padding-inline-start: 1.1rem; }
body .entry-content .nesslek-tool-embed .tool-gaps li { padding-inline-start: 2.6rem; }
body .entry-content .nesslek-tool-embed .disc-refs li { padding-inline-start: 0.25rem; }

/* Co-Founder Compatibility / Team Style Map public pages (inc/groups, [nesslek_groups]) */
.group-steps { margin: 1.25rem 0 1.5rem; padding-inline-start: 1.4rem; display: grid; gap: 0.6rem; list-style: decimal; }
.group-steps li::marker { color: var(--secondary-color); font-weight: 700; }
.group-privacy { font-size: 0.95rem; }
.group-landing-gate, .group-landing-form { border-top: 1px solid var(--border-color, #dde1e9); margin-top: 1.75rem; padding-top: 1.5rem; }
.disc-tool .group-landing-title { font-family: var(--font-head, sans-serif); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-color); margin: 1.75rem 0 0.75rem; }
.group-landing-gate .group-landing-title { margin-top: 0; }
.group-landing-form { display: grid; gap: 0.75rem; }
.group-landing-form .group-landing-title { margin: 0; }
.group-landing-form label { font-weight: 600; font-size: 0.9rem; color: var(--primary-color); }
.group-landing-form input[type="text"] { width: 100%; min-height: 48px; padding: 0.7rem 1rem; border: 1px solid var(--border-color, #dde1e9); border-radius: 10px; font: inherit; background: #fff; }
.group-landing-form input[type="text"]:focus { outline: 2px solid var(--secondary-color); outline-offset: 1px; }
.group-landing-check { display: flex !important; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; color: var(--text-color) !important; }
.group-landing-check input { margin-top: 0.3rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--primary-color); }
.group-landing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.group-landing-list li { display: flex; justify-content: space-between; gap: 1rem; border: 1px solid var(--border-color, #dde1e9); border-radius: 10px; padding: 0.75rem 1rem; }
.group-landing-list a { font-weight: 600; color: var(--primary-color); }
.group-landing-list span { color: var(--muted-text-color); font-size: 0.85rem; }
.group-landing-note { background: var(--surface-color); border-radius: 10px; padding: 0.9rem 1.1rem; font-size: 0.92rem; margin: 1.25rem 0 0; }
.group-landing-note a { font-weight: 600; color: var(--primary-color); }
body .entry-content .nesslek-tool-embed .group-steps { padding-inline-start: 1.4rem; }
