/* Blog post components (layouts/shortcodes/). Usage reference: content/blog/post-components.md (draft).
   Every shortcode wraps its output in .pc so these rules beat the generic .prose-content element styles,
   and components adapt to the post column width through the container query on .prose-content. */

.prose-content { container: post / inline-size; }

.pc {
  --pc-bg: #1a1a1b;
  --pc-surface: #242425;
  --pc-elevated: #2e2e30;
  --pc-accent: #89B2C4;
  --pc-accent-light: #a8cfe0;
  --pc-accent-dark: #5a8da5;
  --pc-text: #A7A8A9;
  --pc-strong: #c9cacb;
  --pc-subtle: #6b6b6d;
  --pc-line: rgba(137, 178, 196, 0.22);
  --pc-hair: rgba(255, 255, 255, 0.07);
  --pc-code-bg: #141415;
  --pc-ok: #9cc9a4;
  --pc-ok-bg: rgba(156, 201, 164, 0.09);
  --pc-bad: #de9a92;
  --pc-bad-bg: rgba(222, 154, 146, 0.09);
  --pc-warn: #d9bf86;
  --pc-warn-bg: rgba(217, 191, 134, 0.08);
  --pc-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --pc-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  margin: 2.25rem 0;
  font-style: normal;
}

/* Reset the generic prose styles inside components */
.prose-content .pc :where(ul, ol) { list-style: none; padding-left: 0; margin: 0; }
.prose-content .pc :where(li) { margin-bottom: 0; min-width: 0; }
.prose-content .pc :where(p) { margin: 0; }
.prose-content .pc :where(h2, h3, h4) { margin: 0; }
.prose-content .pc :where(pre) { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.prose-content .pc :where(blockquote) { margin: 0; padding: 0; border: 0; color: inherit; font-style: normal; }
.prose-content .pc :where(p + p) { margin-top: 0.9rem; }

/* shared eyebrow label */
.pc .pc-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pc-accent); }

