/* My Learnings — konnectwithsameer.com
   Everything is scoped to #ki-kws .ml (inside header-kws.php's wrapper) so your header-kws / footer-kws are untouched.
   Loaded only on the My Learnings page template and single posts (see functions.php). */

:root{
  --bg:#EEF2F4; --surface:#FFFFFF; --ink:#13233A; --muted:#566576; --line:#D3DCE2;
  --navy:#1D3A5F; --navy-deep:#13253C; --on-navy:#F3F6F9; --on-navy-muted:#BFD0E2;
  --amber:#E39B2F; --amber-ink:#13233A; --tint:#E3EAF0;
  --font:"Poppins","Segoe UI",system-ui,-apple-system,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0D1520; --surface:#16212E; --ink:#E7EDF2; --muted:#9AA9B7; --line:#273646;
    --navy:#8FB4DD; --navy-deep:#13253C; --amber:#EDAE4E; --tint:#1A2838;
  }
}
:root[data-theme="dark"]{
  --bg:#0D1520; --surface:#16212E; --ink:#E7EDF2; --muted:#9AA9B7; --line:#273646;
  --navy:#8FB4DD; --navy-deep:#13253C; --amber:#EDAE4E; --tint:#1A2838;
}

#ki-kws .ml *,#ki-kws .ml *::before,#ki-kws .ml *::after{box-sizing:border-box}
#ki-kws .ml{background:var(--bg);color:var(--ink);font-family:var(--font);font-size:1rem;line-height:1.65;-webkit-font-smoothing:antialiased;padding-bottom:72px}
#ki-kws .ml img{max-width:100%;height:auto;display:block}
#ki-kws .ml a{color:var(--navy)}
#ki-kws .ml :focus-visible{outline:3px solid var(--amber);outline-offset:2px;border-radius:3px}
#ki-kws .ml .wrap{max-width:1120px;margin:0 auto;padding:0 24px}
#ki-kws .ml h1,#ki-kws .ml h2,#ki-kws .ml h3,#ki-kws .ml h4{margin:0;line-height:1.15;letter-spacing:-0.015em;font-family:var(--font);color:inherit}
#ki-kws .ml p{margin:0 0 1em}
#ki-kws .ml button{font-family:var(--font)}

/* ---------- buttons ---------- */
#ki-kws .ml .btn{display:inline-block;font-family:var(--font);font-weight:700;font-size:1rem;background:var(--amber);color:var(--amber-ink);padding:13px 22px;border-radius:999px;text-decoration:none;border:0;cursor:pointer}
#ki-kws .ml .btn.sm{padding:9px 16px;font-size:.92rem}
#ki-kws .ml .btn.line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}

#ki-kws .ml .tag{display:inline-block;font-size:.8rem;font-weight:600;color:var(--navy);background:var(--tint);border-radius:999px;padding:3px 12px}
#ki-kws .ml .meta{color:var(--muted);font-size:.9rem}

