/* Clarity: the shared look of the playbook and resource pages (process design, meetings,
   diagnostic, how teams work). One background, no boxes: hairlines, line drawings and type do the
   work. Everything is under .cl so it can sit next to older page styles.

   Type:     .cl-eyebrow, .cl-h1, .cl-h2 (second line in .cl-mute), .cl-h3, .cl-lead, .cl-small
   Layout:   .cl-wrap (1140px), .cl-narrow (760px), .cl-sec (section spacing), .cl-rule (hairline)
   Grids:    .cl-cols.c2/.c3/.c4/.c5, columns split by hairlines, one column on phones
   Pieces:   .cl-btn (+ .ghost), .cl-rock (navy pill), .cl-tag, .cl-list (hairline rows),
             .cl-faq (details), .cl-final, .cl-crumbs, .cl-toc
   Drawings: svg.cl-ill with .l (ink line), .g (dashed grey), .n (open node), .f (filled node),
             .r (pink: what breaks), .t (label), .t.d (dark label)
   Motion:   .cl-rv fades in when it reaches the screen (script in clarity-reveal.html); .dr lines
             draw in. Without JS, or with reduced motion, everything shows at once. */

.cl {
  --ink: #13233d;
  --ink-2: #3a4a63;
  --mute: #8a99b3;
  --mute-2: #5b6b85;
  --line: #dfe7f2;
  --line-2: #c7d3e6;
  --bg: #f9fcfe;
  --soft: #edf2f9;
  --pink: #c0486b;
  --blue: #5170ff;   /* brand accent: labels, highlights, icons */
  --blue-t: #eef1ff;
  --blue-d: #3a52e6;
  --teal: #15a08c;   /* only for “done” states inside mockups */
  --sand: #e6d6ae;
  --sp: 112px;
  --tg: 48px;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }
.cl svg { display: block; }
.cl a { color: inherit; }
.cl :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.cl :where(ul, ol) { list-style: none; }
@media (max-width: 1024px) { .cl { --sp: 92px; --tg: 40px; } }
@media (max-width: 700px) { .cl { --sp: 72px; --tg: 32px; } }

/* Layout */
.cl-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.cl-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.cl-sec { padding-top: var(--sp); }
.cl-sec:last-child { padding-bottom: var(--sp); }
.cl-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.cl-center { text-align: center; }
.cl-center .cl-lead { margin-left: auto; margin-right: auto; }
.cl [id] { scroll-margin-top: 96px; }
@media (max-width: 700px) { .cl-wrap, .cl-narrow { padding-left: 20px; padding-right: 20px; } }

/* Type */
.cl-eyebrow { font-size: .78125rem; font-weight: 800; color: var(--blue); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.cl-h1, .cl-h2 { text-wrap: balance; }
.cl-h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.cl-h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.034em; margin-bottom: 18px; }
.cl-h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -.022em; margin-bottom: 10px; }
.cl-mute { color: var(--mute); }
.cl-serif { font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.cl-lead { font-size: 1.125rem; line-height: 1.7; font-weight: 500; color: var(--ink); opacity: .86; max-width: 640px; }
.cl-p { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); }
.cl-p + .cl-p { margin-top: 14px; }
.cl-small { font-size: .9375rem; line-height: 1.6; color: var(--mute-2); }
.cl-p b, .cl-lead b, .cl-small b { color: var(--ink); font-weight: 700; }
.cl-head { margin-bottom: var(--tg); }
.cl-head .cl-lead { margin-top: 4px; }

/* Buttons: calls to action only */
.cl-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cl-center .cl-ctas { justify-content: center; }
.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 14px 26px; border-radius: 14px; border: 0; font: 700 1rem/1.2 Figtree, sans-serif; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer; background: var(--ink); color: #fff !important; box-shadow: 0 4px 16px rgba(19, 35, 61, .18); transition: background .25s, color .25s, box-shadow .25s, transform .25s; }
.cl-btn:hover { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }
.cl-btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cl-btn.ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.cl-btn svg { width: 16px; height: 16px; }
.cl-btn:focus-visible, .cl a:focus-visible, .cl button:focus-visible, .cl summary:focus-visible { outline: 2px solid #5170ff; outline-offset: 3px; border-radius: 10px; }
.cl-link { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line-2); transition: border-color .2s; }
.cl-link:hover { border-color: var(--ink); }
.cl-micro { margin-top: 14px; font-size: .8125rem; color: var(--mute); font-weight: 500; }
@media (max-width: 560px) {
  .cl-ctas.stack { flex-direction: column; align-items: stretch; }
  .cl-ctas.stack .cl-btn { width: 100%; }
}