/* ===== intro ===== */
.pc .pc-intro { display: grid; grid-template-columns: 1fr 13rem; gap: 32px; align-items: start; }
.pc .pc-intro.pc-solo { grid-template-columns: 1fr; }
.pc .pc-intro > * { min-width: 0; }
.pc .pc-eyebrow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-subtle); margin-bottom: 18px; }
.pc .pc-eyebrow b { color: var(--pc-accent); font-weight: 600; }
.pc .pc-eyebrow i { width: 18px; height: 1px; background: var(--pc-line); }
.pc .pc-intro-lead { font-family: var(--pc-display); font-weight: 500; color: #fff; font-size: 1.55rem; line-height: 1.35; margin-bottom: 1.1rem; text-wrap: pretty; }
.pc .pc-intro-lead em { font-style: normal; color: var(--pc-accent); }
.pc .pc-intro-body p + p { margin-top: 1.25rem; }
.pc .pc-toc { border-left: 1px solid var(--pc-line); padding-left: 18px; font-size: 14px; line-height: 1.5; }
.pc .pc-toc .pc-label { display: block; margin-bottom: 10px; color: var(--pc-subtle); }
.pc .pc-toc ol { display: grid; gap: 10px; counter-reset: pc-toc; }
.pc .pc-toc li { counter-increment: pc-toc; display: grid; grid-template-columns: 1.4rem 1fr; }
.pc .pc-toc li::before { content: counter(pc-toc); font-family: var(--pc-display); color: var(--pc-accent); font-weight: 700; }
.pc .pc-toc a { color: var(--pc-strong); text-decoration: none; }
.pc .pc-toc a:hover { color: #fff; }
@container post (max-width: 560px) {
  .pc .pc-intro { grid-template-columns: 1fr; gap: 24px; }
  .pc .pc-intro-lead { font-size: 1.3rem; }
  .pc .pc-toc { order: -1; border-left: 0; border-block: 1px solid var(--pc-hair); padding: 14px 0; }
  .pc .pc-toc ol { gap: 6px; }
}

/* ===== code frame (code-notes, diff, terminal) ===== */
.pc .pc-code { background: var(--pc-code-bg); border: 1px solid var(--pc-hair); border-radius: 12px; overflow: hidden; font-family: var(--pc-mono); font-size: 13.5px; line-height: 1.75; }
.pc .pc-code-head { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--pc-hair); font-size: 12px; color: var(--pc-subtle); }
.pc .pc-code-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pc .pc-code-file b { color: var(--pc-strong); font-weight: 500; }
.pc .pc-code-lang { color: var(--pc-accent); flex-shrink: 0; }
.pc .pc-copy { flex-shrink: 0; font: 500 12px/1 'Inter', sans-serif; color: var(--pc-text); background: var(--pc-surface); border: 1px solid var(--pc-hair); border-radius: 7px; padding: 6px 9px; cursor: pointer; }
.pc .pc-copy:hover { color: #fff; }
.pc .pc-code-body { overflow-x: auto; padding-block: 12px; }
.pc .pc-code-body pre { font: inherit; color: var(--pc-strong); }
.pc .pc-code-body code { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
/* chroma output from transform.Highlight (lineNos inline, classes) */
.pc .pc-code-body .line { display: flex; min-width: max-content; padding-right: 18px; }
.pc .pc-code-body .ln { flex-shrink: 0; width: 3rem; text-align: right; padding-right: 16px; color: #48484b; user-select: none; }
.pc .pc-code-body .hl { background: rgba(137, 178, 196, .08); box-shadow: inset 2px 0 0 var(--pc-accent); }
.pc .pc-code-body .ln.pc-mark { color: transparent; position: relative; }
.pc .pc-code-body .ln.pc-mark::after { content: attr(data-mark); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--pc-accent); color: var(--pc-bg); font: 700 11px/1 'Inter', sans-serif; }
.pc .pc-code-body :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nb, .bp, .ow) { color: var(--pc-accent-light); }
.pc .pc-code-body :is(.s, .s1, .s2, .sa, .sb, .sc, .sd, .se, .sh, .si, .sx, .sr, .ss, .dl) { color: #b9d3a0; }
.pc .pc-code-body :is(.nc, .nn, .m, .mi, .mf, .mh, .mo, .il, .no) { color: #dcc28e; }
.pc .pc-code-body :is(.nf, .fm, .nd) { color: #fff; }
.pc .pc-code-body :is(.c, .c1, .cm, .cs, .ch, .cp, .cpf) { color: var(--pc-subtle); font-style: italic; }
.pc .pc-code-body .err { color: inherit; background: none; }
.pc .pc-notes { margin-top: 16px; font-size: 14.5px; line-height: 1.6; }
.pc .pc-notes ol { display: grid; gap: 10px; counter-reset: pc-note; }
.pc .pc-notes li { counter-increment: pc-note; position: relative; padding-left: 30px; }
.pc .pc-notes li::before { content: counter(pc-note); position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--pc-accent); color: var(--pc-bg); font: 700 11px/1 'Inter', sans-serif; }
@container post (max-width: 560px) { .pc .pc-code { font-size: 12.5px; } .pc .pc-code-body .ln { width: 2.2rem; padding-right: 10px; } .pc .pc-code-body .ln.pc-mark::after { right: 8px; } }

/* ===== diff ===== */
.pc .pc-diff-key { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.pc .pc-diff-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc-bad); }
.pc .pc-diff-key.add i { background: var(--pc-ok); }
.pc .pc-dl { display: grid; grid-template-columns: 1.6rem auto; min-width: max-content; padding: 0 18px 0 6px; white-space: pre; }
.pc .pc-dl::before { content: attr(data-s); text-align: center; color: var(--pc-subtle); user-select: none; }
.pc .pc-dl.del { background: var(--pc-bad-bg); }
.pc .pc-dl.del::before { color: var(--pc-bad); }
.pc .pc-dl.add { background: var(--pc-ok-bg); }
.pc .pc-dl.add::before { color: var(--pc-ok); }
.pc .pc-dl mark { color: inherit; border-radius: 3px; background: rgba(222, 154, 146, .22); }
.pc .pc-dl.add mark { background: rgba(156, 201, 164, .22); }
.pc .pc-caught { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--pc-hair); font-size: 12px; line-height: 1.55; }
.pc .pc-caught > span:first-child { color: var(--pc-warn); }
.pc .pc-caught > span:last-child { min-width: 0; }

/* ===== point list ===== */
.pc .pc-points ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.pc .pc-points li { position: relative; padding: 14px 0 14px 22px; border-top: 1px solid var(--pc-hair); line-height: 1.6; min-width: 0; }
.pc .pc-points li::before { content: ""; position: absolute; left: 0; top: 24px; width: 9px; height: 9px; border: 2px solid var(--pc-accent); border-radius: 50%; }
.pc .pc-points li > strong:first-child { display: block; font-family: var(--pc-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 2px; }
.pc .pc-points li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pc .pc-points.pc-one ul { grid-template-columns: 1fr; }
@container post (max-width: 560px) { .pc .pc-points ul { grid-template-columns: 1fr; } }

/* ===== pull quote ===== */
.pc .pc-quote { position: relative; padding-top: 28px; }
.pc .pc-quote::before { content: "\201C"; position: absolute; top: -34px; left: -6px; font-family: var(--pc-display); font-weight: 700; font-size: 8rem; line-height: 1; color: var(--pc-accent); opacity: .22; pointer-events: none; }
.pc .pc-quote p { position: relative; font-family: var(--pc-display); font-weight: 500; font-size: 1.85rem; line-height: 1.3; color: #fff; text-wrap: balance; }
.pc .pc-quote em { font-style: normal; background: linear-gradient(90deg, var(--pc-accent-light), var(--pc-accent-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc .pc-quote footer { position: relative; margin-top: 18px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--pc-subtle); }
.pc .pc-quote footer::before { content: ""; width: 32px; height: 1px; background: var(--pc-subtle); }
@container post (max-width: 560px) { .pc .pc-quote p { font-size: 1.4rem; } .pc .pc-quote::before { font-size: 6rem; top: -22px; } }

/* ===== callout ===== */
.pc .pc-callout { --tone: var(--pc-accent); --tone-bg: rgba(137, 178, 196, .07); display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--tone-bg); border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent); font-size: 15px; line-height: 1.65; }
.pc .pc-callout > div { min-width: 0; }
.pc .pc-callout svg { width: 22px; height: 22px; color: var(--tone); margin-top: 2px; }
.pc .pc-callout .pc-label { display: block; color: var(--tone); margin-bottom: 2px; }
.pc .pc-callout.warning { --tone: var(--pc-warn); --tone-bg: var(--pc-warn-bg); }
.pc .pc-callout.tip { --tone: var(--pc-ok); --tone-bg: var(--pc-ok-bg); }

/* ===== incident timeline ===== */
.pc .pc-tl li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 28px; padding-bottom: 22px; position: relative; }
.pc .pc-tl li > * { min-width: 0; }
.pc .pc-tl li::before { content: ""; position: absolute; left: calc(9.5rem + 14px); top: 14px; bottom: -6px; width: 1px; background: var(--pc-line); }
.pc .pc-tl li:last-child::before { display: none; }
.pc .pc-tl-k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-subtle); text-align: right; padding-top: 3px; }
.pc .pc-tl-v { position: relative; padding-left: 4px; line-height: 1.6; }
.pc .pc-tl-v::before { content: ""; position: absolute; left: -20px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--pc-bg); border: 2px solid var(--pc-accent); }
.pc .pc-tl li.bad .pc-tl-v::before { border-color: var(--pc-bad); }
.pc .pc-tl li.bad .pc-tl-k { color: var(--pc-bad); }
.pc .pc-tl li.good .pc-tl-v::before { background: var(--pc-ok); border-color: var(--pc-ok); }
.pc .pc-tl li.good .pc-tl-k { color: var(--pc-ok); }
@container post (max-width: 560px) {
  .pc .pc-tl li { grid-template-columns: 1fr; padding-left: 26px; gap: 2px; }
  .pc .pc-tl li::before { left: 6px; }
  .pc .pc-tl-k { text-align: left; padding-top: 0; }
  .pc .pc-tl-v { padding-left: 0; }
  .pc .pc-tl-v::before { left: -26px; top: -18px; }
}