/* ---------- INDEX ---------- */
#ki-kws .ml .mast{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:end;padding:64px 0 44px;border-bottom:2px solid var(--ink)}
#ki-kws .ml .mast h1{font-size:clamp(2.8rem,7vw,5rem);font-weight:800;letter-spacing:-0.035em}
#ki-kws .ml .mast .sub{font-size:1.2rem;color:var(--muted);margin:14px 0 0;max-width:40ch}
#ki-kws .ml .mast blockquote{margin:28px 0 0;padding:0 0 0 18px;border-left:4px solid var(--amber);font-size:1.12rem;font-weight:500;max-width:46ch;line-height:1.55}
#ki-kws .ml .who{display:flex;align-items:center;gap:14px}
#ki-kws .ml .who img{width:88px;height:88px;border-radius:50%;object-fit:cover;background:#BAC9D1}
#ki-kws .ml .who strong{display:block;font-size:1rem}
#ki-kws .ml .who span{font-size:.88rem;color:var(--muted)}
@media (max-width:760px){#ki-kws .ml .mast{grid-template-columns:1fr;gap:24px;padding-top:40px}}

#ki-kws .ml .feature{display:grid;grid-template-columns:1.15fr .85fr;margin:44px 0 12px;border-radius:24px;overflow:hidden;background:var(--surface);text-decoration:none;color:var(--ink)}
#ki-kws .ml .feature .txt{padding:44px clamp(24px,4vw,52px)}
#ki-kws .ml .feature .label{font-size:.85rem;font-weight:600;color:var(--muted);margin-bottom:14px;display:block}
#ki-kws .ml .feature h2{font-size:clamp(1.8rem,3.6vw,2.6rem);font-weight:800;margin:14px 0 14px}
#ki-kws .ml .feature p{color:var(--muted);font-size:1.08rem;max-width:44ch}
#ki-kws .ml .feature .go{display:inline-block;margin-top:10px;font-weight:700;background:var(--amber);color:var(--amber-ink);padding:12px 20px;border-radius:999px}
#ki-kws .ml .feature .qpanel{background:var(--navy-deep);color:var(--on-navy);padding:44px clamp(24px,4vw,48px);display:flex;flex-direction:column;justify-content:center}
#ki-kws .ml .qmark{font-size:4.5rem;line-height:.6;color:var(--amber);font-weight:800;height:34px}
#ki-kws .ml .feature .qpanel p{color:var(--on-navy);font-size:clamp(1.25rem,2.4vw,1.6rem);font-weight:600;line-height:1.35;margin:0;max-width:none}
#ki-kws .ml .feature:hover h2{text-decoration:underline;text-decoration-color:var(--amber);text-decoration-thickness:3px;text-underline-offset:6px}
#ki-kws .ml .feature:not(:has(.qpanel)){grid-template-columns:1fr}
@media (max-width:860px){#ki-kws .ml .feature{grid-template-columns:1fr}}

#ki-kws .ml .list{margin:36px 0 0}
#ki-kws .ml .list h3.lhead{font-size:1.05rem;font-weight:700;padding-bottom:12px;border-bottom:1px solid var(--line)}
#ki-kws .ml .row{display:grid;grid-template-columns:180px 1fr 1fr;gap:32px;padding:30px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
#ki-kws .ml .row .side{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
#ki-kws .ml .row h2{font-size:1.4rem;font-weight:700;margin:0 0 8px}
#ki-kws .ml .row p{color:var(--muted);margin:0;font-size:.98rem}
#ki-kws .ml .row blockquote{margin:0;padding-left:16px;border-left:3px solid var(--amber);font-weight:500;font-size:1rem;color:var(--ink);line-height:1.5;align-self:start}
#ki-kws .ml .row:hover h2{text-decoration:underline;text-decoration-color:var(--amber);text-decoration-thickness:2px;text-underline-offset:5px}
@media (max-width:900px){#ki-kws .ml .row{grid-template-columns:1fr;gap:12px}#ki-kws .ml .row .side{flex-direction:row;align-items:center}}

#ki-kws .ml .cta{background:var(--navy-deep);color:var(--on-navy);border-radius:24px;padding:40px clamp(24px,4.5vw,56px);display:flex;justify-content:space-between;gap:24px;align-items:center;flex-wrap:wrap;margin-top:56px}
#ki-kws .ml .cta h3{font-size:1.5rem;font-weight:700;color:#fff}
#ki-kws .ml .cta p{color:var(--on-navy-muted);margin:6px 0 0!important}

/* ---------- ARTICLE ---------- */
#ki-kws .ml .progress{position:fixed;left:0;top:0;height:3px;width:0;background:var(--amber);z-index:30}
.admin-bar #ki-kws .ml .progress{top:32px}
@media (max-width:782px){.admin-bar #ki-kws .ml .progress{top:46px}}
@media (max-width:600px){.admin-bar #ki-kws .ml .progress{top:0}}
#ki-kws .ml .post{max-width:1000px;margin:0 auto;padding:40px 24px 0}
#ki-kws .ml .back{font-size:.9rem;font-weight:600;text-decoration:none;color:var(--muted)}
#ki-kws .ml .back:hover{color:var(--ink)}
#ki-kws .ml .post .tag{margin:28px 0 18px}
#ki-kws .ml .post h1{font-size:clamp(2rem,5vw,3.1rem);font-weight:800;letter-spacing:-0.03em}
#ki-kws .ml .post .dek{font-size:1.2rem;color:var(--muted);margin:18px 0 28px;line-height:1.55}
#ki-kws .ml .byline{display:flex;align-items:center;gap:14px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:36px}
#ki-kws .ml .byline img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#BAC9D1}
#ki-kws .ml .byline strong{display:block;font-size:.95rem}
#ki-kws .ml .byline span{font-size:.85rem;color:var(--muted)}

/* block-editor content */
#ki-kws .ml .body p,#ki-kws .ml .body li{font-size:1.09rem;line-height:1.85}
#ki-kws .ml .body p{margin:0 0 1.25em}
#ki-kws .ml .body ul,#ki-kws .ml .body ol{margin:0 0 1.25em;padding-left:1.3em}
/* Article headings: plain by default */
#ki-kws .ml .body h2,#ki-kws .ml .body h3,#ki-kws .ml .body h4{font-weight:700;line-height:1.3;letter-spacing:-0.01em;color:var(--ink)}
#ki-kws .ml .body h2{font-size:clamp(1.35rem,2.4vw,1.6rem);margin:2em 0 .8em}
#ki-kws .ml .body h3{font-size:clamp(1.18rem,2vw,1.32rem);margin:1.8em 0 .7em}
#ki-kws .ml .body h4{font-size:1.08rem;margin:1.6em 0 .6em}

/* "Highlight" block style (Block settings > Styles > Highlight) on a Heading or Paragraph:
   amber bar + navy, same look as the pull quote. Size follows the heading level. */
#ki-kws .ml .body .is-style-ml-highlight{font-weight:600;line-height:1.4;color:var(--navy);border-left:4px solid var(--amber);padding:4px 0 4px 24px;margin:1.8em 0 2em}
#ki-kws .ml .body p.is-style-ml-highlight{font-size:clamp(1.3rem,2.6vw,1.6rem);line-height:1.4}
#ki-kws .ml .body h3.is-style-ml-highlight,#ki-kws .ml .body h4.is-style-ml-highlight{border-left-width:3px;padding-left:18px}

/* Heading placed inside a Quote block: the quote already has the bar */
#ki-kws .ml .body blockquote h2,#ki-kws .ml .body blockquote h3,#ki-kws .ml .body blockquote h4{border:0;padding:0;margin:0;font-size:inherit;line-height:inherit;color:inherit}
#ki-kws .ml .body blockquote > :first-child{margin-top:0}
#ki-kws .ml .body blockquote > :last-child{margin-bottom:0}
#ki-kws .ml .body blockquote,#ki-kws .ml .body .wp-block-quote,#ki-kws .ml .body .wp-block-pullquote{margin:1.8em 0 2em;padding:4px 0 4px 24px;border:0;border-left:4px solid var(--amber);font-size:clamp(1.3rem,2.6vw,1.6rem);font-weight:600;line-height:1.4;color:var(--navy);text-align:left}
#ki-kws .ml .body blockquote p{font-size:inherit;line-height:inherit;margin:0}
#ki-kws .ml .body blockquote cite{display:block;margin-top:10px;font-size:.9rem;font-style:normal;font-weight:500;color:var(--muted)}
#ki-kws .ml .body figure{margin:2em 0}
#ki-kws .ml .body img{border-radius:14px}
#ki-kws .ml .body figcaption{font-size:.85rem;color:var(--muted);margin-top:8px}
#ki-kws .ml .body p.closing{font-size:1.3rem;font-weight:700;line-height:1.5;margin-top:1.6em;padding-top:1.2em;border-top:2px solid var(--ink)}
#ki-kws .ml .ml-closing{font-size:1.3rem;font-weight:700;line-height:1.5;margin:1.6em 0 0;padding-top:1.2em;border-top:2px solid var(--ink)}

/* Custom HTML block: stage cards */
#ki-kws .ml .stages{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:2em 0 2.2em;background:var(--surface);border-radius:18px;overflow:hidden}
#ki-kws .ml .stage{padding:22px 20px;border-left:1px solid var(--line)}
#ki-kws .ml .stage:first-child{border-left:0}
#ki-kws .ml .stage .rev{font-size:1.25rem;font-weight:800;color:var(--navy);line-height:1.2}
#ki-kws .ml .stage .bar{height:6px;border-radius:3px;background:var(--amber);margin:12px 0 14px}
#ki-kws .ml .stage:nth-child(1) .bar{width:33%}#ki-kws .ml .stage:nth-child(2) .bar{width:66%}#ki-kws .ml .stage:nth-child(3) .bar{width:100%}
#ki-kws .ml .stage h4{font-size:.78rem;font-weight:600;color:var(--muted);margin:12px 0 4px}
#ki-kws .ml .stage p{font-size:.92rem!important;line-height:1.5!important;margin:0!important}
#ki-kws .ml .stage .ask{font-weight:600}
#ki-kws .ml .stages-cap{grid-column:1/-1;padding:12px 20px;background:var(--tint);font-size:.85rem;color:var(--muted)}
@media (max-width:680px){#ki-kws .ml .stages{grid-template-columns:1fr}#ki-kws .ml .stage{border-left:0;border-top:1px solid var(--line)}#ki-kws .ml .stage:first-child{border-top:0}}

/* Custom HTML block: reference table */
#ki-kws .ml .ref{margin:2.4em 0 0;background:var(--surface);border-radius:18px;padding:28px clamp(18px,3vw,30px)}
#ki-kws .ml .ref h2{font-size:1.3rem;font-weight:700;margin:0 0 6px}
#ki-kws .ml .ref .note{color:var(--muted);font-size:.9rem;margin:0 0 16px}
#ki-kws .ml .tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
#ki-kws .ml .ref table{border-collapse:collapse;width:100%;min-width:620px;font-size:.88rem;line-height:1.45;margin:0}
#ki-kws .ml .ref th,#ki-kws .ml .ref td{text-align:left;padding:10px 12px;border:0;border-bottom:1px solid var(--line);vertical-align:top}
#ki-kws .ml .ref tr:last-child td{border-bottom:0}
#ki-kws .ml .ref th{background:var(--tint);font-weight:600}
#ki-kws .ml .ref td:first-child{font-weight:600;width:19%}#ki-kws .ml .ref td:nth-child(2){width:25%}#ki-kws .ml .ref td:nth-child(3){width:36%}
@media (min-width:1040px){#ki-kws .ml .ref{margin-left:-120px;margin-right:-120px}}
#ki-kws .ml .when{display:inline-block;font-size:.76rem;font-weight:600;border-radius:999px;padding:2px 9px;white-space:nowrap;background:var(--tint);color:var(--navy)}

#ki-kws .ml .share{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:40px 0 0}
#ki-kws .ml .share span{font-size:.9rem;font-weight:600;margin-right:6px}
#ki-kws .ml .chip{font-family:var(--font);font-size:.88rem;font-weight:600;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:8px 16px;cursor:pointer;text-decoration:none;line-height:1.4}
#ki-kws .ml .chip:hover{border-color:var(--ink);background:var(--surface);color:var(--ink)}
#ki-kws .ml .deeper{margin:40px 0 0;background:var(--surface);border-radius:18px;padding:26px 28px}
#ki-kws .ml .deeper h3{font-size:1.1rem;font-weight:700;margin-bottom:6px}
#ki-kws .ml .deeper > p{color:var(--muted);font-size:.95rem;margin:0 0 10px!important}
#ki-kws .ml .deeper a{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink);font-weight:600}
#ki-kws .ml .deeper a em{font-style:normal;font-weight:500;font-size:.82rem;color:var(--muted);white-space:nowrap}
#ki-kws .ml .deeper a:hover span{text-decoration:underline;text-decoration-color:var(--amber);text-underline-offset:4px}
#ki-kws .ml .next{display:block;margin:28px 0 0;padding:26px 28px;border-radius:18px;background:var(--navy-deep);color:var(--on-navy);text-decoration:none}
#ki-kws .ml .next small{display:block;font-size:.85rem;color:var(--on-navy-muted);margin-bottom:6px}
#ki-kws .ml .next strong{font-size:1.3rem;line-height:1.3;display:block;color:#fff}
#ki-kws .ml .next:hover strong{text-decoration:underline;text-decoration-color:var(--amber);text-underline-offset:5px}
#ki-kws .ml .post .cta{margin-top:28px}

/* Table blocks in the post body: same look as the reference table */
#ki-kws .ml .body .wp-block-table{display:flex;flex-direction:column;overflow-x:auto;margin:2.4em 0;background:var(--surface);border-radius:18px;padding:22px clamp(14px,3vw,26px)}
#ki-kws .ml .body .wp-block-table table{border-collapse:separate;border-spacing:0;width:100%;min-width:620px;font-size:.88rem;line-height:1.45;margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
#ki-kws .ml .body .wp-block-table thead{border:0}
#ki-kws .ml .body .wp-block-table th,#ki-kws .ml .body .wp-block-table td{text-align:left;padding:10px 12px;border:0;border-bottom:1px solid var(--line);vertical-align:top;font-size:.88rem;line-height:1.45}
#ki-kws .ml .body .wp-block-table thead th,#ki-kws .ml .body .wp-block-table thead td{background:var(--tint);font-weight:600}
#ki-kws .ml .body .wp-block-table tbody tr:last-child td{border-bottom:0}
#ki-kws .ml .body .wp-block-table tbody td:first-child{font-weight:600}
#ki-kws .ml .body .wp-block-table figcaption{order:-1;text-align:left;color:var(--muted);font-size:.9rem;margin:0 0 14px}
#ki-kws .ml .body .wp-block-table.is-style-ml-tags tbody td:last-child{white-space:nowrap}
@media (min-width:1040px){#ki-kws .ml .body .wp-block-table{margin-left:-120px;margin-right:-120px}}

