/* ============================================================
   BLOG + GUIDES  (paper + ink). Pages are generated by
   skool-backup/build_articles.py
============================================================ */
.post { padding-bottom: 40px; }
.post > .container { padding-top: 120px; }
.post .page-header + .container { padding-top: 0; }

.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 28px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--text-dim); }

/* Layout: header and article on the left, templates box sticky on the right.
   On phones the templates box sits between the video and the article. */
.post-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px;
  grid-template-areas: "top side" "body side"; align-items: start;
}
.post-top { grid-area: top; }
.post-side { grid-area: side; align-self: stretch; }
.post-body { grid-area: body; max-width: 720px; }
.side-stick { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }

.post-top h1 {
  font-size: clamp(2rem, 4.4vw, 3.7rem); line-height: .95; max-width: 20ch; margin-bottom: 18px;
}
.post-meta { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin: 0 0 26px; }
.answer {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; line-height: 1.5; max-width: 60ch;
  padding-top: 22px; border-top: var(--line); margin: 0 0 32px;
}

/* Ask your AI */
.ask-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 30px; }
.ask-lbl { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.ask-lbl svg { width: 14px; height: 14px; color: var(--orange); }
.ask-ai a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1.5px solid var(--ink); background: var(--white);
  font-family: var(--mono); font-size: 12px; font-weight: 600; transition: transform .12s, box-shadow .12s;
}
.ask-ai a:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--orange); }

/* Video chapters */
.chapters { margin: -24px 0 40px; max-width: 820px; border: var(--line); background: var(--white); }
.chapters summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; min-height: 48px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.chapters summary::-webkit-details-marker { display: none; }
.chapters summary svg { width: 16px; height: 16px; }
.chapters summary span { color: var(--text-dim); font-weight: 500; }
.chapters ol { list-style: none; margin: 0; padding: 4px 0 8px; border-top: 1px solid var(--border); columns: 2 260px; column-gap: 0; }
.chapters button { width: 100%; display: grid; grid-template-columns: 62px 1fr; gap: 8px; text-align: left; padding: 7px 16px; font-size: 14px; line-height: 1.3; break-inside: avoid; }
.chapters button span { font-family: var(--mono); font-size: 12px; color: var(--orange); font-weight: 600; padding-top: 1px; }
.chapters button:hover { background: var(--paper); }

/* Screenshots from the video */
.shot { margin: 26px 0 8px; }
.shot img { display: block; width: 100%; height: auto; border: var(--line); box-shadow: var(--shadow); background: var(--desk); }
.shot figcaption { margin-top: 14px; font-size: 14.5px; color: var(--text-muted); line-height: 1.45; }
.shot-play { font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  border-bottom: 2px solid var(--orange); margin-left: 6px; }
.shot-play:hover { color: var(--orange); }
.chapters .shot-play { border: 0; margin: 0; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 500; }
.tb-note { padding: 14px 18px 0; font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* Video (thumbnail until pressed) */
.vid { margin-bottom: 40px; max-width: 820px; }
.vid-btn, .vid iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: var(--line); box-shadow: var(--shadow);
  background: var(--desk) center/cover no-repeat;
}
.vid-btn:hover .vid-play { transform: translate(-50%, -50%) scale(1.06); }
.vid-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform .14s ease;
  width: 76px; height: 76px; background: var(--orange); border: var(--line);
  display: flex; align-items: center; justify-content: center;
}
.vid-play svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 3px; }
.vid-mins { position: absolute; right: 0; bottom: 0; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px; padding: 5px 10px; text-transform: uppercase; letter-spacing: .04em; }

/* Templates box */
.tb, .tools, .takeaways { background: var(--white); border: var(--line); }
.tb { box-shadow: var(--shadow-accent); }
.tb-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.tb-head::before { content: ''; width: 9px; height: 9px; background: var(--orange); border: 1.5px solid var(--ink); }
.tb-list { list-style: none; margin: 0; padding: 0; }
.tb-list a {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 18px; min-height: 52px; border-bottom: 1px solid var(--border); transition: background .12s ease;
}
.tb-list li:last-child a { border-bottom: 0; }
.tb-list a:hover { background: var(--paper); }
.tb-ico { width: 30px; height: 30px; border: 1.5px solid var(--ink); background: var(--paper); display: flex; align-items: center; justify-content: center; }
.tb-ico svg { width: 15px; height: 15px; }
.tb-lbl { display: flex; flex-direction: column; min-width: 0; }
.tb-lbl b { font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.tb-lbl small { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.tb-go svg { width: 16px; height: 16px; }
.is-locked .tb-go { color: var(--text-dim); }
.tb-cta { width: calc(100% - 36px); margin: 14px 18px 18px; box-shadow: 4px 4px 0 var(--orange); }

.toc { background: var(--white); border: var(--line); }
.toc ol { list-style: none; margin: 0; padding: 8px 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 18px; font-size: 14px; line-height: 1.3; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--text-dim); padding-top: 2px; }
.toc a:hover { background: var(--paper); }
.post-body a.xlink { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-body a.xlink:hover { color: var(--orange); }
.tools a:hover { color: var(--orange); }
.tools ul { list-style: none; margin: 0; padding: 14px 18px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 5px 10px; border: 1.5px solid var(--ink); background: var(--paper); }

/* Article body */
.takeaways { margin-bottom: 48px; }
.takeaways ul { list-style: none; margin: 0; padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.takeaways li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.5; }
.takeaways li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--orange); border: 1.5px solid var(--ink); }