/* ===== screenshots (figure-pair, annotated-shot) ===== */
.pc .pc-shot { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 22px; border: 5px solid var(--pc-elevated); background: var(--pc-surface); }
.pc .pc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; justify-items: center; }
.pc .pc-pair > div { width: 100%; max-width: 240px; min-width: 0; display: grid; gap: 10px; justify-items: center; text-align: center; }
.pc .pc-tag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pc .pc-tag.ok { color: var(--pc-ok); }
.pc .pc-tag.bad { color: var(--pc-bad); }
.pc .pc-caption { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 14px; line-height: 1.55; border-top: 1px solid var(--pc-hair); padding-top: 12px; }
.pc .pc-caption b { font-family: var(--pc-display); color: var(--pc-accent); font-weight: 700; white-space: nowrap; }
.pc .pc-caption span { min-width: 0; }
@container post (max-width: 560px) { .pc .pc-pair { gap: 12px; } .pc .pc-shot { border-width: 4px; border-radius: 16px; } }

.pc .pc-ann { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.pc .pc-ann > * { min-width: 0; }
.pc .pc-ann-shot { position: relative; width: 100%; max-width: 220px; justify-self: center; }
.pc .pc-pin, .pc .pc-ann ol > li::before { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pc-bad); color: var(--pc-bg); font: 700 12px/1 'Inter', sans-serif; }
.pc .pc-pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(222, 154, 146, .25); }
.pc .pc-ann ol { display: grid; gap: 12px; counter-reset: pc-ann; font-size: 15px; line-height: 1.55; }
.pc .pc-ann ol > li { counter-increment: pc-ann; position: relative; padding-left: 36px; min-height: 24px; }
.pc .pc-ann ol > li::before { content: counter(pc-ann); position: absolute; left: 0; top: 0; }
@container post (max-width: 560px) { .pc .pc-ann { grid-template-columns: 1fr; } .pc .pc-ann-shot { max-width: 180px; } }

