/* =========================================================
   Open Windows Game — blog / article pages
   Loaded after ../styles.css and reuses its tokens.
   ========================================================= */

.progress { position: fixed; top: 0; left: 0; z-index: 70; height: 3px; width: 0; background: var(--grad); transition: width .1s linear; }

/* ---------- Article hero ---------- */
.post-hero { position: relative; padding: 28px 0 0; overflow: hidden; }
.post-hero .blob-a { top: -200px; left: -200px; }
.post-hero .blob-b { top: -40px; right: -260px; }
.crumbs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 26px; list-style: none; font-size: .86rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.post-head { position: relative; max-width: 880px; }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); margin: 18px 0 20px; }
.post-head h1 em { display: inline; padding-right: .06em; }
.post-lead { font-size: clamp(1.08rem, 1.6vw, 1.26rem); color: var(--ink-2); max-width: 760px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 26px 0 36px; font-size: .92rem; color: var(--ink-2); }
.byline .author { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.byline .author small { display: block; font-weight: 500; color: var(--ink-3); }
.byline .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 3px var(--blue-soft); }
.byline .meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.post-cover { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 2 / 1; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover figcaption { position: absolute; left: 18px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(22,19,58,.62); color: #fff; font-size: .78rem; backdrop-filter: blur(6px); }

/* ---------- Layout ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 64px; align-items: start; padding: 56px 0 100px; }
.prose { max-width: 740px; font-size: 1.07rem; line-height: 1.78; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 2.4em 0 .6em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.32rem; margin: 1.8em 0 .5em; }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose sup a { text-decoration: none; font-size: .72em; font-weight: 700; padding: 0 2px; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-left: 4px solid var(--violet); border-radius: 0 var(--r) var(--r) 0; background: var(--violet-soft); font: 500 1.32rem/1.45 var(--f-display); color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 10px; font: 500 .9rem/1.4 var(--f-body); color: var(--ink-2); }

.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); }
.prose figcaption { margin-top: 10px; font-size: .86rem; color: var(--ink-3); line-height: 1.5; }

/* Key takeaways */
.tldr { margin: 0 0 2.4em; padding: 26px 28px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); border-top: 6px solid var(--blue); }
.tldr h2 { font-size: 1.15rem !important; margin: 0 0 12px !important; letter-spacing: .02em; }
.tldr ul { margin: 0; }

/* Callouts & stats */
.callout { margin: 1.8em 0; padding: 22px 24px; border-radius: var(--r); background: color-mix(in srgb, var(--c, var(--blue)) 12%, white); border: 1px solid color-mix(in srgb, var(--c, var(--blue)) 28%, white); }
.callout h3 { margin: 0 0 8px; font-size: 1.08rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 2em 0; }
.stat { padding: 20px 18px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.stat b { display: block; font: 700 2rem/1 var(--f-display); color: var(--c, var(--blue)); margin-bottom: 8px; letter-spacing: -.03em; }
.stat span { display: block; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }

/* Johari diagram */
.johari-fig { margin: 2.2em 0; }
.jo { display: grid; grid-template-columns: 34px 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 8px; }
.jo-axis { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; justify-content: center; text-align: center; }
.jo-axis.v { writing-mode: vertical-rl; transform: rotate(180deg); }
.jo-cell { padding: 20px; border-radius: 18px; color: #fff; min-height: 150px; }
.jo-cell b { display: block; font: 600 1.22rem/1.15 var(--f-display); margin-bottom: 6px; }
.jo-cell span { display: block; font-size: .9rem; line-height: 1.5; opacity: .95; }
.jo-open { background: var(--blue); border-top-left-radius: 34px; }
.jo-blind { background: var(--coral); border-top-right-radius: 34px; }
.jo-hidden { background: var(--sun); border-bottom-left-radius: 34px; }
.jo-unknown { background: var(--violet); border-bottom-right-radius: 34px; }

/* Phase steps (Wheelan) */
.phases-list { list-style: none; padding: 0 !important; margin: 1.8em 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: ph; }
.phases-list li { position: relative; margin: 0; padding: 18px 16px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); border-top: 5px solid var(--c); font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.phases-list li::before { counter-increment: ph; content: "Fas " counter(ph); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.phases-list b { display: block; color: var(--ink); font: 700 1rem/1.25 var(--f-display); margin-bottom: 6px; }

/* Tables */
.table-wrap { margin: 1.8em 0; overflow-x: auto; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.prose table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: .84rem; letter-spacing: .02em; }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose tbody th { font-weight: 700; color: var(--ink); }
.prose tbody tr.own { background: var(--blue-soft); }

/* Provider cards */
.providers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.6em 0 2em; }
.provider { padding: 20px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); border-left: 5px solid var(--c, var(--blue)); }
.provider h3 { margin: 0 0 4px; font-size: 1.06rem; }
.provider .what { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--blue)); margin-bottom: 10px; }
.provider p { font-size: .93rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; }
.provider a { font-weight: 700; font-size: .9rem; }
.disclaimer { font-size: .86rem; color: var(--ink-3); }