.post-body section { margin-bottom: 44px; }
.post-body h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1; max-width: 26ch; margin-bottom: 18px;
  padding-top: 18px; border-top: var(--line); scroll-margin-top: 90px;
}
.post-body p { font-size: 17.5px; line-height: 1.7; margin: 0 0 18px; color: var(--text); }
.post-body strong { font-weight: 700; }
.post-body ol, .post-body ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.post-body li { font-size: 17px; line-height: 1.6; position: relative; padding-left: 40px; }
.post-body ol { counter-reset: n; }
.post-body ol > li { counter-increment: n; }
.post-body ol > li::before {
  content: counter(n); position: absolute; left: 0; top: 1px; width: 26px; height: 26px;
  background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.post-body ul > li::before { content: ''; position: absolute; left: 8px; top: .6em; width: 9px; height: 9px; background: var(--orange); border: 1.5px solid var(--ink); }
/* More specific than ".post-body ul" above, which would otherwise zero this padding and push the bullets onto the border. */
.post-body .takeaways ul { padding: 18px 22px 20px; margin: 0; gap: 12px; }
.post-body .takeaways ul > li { padding-left: 24px; font-size: 16.5px; line-height: 1.5; }
.post-body .takeaways ul > li::before { left: 0; top: .5em; }

.faq details { border: var(--line); background: var(--white); margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; min-height: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-weight: 800; font-size: 17px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; transition: transform .15s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding: 14px 18px 4px; font-size: 16.5px; }

/* Call to action (same as resources page) */
.built-cta {
  margin-top: 64px; background: var(--ink); color: var(--paper); border: var(--line);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
}
.built-cta h2 { color: var(--paper); margin-bottom: 18px; max-width: 16ch; }
.built-cta p { color: #B4B1A8; font-size: 18px; max-width: 52ch; margin: 0 0 32px; }
.built-cta .btn { background: var(--orange); color: var(--ink); border-color: var(--orange); box-shadow: 6px 6px 0 var(--paper); }
.built-cta .btn:hover { box-shadow: 3px 3px 0 var(--paper); }

/* Guide cards (related + index) */
.related { margin-top: 72px; }
.related h2, .blog-group h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin-bottom: 26px; padding-bottom: 16px; border-bottom: var(--line); }
.blog-group h2 span { font-family: var(--mono); font-size: .45em; font-weight: 500; color: var(--text-dim); vertical-align: middle; }
.bc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.bc { display: flex; flex-direction: column; background: var(--white); border: var(--line); transition: transform .14s ease, box-shadow .14s ease; height: 100%; }
.bc:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-accent); }
.bc-thumb { display: block; aspect-ratio: 16/9; background: var(--desk) center/cover no-repeat; border-bottom: var(--line); }
.bc-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex-grow: 1; }
.bc-sec { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.bc-sec::before { content: ''; width: 8px; height: 8px; background: var(--orange); border: 1.5px solid var(--ink); }
.bc-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.bc-desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.45; }
.bc-meta { margin-top: auto; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }

.blog-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.blog-jump a {
  padding: 8px 14px; min-height: 38px; display: inline-flex; align-items: center; border: var(--line); background: var(--paper);
  font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.blog-jump a:hover { background: var(--ink); color: var(--paper); }
.blog-group { margin-bottom: 64px; scroll-margin-top: 90px; }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "side" "body"; }
  .side-stick { position: static; margin-bottom: 44px; max-width: 560px; }
  .post-body { max-width: none; }
  .bc-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
  .post > .container { padding-top: 92px; }
  .crumbs { margin-bottom: 18px; }
  .post-top h1 { font-size: clamp(1.7rem, 8.4vw, 2.3rem); }
  .answer { font-size: 1.05rem; }
  .vid { margin-bottom: 30px; }
  .vid-btn, .vid iframe { box-shadow: 4px 4px 0 var(--ink); }
  .vid-play { width: 60px; height: 60px; }
  .post-body p { font-size: 16.5px; }
  .post-body li { font-size: 16px; padding-left: 36px; }
  .bc-grid { grid-template-columns: 1fr; }
  .built-cta p { font-size: 16px; }
}