/* ===== lesson ===== */
.pc .pc-lesson { padding: 30px 30px 26px; border-radius: 16px; background: linear-gradient(var(--pc-surface), var(--pc-surface)) padding-box, linear-gradient(135deg, var(--pc-accent), rgba(137, 178, 196, .05) 55%, var(--pc-accent-dark)) border-box; border: 1px solid transparent; }
.pc .pc-lesson-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pc .pc-lesson-scope { font-size: 12px; color: var(--pc-subtle); border: 1px solid var(--pc-hair); border-radius: 999px; padding: 2px 10px; }
.pc .pc-lesson-main { font-family: var(--pc-display); font-weight: 500; font-size: 1.45rem; line-height: 1.35; color: #fff; margin-bottom: 14px; text-wrap: balance; }
.pc .pc-lesson-sub { font-size: 15px; line-height: 1.65; }
@container post (max-width: 560px) { .pc .pc-lesson { padding: 22px 20px 20px; } .pc .pc-lesson-main { font-size: 1.2rem; } }

/* ===== cta ===== */
.pc .pc-cta { border-top: 1px solid var(--pc-hair); padding-top: 26px; display: grid; gap: 18px; }
.pc .pc-cta-sign { font-family: var(--pc-display); color: #fff; font-size: 1.2rem; }
.pc .pc-cta-link { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; text-decoration: none; color: var(--pc-text); padding: 18px 20px; border-radius: 14px; background: var(--pc-surface); border: 1px solid var(--pc-hair); transition: border-color .25s, transform .25s; }
.pc .pc-cta-link:hover { border-color: rgba(137, 178, 196, .45); color: var(--pc-text); transform: translateY(-1px); }
.pc .pc-cta-link > span:first-child { min-width: 0; line-height: 1.55; font-size: 15px; }
.pc .pc-cta-link b { display: block; color: #fff; font-family: var(--pc-display); font-weight: 500; font-size: 1.08rem; margin-bottom: 2px; }
.pc .pc-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pc-accent); color: var(--pc-bg); font-size: 18px; transition: transform .25s; }
.pc .pc-cta-link:hover .pc-arrow { transform: translateX(3px); }
.pc .pc-cta-small { font-size: 14px; color: var(--pc-subtle); }

/* ===== in short ===== */
.pc .pc-short { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; padding: 18px 0; border-block: 1px solid var(--pc-line); }
.pc .pc-short > .pc-label { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .14em; }
.pc .pc-short ul { display: grid; gap: 10px; min-width: 0; }
.pc .pc-short li { position: relative; padding-left: 28px; line-height: 1.55; color: var(--pc-strong); }
.pc .pc-short li::before { content: "→"; position: absolute; left: 0; color: var(--pc-accent); }
@container post (max-width: 560px) { .pc .pc-short { grid-template-columns: 1fr; gap: 10px; } .pc .pc-short > .pc-label { writing-mode: horizontal-tb; transform: none; } }

/* ===== section heading ===== */
.pc.pc-section-wrap { margin-top: 3rem; }
.pc .pc-section { display: grid; gap: 6px; }
.pc .pc-section-top { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pc-subtle); }
.pc .pc-section-top b { color: var(--pc-accent); font-family: var(--pc-display); font-size: 13px; }
.pc .pc-section-top i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--pc-line), transparent); }
.pc .pc-section h2 { font-family: var(--pc-display); font-weight: 700; color: #fff; font-size: 1.75rem; line-height: 1.2; text-wrap: balance; scroll-margin-top: 6rem; }
.pc .pc-section h2 a { margin-left: 10px; font-size: .8em; color: var(--pc-subtle); text-decoration: none; opacity: .6; }
.pc .pc-section h2 a:hover, .pc .pc-section h2 a:focus-visible { color: var(--pc-accent); opacity: 1; }
.pc .pc-section p { margin-top: 4px; color: var(--pc-subtle); font-size: 15px; }
@container post (max-width: 560px) { .pc .pc-section h2 { font-size: 1.4rem; } }

/* ===== terminal ===== */
.pc .pc-term-exit { color: var(--pc-ok); }
.pc .pc-term-exit.bad { color: var(--pc-bad); }
.pc .pc-term .pc-code-body { padding: 14px 16px; }
.pc .pc-term pre { min-width: max-content; }
.pc .pc-term .t-p { color: var(--pc-accent); user-select: none; }
.pc .pc-term .t-cmd { color: #fff; }
.pc .pc-term .t-out { color: var(--pc-subtle); }
.pc .pc-term .t-err { color: var(--pc-bad); }
.pc .pc-term .t-ok { color: var(--pc-ok); }

/* ===== prompt ===== */
.pc .pc-prompt { border: 1px solid var(--pc-line); border-radius: 14px; background: rgba(137, 178, 196, .05); overflow: hidden; }
.pc .pc-prompt-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--pc-line); font-size: 12px; }
.pc .pc-prompt-tool { color: var(--pc-subtle); margin-left: auto; }
.pc .pc-prompt-body { padding: 16px; font-family: var(--pc-mono); font-size: 13.5px; line-height: 1.7; color: var(--pc-strong); white-space: pre-wrap; overflow-wrap: anywhere; }
.pc .pc-prompt-body mark { background: rgba(217, 191, 134, .16); color: var(--pc-warn); border-radius: 3px; padding: 0 2px; }
.pc .pc-prompt-foot { padding: 10px 16px; border-top: 1px dashed var(--pc-line); font-size: 13px; color: var(--pc-subtle); }

