/* Post page (Plan 14, the approved mockup's case page): the text exactly as posted, a reading-progress line, Save and
   Share beside the date, and a sidebar with courses and posts on the same topic. */
.post-page{container-type:inline-size}
.reading-progress{position:fixed;top:0;left:0;right:0;z-index:60;height:3px;background:var(--accent);transform:scaleX(0);transform-origin:left center;pointer-events:none}
.post-page .post{max-width:none;gap:0}
.post__head{display:grid;gap:clamp(24px,4cqi,48px);grid-template-columns:minmax(0,1fr);align-items:center;padding-block:clamp(12px,3cqi,32px) clamp(20px,3cqi,32px)}
@container (min-width:900px){.post__head:not(.post__head--solo){grid-template-columns:minmax(0,7fr) minmax(0,5fr)}}
/* every topic of the post, each a link to its page (owner 2026-11-04) */
.post__topics{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 2px}
.post__topics a{display:inline-flex;align-items:center;min-height:36px;max-width:100%;padding:6px 12px;border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent-text);font-size:13.5px;font-weight:600;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (hover:hover) and (pointer:fine){.post__topics a:hover{background:color-mix(in srgb,var(--accent) 16%,var(--surface))}}
.post__head h1{font-size:clamp(28px,4.2cqi,46px);font-weight:600;line-height:1.12;letter-spacing:-.02em;margin-top:14px;overflow-wrap:anywhere}
.post__row{margin-top:20px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.post__row .post__meta{margin:0 8px 0 0;font-size:14px;font-weight:600;color:var(--muted)}
.post__row .btn{min-height:44px;padding:8px 14px;font-size:14px}
.post__row .btn svg,.post-end .btn svg{width:18px;height:18px}
@container (max-width:600px){
  .post__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .post__row .post__meta{grid-column:1 / -1}
  .post__row .btn,.post__row .inline-form,.post__row .inline-form .btn{width:100%;min-height:46px}
}
.post__cover{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-lg)}
.post-read{display:grid;gap:clamp(24px,4cqi,56px);grid-template-columns:minmax(0,1fr);padding-block:clamp(16px,3cqi,32px) clamp(40px,6cqi,72px)}
@container (min-width:980px){.post-read{grid-template-columns:minmax(0,680px) minmax(0,1fr)}}
.post-page .prose{font-size:18.5px;line-height:1.75;min-width:0}
/* Share and Save where the reader finishes (owner 2026-11-10): a quiet row under the last paragraph. */
.post-main{min-width:0}
.post-end{margin-top:clamp(28px,4cqi,40px);padding:20px 22px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px}
.post-end__ask{margin:0;font-weight:600;font-size:17px;line-height:1.4}
.post-end__actions{display:flex;flex-wrap:wrap;gap:10px}
.post-end .btn{min-height:44px}
@container (max-width:600px){
  .post-end{flex-direction:column;align-items:stretch;gap:14px;padding:18px}
  .post-end__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .post-end__actions>*,.post-end__actions .btn{width:100%;justify-content:center}
}
.post-page .prose h2{font-size:26px;font-weight:600;line-height:1.25;letter-spacing:-.01em}
@container (max-width:600px){.post-page .prose{font-size:17.5px}}
.post-aside{display:grid;gap:16px;align-content:start;position:sticky;top:110px;align-self:start}
@container (max-width:979px){.post-aside{position:static}}
.post-box{border-radius:var(--radius-lg);padding:22px;display:grid;gap:12px;background:var(--surface);border:1px solid var(--border)}
.post-box h2{font-size:16px;font-weight:600}
.post-box__all{color:var(--accent-text);font-weight:600;font-size:15px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.post-course{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--border);text-decoration:none;color:var(--text)}
.post-course:first-child{border-top:0;padding-top:0}
.post-course img,.post-course__ph{width:56px;height:56px;border-radius:var(--radius-sm);object-fit:cover}
.post-course__ph{display:grid;place-items:center;background:var(--mist);color:var(--mist-ink)}.post-course__ph svg{width:26px;height:26px}
.post-course b{display:block;font-weight:600;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.post-course small{font-size:13px;color:var(--muted)}
.post-course:hover b{color:var(--accent-text)}
.post-related a{display:grid;gap:2px;padding:12px 0;border-top:1px solid var(--border);font-weight:500;line-height:1.4;font-size:15px;text-decoration:none;color:var(--text);overflow-wrap:anywhere}
.post-related a:first-child{border-top:0;padding-top:0}
.post-related small{font-size:13px;color:var(--muted);font-weight:400}
.post-related a:hover{color:var(--accent-text)}
/* "Link copied" note after Share on devices without a share sheet */
.share-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:70;padding:12px 18px;border-radius:var(--radius-sm);background:var(--text);color:var(--bg);font-weight:600;font-size:14.5px;box-shadow:var(--shadow-float);
  transition:opacity .2s var(--ease-out),transform .2s var(--ease-out)}
/* "Link copied" rises from the bottom edge and leaves the same way */
@starting-style{.share-toast{opacity:0;transform:translate(-50%,8px)}}
.share-toast.is-leaving{opacity:0;transform:translate(-50%,8px)}
