/* Article detail (post.hbs) */
.post-head,.post-body{--ov:clamp(36px,5vw,72px)}
.post-head .tag{display:inline-block;text-decoration:none;color:var(--ink);transition:background-color .3s}
.post-head a.tag:hover{background:var(--cream)}
.post-head h1{font-size:clamp(34px,4.8vw,68px);overflow-wrap:anywhere;hyphens:auto}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin-top:clamp(24px,3vw,36px)}
.post-meta .meta{color:var(--ink-2);display:flex;align-items:center}
.post-meta .dot{width:4px;height:4px;border-radius:50%;background:currentColor;margin:0 12px}
.post-authors{display:flex;flex-wrap:wrap;gap:10px}
.post-authors a{display:inline-flex;align-items:center;gap:10px;padding:5px 16px 5px 5px;border-radius:999px;background:rgba(255,255,255,.7);text-decoration:none;font-family:var(--ff-h);font-weight:600;font-size:14px;transition:background-color .3s}
.post-authors a:hover{background:#fff}
.post-authors img,.post-authors .av{width:36px;height:36px;border-radius:50%;object-fit:cover;background:var(--cream);flex-shrink:0;display:grid;place-items:center}
.post-authors .av svg{width:20px;height:20px}

.post-body.sheet{padding-top:calc(var(--sec) * .6 + var(--sheet) * .4);overflow-x:clip}
.post-cover{margin:0 auto clamp(40px,5vw,72px);max-width:1100px}
.post-cover img{display:block;width:auto;max-width:100%;height:auto;max-height:min(720px,80vh);margin:0 auto;border-radius:40px 40px 0 40px}
.post-cover figcaption{max-width:720px;margin:14px auto 0;font-size:14px;color:var(--mute);text-align:center}
.post-cover figcaption a{text-decoration:underline}

/* footer of the article */
.post-foot,.post-comments{max-width:720px;margin:0 auto}
.post-foot{margin-top:clamp(48px,6vw,80px);display:flex;flex-direction:column;gap:clamp(32px,4vw,48px)}
.post-tags{display:flex;flex-wrap:wrap;gap:8px}
.post-tags .tag{display:inline-block;text-decoration:none;color:var(--ink);background:var(--cream);transition:background-color .3s}
.post-tags .tag:hover{background:var(--yellow)}
.share-title{font-family:var(--ff-h);font-weight:700;font-size:clamp(20px,2vw,24px);letter-spacing:-.02em;margin-bottom:16px}
.share-links{display:flex;flex-wrap:wrap;gap:10px}
.share-links .btn{gap:.6em;background-color:transparent}
.share-links .btn:hover,.share-links .btn:focus-visible{background-color:var(--yellow);border-color:var(--ink)}
.share-links svg{width:18px;height:18px;flex-shrink:0}
.share-links svg path{fill:currentColor}
.share-note{min-height:1.6em;margin-top:12px;font-size:14px;color:var(--mute)}
.author-card{display:flex;align-items:center;gap:20px;padding:clamp(18px,2.5vw,28px);background:var(--cream);border-radius:32px 32px 0 32px}
.author-card+.author-card{margin-top:14px}
.author-card .ph{flex:0 0 clamp(64px,8vw,92px);aspect-ratio:1;border-radius:50% 50% 0 50%;overflow:hidden;background:var(--yellow);display:grid;place-items:center}
.author-card .ph img{width:100%;height:100%;object-fit:cover}
.author-card .av svg{width:50%;height:auto;display:block;margin:auto}
.author-card h3{font-size:20px;letter-spacing:-.01em}
.author-card h3 a{text-decoration:none}
.author-card p{margin-top:6px;font-size:15px;color:var(--ink-2)}
.post-comments{margin-top:clamp(48px,6vw,80px)}
.related{overflow:clip}

/* Koenig cards */
.prose .kg-card{margin-top:2em}
.prose .kg-image-card img,.prose .kg-gallery-image img{width:100%}
.prose .kg-card figcaption{padding:0 8px}
.prose .kg-gallery-container{gap:10px}
.prose .kg-gallery-row{gap:10px}
.prose .kg-gallery-image{margin:0}
.prose .kg-gallery-image img{border-radius:20px 20px 0 20px}
.prose .kg-gallery-row:not(:first-of-type){margin-top:10px}
.prose .kg-gallery-image:not(:first-of-type){margin-left:0}
.prose .kg-bookmark-card{width:100%}
.prose a.kg-bookmark-container{display:flex;text-decoration:none;color:var(--ink);background:var(--cream);border:0;border-radius:28px 28px 0 28px;overflow:hidden;transition:background-color .3s}
.prose a.kg-bookmark-container:hover{background:var(--yellow-3)}
.prose .kg-bookmark-content{padding:22px 24px;min-width:0}
.prose .kg-bookmark-title{font-family:var(--ff-h);font-weight:700;font-size:18px;line-height:1.3;color:var(--ink)}
.prose .kg-bookmark-description{margin-top:8px;font-size:15px;line-height:1.5;color:var(--ink-2);max-height:none}
.prose .kg-bookmark-metadata{margin-top:14px;font-size:13px;color:var(--mute);flex-wrap:wrap}
.prose .kg-bookmark-icon{width:20px;height:20px;border-radius:4px}
.prose .kg-bookmark-thumbnail img{border-radius:0}
.prose .kg-callout-card{border-radius:28px 28px 0 28px;padding:22px 26px}
.prose .kg-callout-card-grey{background:var(--cream)}
.prose .kg-callout-card-yellow{background:var(--yellow-3)}
.prose .kg-callout-card-blue{background:var(--blue-xl)}
.prose .kg-callout-card-green{background:var(--teal-xl)}
.prose .kg-callout-card-red{background:var(--coral-xl)}
.prose .kg-callout-text{font-size:1em;line-height:1.55;color:var(--ink)}
.prose .kg-toggle-card{background:var(--cream);border:0;border-radius:24px 24px 0 24px;padding:18px 24px}
.prose .kg-toggle-heading-text{font-family:var(--ff-h);font-weight:700;font-size:1.05em;letter-spacing:-.01em;margin:0;color:var(--ink)}
.prose .kg-toggle-content{margin-top:10px;color:var(--ink-2)}
.prose .kg-toggle-content>*+*{margin-top:.8em}
.prose .kg-file-card-container{border:0;border-radius:24px 24px 0 24px;background:var(--cream);color:var(--ink);text-decoration:none}
.prose .kg-file-card-container:hover{background:var(--yellow-3)}
.prose .kg-file-card-title{font-family:var(--ff-h);font-weight:700;color:var(--ink)}
.prose .kg-btn,.prose .kg-button-card a.kg-btn{display:inline-flex;align-items:center;justify-content:center;padding:16px 26px;border-radius:var(--bub);background:var(--ink);color:#fff;font-family:var(--ff-h);font-weight:600;font-size:16px;line-height:1.2;text-decoration:none;height:auto;transition:transform .2s var(--ease)}
.prose .kg-btn{box-shadow:0 0 0 0 var(--blue);transition:transform .32s cubic-bezier(.33,1,.68,1),box-shadow .32s cubic-bezier(.33,1,.68,1)}
.prose .kg-btn:hover{transform:translate3d(0,-3px,0);box-shadow:0 4px 0 0 var(--blue);color:#fff}
.prose .kg-header-card{border-radius:36px 36px 0 36px;overflow:hidden}
.prose .kg-header-card h2,.prose .kg-header-card h3{margin-top:0}
.prose .kg-embed-card{display:flex;flex-direction:column;align-items:center}
.prose .kg-embed-card iframe{max-width:100%}
.prose .kg-video-card video{width:100%}
.prose .kg-blockquote-alt{font-family:var(--ff-h);font-weight:700;font-size:clamp(22px,2.4vw,30px);line-height:1.25;border:0;padding:0;text-align:left;color:var(--ink)}
.prose .kg-width-wide img,.prose .kg-width-full img{width:100%}
.prose .kg-width-wide.kg-gallery-card,.prose .kg-width-full.kg-gallery-card{max-width:100%}
.prose .kg-product-card a.kg-product-card-button{border-radius:var(--bub)}
.prose .kg-audio-card,.prose .kg-product-card-container{border-radius:24px 24px 0 24px}
.prose .kg-card .kg-card{margin-top:0}

@media (max-width:960px){
  .author-card{flex-direction:row}
}
@media (max-width:640px){
  .post-cover img{border-radius:28px 28px 0 28px}
  .share-links .btn{flex:1 1 calc(50% - 10px)}
  .post-meta{gap:12px 18px}
  .author-card{align-items:flex-start}
  .prose .kg-bookmark-container{flex-direction:column-reverse}
  .prose .kg-bookmark-thumbnail{min-height:160px}
  .prose .kg-bookmark-content{padding:18px 20px}
}
@media (max-width:400px){
  .post-head h1{font-size:30px}
  .share-links .btn{flex-basis:100%}
}