/* ===== chat ===== */
.pc .pc-chat { display: grid; gap: 12px; }
.pc .pc-msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.6; min-width: 0; }
.pc .pc-msg small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; color: var(--pc-subtle); }
.pc .pc-msg.me { justify-self: end; background: var(--pc-accent); color: var(--pc-bg); border-bottom-right-radius: 4px; }
.pc .pc-msg.me small { color: rgba(26, 26, 27, .6); }
.pc .pc-msg.me code { background: rgba(26, 26, 27, .12); color: var(--pc-bg); border: 0; }
.pc .pc-msg.ai { justify-self: start; background: var(--pc-surface); border: 1px solid var(--pc-hair); border-bottom-left-radius: 4px; color: var(--pc-strong); }
.pc .pc-msg.reality { justify-self: center; max-width: 100%; border: 1px dashed var(--pc-bad); color: var(--pc-bad); text-align: center; font-size: 14px; border-radius: 999px; padding: 8px 18px; }
@container post (max-width: 560px) { .pc .pc-msg { max-width: 92%; } }

/* ===== table ===== */
.pc .pc-table { overflow-x: auto; border: 1px solid var(--pc-hair); border-radius: 12px; }
.pc .pc-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 520px; }
.pc .pc-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pc-subtle); padding: 12px 16px; background: var(--pc-surface); }
.pc .pc-table td { padding: 13px 16px; border-top: 1px solid var(--pc-hair); vertical-align: top; }
.pc .pc-table.pc-mono-first td:first-child { font-family: var(--pc-mono); font-size: 12.5px; color: var(--pc-accent-light); white-space: nowrap; }
.pc .pc-table tbody tr:hover td { background: rgba(137, 178, 196, .04); }