/* Exercises */
.exercises { list-style: none; padding: 0 !important; counter-reset: ex; display: grid; gap: 12px; }
.exercises li { counter-increment: ex; position: relative; margin: 0; padding: 18px 20px 18px 70px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.exercises li::before { content: counter(ex); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--c, var(--blue)); color: #fff; font: 700 1rem var(--f-display); }
.exercises li:nth-child(4n+2) { --c: var(--coral); } .exercises li:nth-child(4n+3) { --c: var(--sun-ink); } .exercises li:nth-child(4n+4) { --c: var(--violet); }
.exercises b { display: block; font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 4px; }

/* Inline CTA */
.post-cta { margin: 2.6em 0; padding: clamp(24px, 4vw, 38px); border-radius: var(--r-lg); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.post-cta::after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 60%, transparent), transparent 70%); pointer-events: none; }
.post-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem) !important; margin: 0 0 10px !important; position: relative; }
.post-cta p { color: rgba(255,255,255,.78); position: relative; }
.post-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; position: relative; }
.post-cta .btn { text-decoration: none; }
.post-cta .btn-light { color: var(--ink); }

/* FAQ */
.post-faq details { border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); margin-bottom: 10px; }
.post-faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; line-height: 1.4; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 700 1.4rem var(--f-display); color: var(--blue); transition: transform .2s; }
.post-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.post-faq details > div { padding: 0 20px 18px; color: var(--ink-2); font-size: .98rem; }
.post-faq details > div p:last-child { margin: 0; }

/* References */
.refs { font-size: .9rem; line-height: 1.6; color: var(--ink-2); padding-left: 1.6em !important; }
.refs li { margin-bottom: .7em; scroll-margin-top: 100px; }
.refs li:target { background: var(--sun-soft); border-radius: 8px; }
.refs a { word-break: break-word; }

/* ---------- Sidebar ---------- */
.post-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.toc { padding: 22px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.toc-title { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: .88rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.toc a:hover { background: var(--cream); color: var(--ink); }
.toc a.active { background: var(--blue-soft); color: var(--ink); font-weight: 700; }
.aside-cta { padding: 22px; border-radius: var(--r); background: linear-gradient(150deg, var(--violet), var(--coral) 55%, var(--sun)); color: #fff; }
.aside-cta b { display: block; font: 600 1.2rem/1.2 var(--f-display); margin-bottom: 6px; }
.aside-cta p { font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.aside-cta .btn { width: 100%; justify-content: center; text-decoration: none; padding: 12px 18px; }

/* Related */
.related { padding: 0 0 100px; }
.related h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: block; text-decoration: none; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.related-card div { padding: 18px 20px 22px; }
.related-card span { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--blue)); }
.related-card h3 { margin: 6px 0 0; font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-aside { position: static; order: -1; margin-bottom: 36px; }
  .aside-cta { display: none; }
  .prose { max-width: none; }
}
@media (max-width: 760px) {
  .stat-row, .providers, .related-grid { grid-template-columns: 1fr; }
  .phases-list { grid-template-columns: 1fr 1fr; }
  .post-cover { aspect-ratio: 4 / 3; border-radius: var(--r); }
  .jo { grid-template-columns: 26px 1fr 1fr; gap: 6px; }
  .jo-cell { padding: 14px; min-height: 130px; }
  .jo-cell b { font-size: 1rem; }
  .jo-cell span { font-size: .8rem; }
}
@media (max-width: 460px) {
  .phases-list { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }
  .exercises li { padding-left: 62px; }
}

/* Buttons rendered as <button> inside the article (open the Calendly dialog) */
.post-cta button.btn, .aside-cta button.btn { font-size: 1rem; }
.aside-cta .btn { border: 0; }
