/* v1.0.9: sidebar as one sticky rail; closing CTA, author and related articles
   match Claude wireframe structure, but not its color palette. */
@media (min-width:981px) {
  body.single-post .article-layout{align-items:stretch}
  body.single-post .article-sidebar{position:relative;top:auto;align-self:stretch;display:block;min-width:0}
  body.single-post .sidebar-sticky-stack{position:sticky;top:calc(96px + var(--wp-admin--admin-bar--height,0px));display:flex;flex-direction:column;gap:16px;max-height:calc(100dvh - 112px - var(--wp-admin--admin-bar--height,0px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;z-index:2}
  body.single-post .sidebar-sticky-stack .sidebar-card{flex:none;margin:0}
  body.single-post .sidebar-sticky-stack .sidebar-toc-wrap{position:static;top:auto;overflow:visible;max-height:none;align-self:auto;z-index:auto;padding:0}
  body.single-post .sidebar-extra-links{margin-top:18px}
}
@media (max-width:980px) {
  body.single-post .sidebar-sticky-stack{display:none}
  body.single-post .article-sidebar{display:block;position:static;max-width:100%}
  body.single-post .article-sidebar .sidebar-extra-links{margin:0}
}
/* Closing CTA: full-width heading, document and list alongside embedded form. */
body.single-post .article-end.article-form-cta{display:block;margin:48px 0 0;padding:0;border:1px solid #d5d5d5;border-radius:10px;background:#f1f1f1;overflow:hidden;color:#292929}
body.single-post .article-form-cta__heading{padding:28px 30px 0}
body.single-post .article-form-cta__eyebrow{font-size:13px;color:#626262;margin:0 0 7px;font-weight:700}
body.single-post .article-form-cta__heading h2{font-size:clamp(20px,2.1vw,25px);line-height:1.5;color:#292929;padding:0;margin:0;border:0;background:none}
body.single-post .article-form-cta__columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:start;gap:23px;padding:22px 28px 28px}
body.single-post .article-form-cta__intro{display:flex;flex-direction:column;gap:0;min-width:0}
body.single-post .article-form-cta__document{border:1px solid #d5d5d5;background:#fff;border-radius:6px;margin:0 0 16px;overflow:hidden}
body.single-post .article-form-cta__document img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
body.single-post .article-form-cta__intro h3{font-size:16px;font-weight:700;margin:0 0 9px;padding:0;border:0;color:#292929}
body.single-post .article-form-cta__intro ul{list-style:disc;padding-left:20px;margin:0 0 12px;font-size:14px;line-height:1.8}
body.single-post .article-form-cta__intro li{margin:0 0 5px}
body.single-post .article-form-cta__intro .article-form-cta__note{font-size:12px;color:#606060;line-height:1.75;margin:0}
body.single-post .article-form-cta__form{padding:22px;border:1px solid #d6d6d6;border-radius:8px;background:#fff;min-width:0}
body.single-post .article-form-cta__form h3{font-size:17px;margin:0 0 7px;padding:0;border:0;color:#292929;line-height:1.55}
body.single-post .article-form-cta__form-lead{font-size:13px;color:#555;line-height:1.7;margin:0 0 15px}
body.single-post .article-form-cta__form p.article-form-cta__privacy,
body.single-post .article-form-cta__form p.article-form-cta__fallback{font-size:12px;line-height:1.75;color:#666;margin:12px 0 0}
body.single-post .article-form-cta__resources{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;border-top:1px solid #d5d5d5;padding:14px 28px 16px;font-size:13px}
body.single-post .article-form-cta__resources span{color:#686868}
body.single-post .article-form-cta__resources a{font-weight:600;text-decoration:underline;color:#383838}
/* Author panel follows the CTA, not an invented profile in the editor. */
body.single-post .article-author-card{margin:24px 0 0;padding:22px 24px;border:1px solid #dadada;border-radius:9px;background:#fff;display:flex;gap:20px;align-items:center}
body.single-post .article-author-card__portrait{width:88px;height:88px;flex:0 0 88px;border-radius:50%;overflow:hidden;background:#ececec;display:grid;place-items:center}
body.single-post .article-author-card__avatar{width:88px;height:88px;object-fit:cover;border-radius:50%}
body.single-post .article-author-card__body{min-width:0;flex:1}
body.single-post .article-author-card__label{font-size:12px;font-weight:700;color:#666;margin:0 0 3px}
body.single-post .article-author-card__name{font-size:17px;line-height:1.5;font-weight:700;margin:0 0 3px}
body.single-post .article-author-card__bio{font-size:13px;color:#555;line-height:1.7;margin:0 0 6px}
body.single-post .article-author-card__link{font-size:13px;text-decoration:underline;font-weight:600}
/* Related articles: three cards PC, mobile horizontal media rows. */
body.single-post .article-related{margin:32px 0 10px}
body.single-post .article-related h2{font-size:20px;margin:0 0 17px;line-height:1.5;border:0;padding:0;background:none;color:#292929}
body.single-post .article-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.single-post .article-related__card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #dadada;border-radius:8px;background:#fff;color:#333;text-decoration:none;transition:border-color .15s}
body.single-post .article-related__card:hover{border-color:#777}
body.single-post .article-related__image{aspect-ratio:16/9;background:#e5e5e5;overflow:hidden;display:flex;align-items:center;justify-content:center}
body.single-post .article-related__image img{width:100%;height:100%;object-fit:cover;display:block}
body.single-post .article-related__image-fallback{font-size:12px;font-weight:700;color:#777}
body.single-post .article-related__content{padding:12px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
body.single-post .article-related__title{font-size:14px;font-weight:700;line-height:1.55;overflow-wrap:anywhere}
body.single-post .article-related__more{font-size:12px;color:#666;margin-top:auto;text-decoration:underline}
@media(max-width:720px){
 body.single-post .article-form-cta__heading{padding:22px 19px 0}
 body.single-post .article-form-cta__heading h2{font-size:20px}
 body.single-post .article-form-cta__desktop-break{display:none}
 body.single-post .article-form-cta__columns{grid-template-columns:minmax(0,1fr);gap:17px;padding:18px 17px 20px}
 body.single-post .article-form-cta__form{padding:17px}
 body.single-post .article-form-cta__resources{padding:13px 17px;gap:9px 15px}
 body.single-post .article-author-card{padding:18px 16px;gap:13px;align-items:flex-start}
 body.single-post .article-author-card__portrait,body.single-post .article-author-card__avatar{width:58px;height:58px}
 body.single-post .article-author-card__portrait{flex-basis:58px}
 body.single-post .article-author-card__name{font-size:16px}
 body.single-post .article-related h2{font-size:18px}
 body.single-post .article-related__grid{grid-template-columns:1fr;gap:10px}
 body.single-post .article-related__card{display:grid;grid-template-columns:108px minmax(0,1fr);gap:0;min-height:84px}
 body.single-post .article-related__image{height:100%;aspect-ratio:auto;min-height:84px}
 body.single-post .article-related__content{padding:10px 12px}
 body.single-post .article-related__title{font-size:13px}
}