/* ===== promise vs reality ===== */
.pc .pc-pvr { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--pc-hair); border-radius: 14px; overflow: hidden; }
.pc .pc-pvr > div { padding: 18px 20px; min-width: 0; }
.pc .pc-pvr > div + div { border-left: 1px solid var(--pc-hair); background: var(--pc-bad-bg); }
.pc .pc-pvr .pc-label { display: block; margin-bottom: 12px; color: var(--pc-ok); }
.pc .pc-pvr > div + div .pc-label { color: var(--pc-bad); }
.pc .pc-pvr ul { display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }
.pc .pc-pvr li { position: relative; padding-left: 26px; }
.pc .pc-pvr li::before { content: "✓"; position: absolute; left: 0; color: var(--pc-ok); }
.pc .pc-pvr > div + div li::before { content: "✗"; color: var(--pc-bad); }
@container post (max-width: 560px) { .pc .pc-pvr { grid-template-columns: 1fr; } .pc .pc-pvr > div + div { border-left: 0; border-top: 1px solid var(--pc-hair); } }

/* ===== numbers ===== */
.pc .pc-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
.pc .pc-nums > div { padding: 4px 22px; border-left: 1px solid var(--pc-hair); min-width: 0; }
.pc .pc-nums > div:first-child { border-left: 0; padding-left: 0; }
.pc .pc-nums b { display: block; font-family: var(--pc-display); font-weight: 700; color: #fff; font-size: 2.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pc .pc-nums b span { color: var(--pc-accent); }
.pc .pc-nums p { margin-top: 6px; font-size: 14px; line-height: 1.5; }
@container post (max-width: 560px) {
  .pc .pc-nums { grid-auto-flow: row; grid-template-columns: 1fr; gap: 16px; }
  .pc .pc-nums > div { border-left: 0; padding: 0 0 16px; border-bottom: 1px solid var(--pc-hair); }
  .pc .pc-nums > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .pc .pc-nums b { font-size: 2.1rem; }
}

/* ===== steps ===== */
.pc .pc-steps > ol { counter-reset: pc-st; display: grid; gap: 18px; }
.pc .pc-steps > ol > li { counter-increment: pc-st; position: relative; padding-left: 52px; min-height: 36px; }
.pc .pc-steps > ol > li::before { content: counter(pc-st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pc-surface); border: 1px solid var(--pc-line); color: var(--pc-accent); font-family: var(--pc-display); font-weight: 700; }
.pc .pc-steps li p + pre, .pc .pc-steps li p + p { margin-top: 8px; }
.pc .pc-steps strong:first-child { display: block; margin: 5px 0 6px; }
.pc .pc-steps p { font-size: 15px; line-height: 1.6; }
.pc .pc-steps pre { margin-top: 8px; padding: 10px 14px; background: var(--pc-code-bg) !important; border: 1px solid var(--pc-hair); border-radius: 10px; font-size: 13px; overflow-x: auto; }
.pc .pc-steps pre code { background: none; border: 0; padding: 0; color: var(--pc-strong); }

/* ===== expand ===== */
/* !important beats the inline background Hugo's default (noClasses) highlighter puts on fenced code blocks. */
.pc .pc-expand { border: 1px solid var(--pc-hair); border-radius: 12px; background: var(--pc-surface); }
.pc .pc-expand summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; }
.pc .pc-expand summary::-webkit-details-marker { display: none; }
.pc .pc-expand summary > span:first-child { min-width: 0; color: #fff; font-weight: 500; }
.pc .pc-expand summary small { display: block; color: var(--pc-subtle); font-size: 13px; font-weight: 400; }
.pc .pc-chev { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--pc-line); color: var(--pc-accent); transition: transform .25s; }
.pc .pc-expand[open] .pc-chev { transform: rotate(180deg); }
.pc .pc-expand-body { padding: 0 18px 16px; }
.pc .pc-expand-body pre { padding: 12px 14px; background: var(--pc-code-bg) !important; border-radius: 10px; font-size: 12.5px; line-height: 1.7; overflow-x: auto; }
.pc .pc-expand-body pre code { background: none; border: 0; padding: 0; color: var(--pc-subtle); }