/* Columns split by hairlines (like the playbooks index) */
.cl-cols { display: grid; }
.cl-cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl-cols.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl-cols.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cl-cols > * { padding: 0 24px; min-width: 0; }
.cl-cols > * + * { border-left: 1px solid var(--line); }
.cl-cols > :first-child { padding-left: 0; }
.cl-cols > :last-child { padding-right: 0; }
@media (max-width: 1024px) {
  .cl-cols.c4, .cl-cols.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .cl-cols.c4 > *, .cl-cols.c5 > * { padding: 0 24px; border-left: 1px solid var(--line); }
  .cl-cols.c4 > :nth-child(2n+1), .cl-cols.c5 > :nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .cl-cols.c4 > :nth-child(2n), .cl-cols.c5 > :nth-child(2n) { padding-right: 0; }
}
@media (max-width: 760px) {
  .cl-cols.c2, .cl-cols.c3, .cl-cols.c4, .cl-cols.c5 { grid-template-columns: 1fr; row-gap: 0; }
  .cl-cols > *, .cl-cols > * + *, .cl-cols.c4 > *, .cl-cols.c5 > * { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .cl-cols > :first-child { border-top: 0; padding-top: 0; }
}

/* The navy pill: a "rock" (a thing that matters) */
.cl-rock { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: -.01em; line-height: 1.15; text-align: center; }
.cl-rock small { font-size: .75rem; font-weight: 700; color: #9fb0cc; }
.cl-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--mute-2); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.cl-tag.pink { background: #fbe7ed; color: #a23557; }
.cl-tag.blue { background: var(--blue-t); color: var(--blue-d); }
.cl-tag.teal { background: #dcf5ef; color: #0d6b5d; }
.cl-num { display: inline-flex; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 800; font-size: .875rem; align-items: center; justify-content: center; flex: none; }
.cl-num.o { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* Rows split by hairlines */
.cl-list > li { padding: 20px 0; border-top: 1px solid var(--line); }
.cl-list > li:last-child { border-bottom: 1px solid var(--line); }
.cl-list b { font-weight: 800; }

/* Line drawings */
.cl-ill { width: 100%; height: auto; overflow: visible; }
.cl-ill text { font-family: Figtree, sans-serif; }
.cl-ill .l { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cl-ill .g { fill: none; stroke: #aab6c9; stroke-width: 1.4; stroke-dasharray: 3 5; stroke-linecap: round; }
.cl-ill .s { fill: none; stroke: var(--line-2); stroke-width: 1.4; }
.cl-ill .n { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; }
.cl-ill .f { fill: var(--ink); stroke: var(--ink); stroke-width: 1.6; }
.cl-ill .r { fill: none; stroke: var(--pink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cl-ill .rn { fill: var(--bg); stroke: var(--pink); stroke-width: 1.6; }
.cl-ill .rf { fill: var(--pink); }
.cl-ill .bl { fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-ill .tl { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-ill .t { font-size: 11px; font-weight: 600; fill: #7d8ca8; }
.cl-ill .t.d { fill: var(--ink); font-weight: 700; }
.cl-ill .t.p { fill: var(--pink); font-weight: 700; }
.cl-ill .t.w { fill: #fff; font-weight: 800; }
.cl-fig figcaption { margin-top: 14px; font-size: .875rem; line-height: 1.5; color: var(--mute); }

/* FAQ */
.cl-faq { border-bottom: 1px solid var(--line); }
.cl-faq:first-of-type { border-top: 1px solid var(--line); }
.cl-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 2px; cursor: pointer; list-style: none; }
.cl-faq summary::-webkit-details-marker { display: none; }
.cl-faq summary h3 { margin: 0; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.cl-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.cl-faq[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.cl-faq p { padding: 0 2px 26px; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); max-width: 680px; }

/* Breadcrumbs, table of contents */
.cl-crumbs { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--mute); margin-bottom: 22px; }
.cl-crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cl-crumbs a:hover { text-decoration: underline; }
.cl-toc { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cl-toc a { display: inline-flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: .9375rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.cl-toc a span { font-size: .75rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.cl-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Closing call to action */
.cl-final { padding: var(--sp) 24px; text-align: center; }
.cl-final .cl-h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.cl-final .cl-lead { margin: 0 auto 34px; }

/* Language switch (pages in more than one language) */
.cl-lang { display: inline-flex; gap: 2px; padding: 4px 5px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.cl-lang a { font-size: .8125rem; font-weight: 800; color: var(--mute); text-decoration: none; padding: 4px 11px; border-radius: 999px; }
.cl-lang a[aria-current] { color: var(--ink); background: var(--soft); }

/* Reveal and draw-in, only when the script runs */
.cl-js .cl-rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.23, 1, .32, 1), transform .7s cubic-bezier(.23, 1, .32, 1); }
.cl-js .cl-rv.in { opacity: 1; transform: none; }
.cl-js .cl-rv .dr { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cl-js .cl-rv.in .dr { animation: cl-draw 1.4s cubic-bezier(.4, 0, .2, 1) var(--d, 0s) forwards; }
.cl-js .cl-rv .fi { opacity: 0; }
.cl-js .cl-rv.in .fi { animation: cl-fade .6s ease var(--d, 0s) forwards; }
@keyframes cl-draw { to { stroke-dashoffset: 0; } }
@keyframes cl-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cl-js .cl-rv { opacity: 1; transform: none; transition: none; }
  .cl-js .cl-rv .dr { stroke-dashoffset: 0; animation: none; }
  .cl-js .cl-rv .fi { opacity: 1; animation: none; }
  .cl-btn { transition: none; }
}
