/* Blog, blog posts, CMS pages and the 404 — site/assets/blog.css (core/blog.php, core/blog-post.php, core/page.php).
   Same system as the rest of the public site (tokens and base are in ui.css). All selectors are prefixed .pt- or scoped to the page blocks. */
.pt-main { padding-top: 68px; min-height: 60vh; }
.pt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.pt-narrow { max-width: 760px; }
.mk-site .pt-main h1, .mk-site .pt-main h2, .mk-site .pt-main h3 { font-family: var(--font-body); color: var(--ink); margin: 0; }

/* blog index */
.pt-hero { padding: 80px 0 40px; }
.pt-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.06; }
.pt-hero p { font-size: 1.15rem; line-height: 1.6; color: var(--mute); max-width: 620px; margin: 20px 0 0; }
.pt-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 30px; }
.pt-pill { font: 500 .84rem var(--font-body); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--mute); text-decoration: none; }
.pt-pill:hover { color: var(--ink); border-color: var(--mute); }
.pt-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pt-list { padding: 24px 0 112px; }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; margin-top: 8px; }
.pt-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.pt-thumb { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--stone); }
.pt-thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-card-body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 8px; }
.pt-cat { align-self: flex-start; font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pt-cat::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.pt-card h2, .pt-card h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.25; }
.pt-card:hover h2, .pt-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.pt-card p { margin: 0; color: var(--mute); font-size: .96rem; line-height: 1.6; }
.pt-card-meta { font-size: .8rem; color: var(--mute); margin-top: 2px; }
.pt-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.pt-featured .pt-card-body { padding: 0; gap: 12px; } .pt-featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 300; letter-spacing: -.03em; }
.pt-featured p { font-size: 1.05rem; }
.pt-empty { text-align: center; padding: 64px 24px; border: 1px solid var(--line); border-radius: 24px; }
.pt-empty h2 { font-size: 1.5rem; font-weight: 400; } .pt-empty p { color: var(--mute); margin: 10px 0 24px; }
.pt-pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 64px; }
.pt-pager a, .pt-pager span { min-width: 40px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: .9rem; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.pt-pager a { border-color: var(--line); } .pt-pager a:hover { border-color: var(--mute); background: var(--stone); }
.pt-pager .is-current { background: var(--ink); color: var(--paper); } .pt-pager .is-disabled { color: var(--mute); opacity: .5; } .pt-pager .is-gap { color: var(--mute); }
.mk-site .pt-btn { display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h, 41px); padding: 0 24px; border-radius: 999px; font: 500 .95rem var(--font-body); text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.mk-site .pt-btn:hover { background: var(--mute); border-color: var(--mute); }

/* a post */
.pt-article { padding: 56px 0 72px; }
.pt-back { display: inline-block; font-size: .9rem; color: var(--mute); text-decoration: none; margin-bottom: 28px; } .pt-back:hover { color: var(--ink); }
.pt-article .pt-cat { margin-bottom: 14px; }
.pt-article h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.pt-lead { font-size: 1.25rem; line-height: 1.6; color: var(--mute); margin: 22px 0 0; font-weight: 400; }
.pt-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .86rem; color: var(--mute); margin: 26px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pt-featimg { margin: 36px 0 0; } .pt-featimg img { width: 100%; height: auto; border-radius: 22px; display: block; }
.pt-prose { margin-top: 40px; font-size: 1.1rem; line-height: 1.8; color: var(--ink); }
.pt-prose p { margin: 0 0 22px; color: var(--ink); }
.pt-prose h2 { font-size: 1.8rem; font-weight: 300; letter-spacing: -.03em; line-height: 1.2; margin: 56px 0 16px; }
.pt-prose h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; margin: 38px 0 12px; }
.pt-prose ul, .pt-prose ol { margin: 0 0 22px; padding-left: 1.4rem; } .pt-prose li { margin: 8px 0; }
.pt-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mute); } .pt-prose a:hover { text-decoration-color: var(--ink); }
.pt-prose blockquote { margin: 30px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--ink); font-size: 1.25rem; font-weight: 300; line-height: 1.55; }
.pt-prose img { max-width: 100%; height: auto; border-radius: 18px; }
.pt-prose code { background: var(--stone); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.pt-prose pre { background: var(--stone); padding: 18px 20px; border-radius: 16px; overflow-x: auto; font-size: .92rem; }
.pt-prose table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: .96rem; } .pt-prose th, .pt-prose td { text-align: left; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); } .pt-prose th { font-weight: 500; }
.pt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 40px; }
.pt-tag { font-size: .78rem; padding: 5px 12px; border-radius: 999px; background: var(--stone); color: var(--mute); }
.pt-cta { margin-top: 56px; padding: 44px 36px; border-radius: 28px; background: var(--ink); color: var(--paper); text-align: center; }
.pt-cta h2 { color: var(--paper) !important; font-size: 1.8rem; font-weight: 300; } .pt-cta p { color: rgba(253, 252, 252, .72); margin: 12px auto 24px; max-width: 460px; }
.mk-site .pt-cta .pt-btn { background: var(--paper); border-color: var(--paper); color: var(--ink); } .mk-site .pt-cta .pt-btn:hover { background: var(--stone); border-color: var(--stone); }
.pt-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pt-pn { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); } .pt-pn:hover { border-color: var(--ink); }
.pt-pn small { color: var(--mute); font-size: .8rem; } .pt-pn strong { font-weight: 400; letter-spacing: -.01em; } .pt-pn.is-next { text-align: right; grid-column: 2; }
.pt-related { padding: 72px 0 112px; background: var(--stone); } .pt-related h2 { font-size: 2rem; font-weight: 300; letter-spacing: -.03em; margin-bottom: 36px; }
.pt-related .pt-thumb { background: var(--paper); }