/* ===== sidenote ===== */
.pc .pc-side { display: grid; grid-template-columns: 1fr 12rem; gap: 28px; align-items: start; }
.pc .pc-side > * { min-width: 0; }
.pc .pc-fn { font-size: 11px; font-weight: 700; color: var(--pc-accent); vertical-align: super; line-height: 0; margin-left: 1px; }
.pc .pc-side aside { font-size: 13.5px; line-height: 1.55; color: var(--pc-subtle); border-top: 1px solid var(--pc-line); padding-top: 8px; }
.pc .pc-side aside b { color: var(--pc-accent); margin-right: 4px; }
@container post (max-width: 560px) { .pc .pc-side { grid-template-columns: 1fr; gap: 14px; } }

/* ===== define ===== */
.pc .pc-define { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 18px 20px; border-radius: 14px; background: var(--pc-surface); border: 1px solid var(--pc-hair); }
.pc .pc-define dfn { font-style: normal; font-family: var(--pc-display); font-weight: 700; color: #fff; font-size: 1.3rem; }
.pc .pc-define-kind { align-self: center; font-size: 13px; color: var(--pc-subtle); }
.pc .pc-define-body { grid-column: 1 / -1; font-size: 15px; line-height: 1.65; }
.pc .pc-define-eg { grid-column: 1 / -1; font-size: 13.5px; color: var(--pc-subtle); }
.pc .pc-define-eg span { color: var(--pc-accent); }

/* ===== file tree ===== */
.pc .pc-tree { background: var(--pc-code-bg); border: 1px solid var(--pc-hair); border-radius: 12px; padding: 14px 18px; font-family: var(--pc-mono); font-size: 13px; line-height: 1.85; overflow-x: auto; }
.pc .pc-tree pre { font: inherit; min-width: max-content; color: var(--pc-subtle); }
.pc .pc-tree .d { color: var(--pc-accent-light); }
.pc .pc-tree .f { color: var(--pc-strong); }
.pc .pc-tree .new { color: var(--pc-ok); }
.pc .pc-tree .c { color: #555558; }

/* ===== tested with ===== */
.pc .pc-stack { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: baseline; padding: 14px 0; border-block: 1px solid var(--pc-hair); }
.pc .pc-stack > .pc-label { color: var(--pc-subtle); }
.pc .pc-stack ul { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pc .pc-stack li { font-size: 13px; padding: 4px 11px; border-radius: 8px; background: var(--pc-surface); border: 1px solid var(--pc-hair); color: var(--pc-strong); }
.pc .pc-stack li b { color: var(--pc-accent); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
@container post (max-width: 560px) { .pc .pc-stack { grid-template-columns: 1fr; } }

/* ===== series progress ===== */
.pc .pc-series { padding: 18px 20px; border-radius: 14px; background: var(--pc-surface); border: 1px solid var(--pc-hair); }
.pc .pc-series-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; margin-bottom: 10px; }
.pc .pc-series-top a { color: #fff; font-family: var(--pc-display); font-weight: 500; font-size: 1.05rem; text-decoration: none; }
.pc .pc-series-top span { color: var(--pc-subtle); font-variant-numeric: tabular-nums; }
.pc .pc-series-bar { display: grid; grid-auto-flow: column; gap: 4px; margin-bottom: 14px; }
.pc .pc-series-bar i { height: 4px; border-radius: 2px; background: var(--pc-elevated); }
.pc .pc-series-bar i.on { background: var(--pc-accent); }
.pc .pc-series ol { display: grid; gap: 6px; font-size: 14.5px; counter-reset: pc-se; }
.pc .pc-series li { counter-increment: pc-se; display: grid; grid-template-columns: 1.6rem 1fr; }
.pc .pc-series li::before { content: counter(pc-se) "."; color: var(--pc-subtle); font-variant-numeric: tabular-nums; }
.pc .pc-series li.cur { color: #fff; font-weight: 500; }
.pc .pc-series li.cur::before { color: var(--pc-accent); }
.pc .pc-series li.soon { color: var(--pc-subtle); }
.pc .pc-series li a { color: var(--pc-strong); text-decoration: none; }
.pc .pc-series li a:hover { color: var(--pc-accent-light); }

/* ===== ai note ===== */
.pc .pc-ai-note { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--pc-subtle); padding: 10px 14px; border-radius: 999px; border: 1px dashed var(--pc-line); width: fit-content; max-width: 100%; }
.pc .pc-ai-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--pc-accent); }
.pc .pc-ai-note > span { min-width: 0; }
.pc .pc-ai-note strong { color: var(--pc-strong); font-weight: 500; }

/* ===== byline ===== */
.pc .pc-byline { display: flex; align-items: center; gap: 14px; }
.pc .pc-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; object-fit: cover; display: grid; place-items: center; font-family: var(--pc-display); font-weight: 700; color: var(--pc-bg); background: linear-gradient(135deg, var(--pc-accent-light), var(--pc-accent-dark)); }
.pc .pc-byline > div { min-width: 0; line-height: 1.45; }
.pc .pc-byline b { color: #fff; font-weight: 600; }
.pc .pc-byline p { margin-top: 2px; font-size: 14px; color: var(--pc-subtle); }
.pc .pc-byline > a { margin-left: auto; flex-shrink: 0; font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid var(--pc-line); border-radius: 999px; padding: 6px 12px; }
@container post (max-width: 420px) { .pc .pc-byline { flex-wrap: wrap; } .pc .pc-byline > a { margin-left: 62px; } }

/* ===== checklist ===== */
.pc .pc-check { padding: 20px; border-radius: 14px; border: 1px solid var(--pc-hair); background: var(--pc-surface); }
.pc .pc-check-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.pc .pc-check-top b { font-family: var(--pc-display); color: #fff; font-weight: 500; font-size: 1.1rem; }
.pc .pc-check-count { font-size: 13px; color: var(--pc-subtle); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.pc .pc-check label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 9px 0; border-top: 1px solid var(--pc-hair); cursor: pointer; font-size: 15px; line-height: 1.5; }
.pc .pc-check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--pc-line); background: var(--pc-bg); display: grid; place-items: center; cursor: pointer; }
.pc .pc-check input:checked { background: var(--pc-accent); border-color: var(--pc-accent); }
.pc .pc-check input:checked::after { content: "✓"; color: var(--pc-bg); font-size: 13px; font-weight: 700; line-height: 1; }
.pc .pc-check input:checked + span { color: var(--pc-subtle); text-decoration: line-through; text-decoration-color: var(--pc-line); }

/* ===== read next ===== */
.pc .pc-next { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 24px; border-radius: 16px; text-decoration: none; color: var(--pc-text); background: radial-gradient(120% 140% at 100% 0%, rgba(137, 178, 196, .16), transparent 55%), var(--pc-surface); border: 1px solid var(--pc-hair); transition: border-color .25s; }
.pc .pc-next:hover { border-color: rgba(137, 178, 196, .45); color: var(--pc-text); }
.pc .pc-next > div { min-width: 0; }
.pc .pc-next b { display: block; font-family: var(--pc-display); font-weight: 700; color: #fff; font-size: 1.45rem; line-height: 1.25; margin: 6px 0 8px; text-wrap: balance; }
.pc .pc-next p { font-size: 14.5px; line-height: 1.55; }
.pc .pc-next-meta { margin-top: 12px; font-size: 13px; color: var(--pc-subtle); }
.pc .pc-next-go { font-family: var(--pc-display); font-size: 2rem; color: var(--pc-accent); line-height: 1; transition: transform .25s; }
.pc .pc-next:hover .pc-next-go { transform: translateX(4px); }
@container post (max-width: 560px) { .pc .pc-next { padding: 20px; } .pc .pc-next b { font-size: 1.2rem; } }

.pc a:focus-visible, .pc button:focus-visible, .pc summary:focus-visible, .pc input:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pc * { transition: none !important; } }