/* 404 */
.pt-notfound { padding: 140px 0 120px; text-align: center; }
.pt-code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 300; letter-spacing: -.05em; line-height: 1; color: var(--ink); margin: 0 0 8px; }
.pt-notfound p { color: var(--mute); margin: 0 0 28px; font-size: 1.1rem; }

/* pages built from blocks (legal pages and other CMS pages): the stored inline styles are overridden so they match */
.mk-site .pb-block { background: var(--paper) !important; color: var(--ink) !important; }
.mk-site .pb-text { padding: 56px 0 96px !important; }
.mk-site .pb-text .container { max-width: 1200px; padding: 0 28px; }
.mk-site .pb-text h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem) !important; font-weight: 300 !important; letter-spacing: -.035em; line-height: 1.1 !important; margin-bottom: 28px !important; }
.mk-site .page-content { font-size: 1.04rem !important; line-height: 1.75 !important; color: var(--mute); }
.mk-site .page-content p, .mk-site .page-content li { color: var(--mute); }
.mk-site .page-content strong, .mk-site .page-content em { color: var(--ink); font-weight: 500; } .mk-site .page-content em { font-weight: 400; }
.mk-site .page-content h2 { font-size: 1.6rem; font-weight: 300; letter-spacing: -.025em; color: var(--ink); margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); line-height: 1.25; }
.mk-site .page-content h3 { font-size: 1.1rem; font-weight: 500; color: var(--ink); margin: 28px 0 8px; }
.mk-site .page-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mute); }
.mk-site .page-content ul, .mk-site .page-content ol { padding-left: 1.4rem; margin: 0 0 18px; }
.mk-site .pb-hero { background: var(--paper) !important; color: var(--ink) !important; }

@media (max-width: 1024px) { .pt-grid { grid-template-columns: repeat(2, 1fr); } .pt-featured { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 768px) {
  .pt-main { padding-top: 60px; } .pt-wrap, .mk-site .pb-text .container { padding: 0 20px; } .pt-hero { padding: 52px 0 28px; }
  .pt-grid { grid-template-columns: 1fr; gap: 36px; } .pt-article { padding-top: 36px; } .pt-prose { font-size: 1.04rem; } .pt-prevnext { grid-template-columns: 1fr; } .pt-pn.is-next { grid-column: 1; text-align: left; }
  .mk-site .pb-text { padding: 36px 0 72px !important; } .pt-related { padding: 56px 0 76px; } .pt-cta { padding: 34px 22px; }
}

/* placeholder thumbnail for a post without a featured image: ink bars, one accent bar in three */
.mk-site .pt-bar { fill: var(--ink); opacity: .22; }
.mk-site .pt-bar-a { fill: var(--accent); opacity: .85; }
