/* AMMO blog: posts page, categories, single post. White, lines not boxes, square corners, 3:2 photos. */
.am-blog{box-sizing:border-box;max-width:1440px;margin:0 auto;padding:32px 36px 72px;color:var(--am-ink)}
.am-blog a{text-decoration:none}
.am-crumbs{font-size:13px;color:var(--am-muted);margin-bottom:18px}
.am-crumbs a{color:var(--am-muted)}
.am-crumbs a:hover{color:var(--am-cta)}
.am-btn,.am-btn2{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:44px;padding:0 18px;font-size:14px;font-weight:600;border:0}
.am-btn{background:var(--am-cta);color:#fff}
.am-btn:hover{background:#A93A32;color:#fff}
.am-btn2{background:var(--am-fill);color:var(--am-cta)}
.am-btn2:hover{background:#E8E8E8;color:var(--am-cta)}
.am-muted{color:var(--am-muted);font-size:14px}

/* head + rubric chips */
.am-blog-head{display:flex;flex-direction:column;gap:10px;margin-bottom:22px;max-width:760px}
.am-blog-head h1{margin:0;font-size:36px;line-height:1.15;font-weight:600;letter-spacing:-.01em}
.am-blog-head p{margin:0;font-size:16px;line-height:1.55;color:var(--am-muted)}
.am-blog-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.am-blog-cats a{padding:8px 13px;background:var(--am-fill);font-size:14px;font-weight:500;color:var(--am-ink)}
.am-blog-cats a:hover{background:#E8E8E8}
.am-blog-cats a.is-active{background:var(--am-ink);color:#fff}

/* cards */
.am-bcard{display:flex;flex-direction:column;gap:14px;min-width:0}
.am-bcard__img{display:block;overflow:hidden;background:var(--am-fill)}
.am-bcard__img img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;transition:transform .3s}
.am-bcard:hover .am-bcard__img img{transform:scale(1.03)}
.am-bcard__body{display:flex;flex-direction:column;gap:8px}
.am-bcard__cat{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--am-cta)}
.am-bcard h2,.am-bcard h3{margin:0;font-size:19px;line-height:1.3;font-weight:600}
.am-bcard h2 a,.am-bcard h3 a{color:var(--am-ink)}
.am-bcard h2 a:hover,.am-bcard h3 a:hover{color:var(--am-cta)}
.am-bcard p{margin:0;font-size:14px;line-height:1.55;color:#3A3A3A;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.am-bcard__meta{font-size:13px;color:var(--am-muted)}
.am-bcard--lead{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:32px;align-items:center;padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid var(--am-line)}
.am-bcard--lead.no-img{grid-template-columns:1fr}
.am-bcard--lead h2{font-size:28px;line-height:1.2}
.am-bcard--lead p{font-size:16px;-webkit-line-clamp:5}
.am-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px}

.am-pager{display:flex;flex-wrap:wrap;gap:6px;margin-top:40px}
.am-pager .page-numbers{min-width:42px;height:42px;padding:0 10px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;background:var(--am-fill);font-size:14px;font-weight:600;color:var(--am-ink)}
.am-pager .page-numbers.current{background:var(--am-ink);color:#fff}
.am-pager a.page-numbers:hover{background:#E8E8E8}

/* call to action */
.am-blog-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 32px;margin-top:48px;padding:28px 0;border-top:1px solid var(--am-line);border-bottom:1px solid var(--am-line)}
.am-blog-cta h2{margin:0 0 6px;font-size:21px;font-weight:600}
.am-blog-cta p{margin:0;font-size:15px;line-height:1.55;color:var(--am-muted);max-width:560px}
.am-blog-cta__acts{display:flex;flex-wrap:wrap;gap:8px}

/* single post */
.am-post{max-width:760px}
.am-post__head{display:flex;flex-direction:column;gap:12px;margin-bottom:26px}
.am-post__head h1{margin:0;font-size:38px;line-height:1.15;font-weight:600;letter-spacing:-.015em}
.am-post__cover{margin:0 0 32px}
.am-post__cover img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.am-post__body{font-size:17px;line-height:1.75;color:#2A2E33}
.am-post__body>*{margin-top:0;margin-bottom:18px}
.am-post__body h2{margin:40px 0 14px;font-size:26px;line-height:1.25;font-weight:600;color:var(--am-ink);letter-spacing:-.01em}
.am-post__body h3{margin:30px 0 10px;font-size:20px;line-height:1.3;font-weight:600;color:var(--am-ink)}
.am-post__body h4{margin:24px 0 8px;font-size:17px;font-weight:600}
.am-post__body a{color:var(--am-cta);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.am-post__body a:hover{text-decoration-thickness:2px}
.am-post__body ul,.am-post__body ol{padding-left:22px}
.am-post__body li{margin-bottom:6px}
.am-post__body li::marker{color:var(--am-cta)}
.am-post__body strong{font-weight:600;color:var(--am-ink)}
.am-post__body img{display:block;max-width:100%;width:auto;height:auto;max-height:640px;margin:28px 0}
.am-post__body img.aligncenter{margin-left:auto;margin-right:auto}
.am-post__body p:has(>img:only-child){margin:0}
.am-post__body blockquote{margin:28px 0;padding:0 0 0 20px;border-left:2px solid var(--am-cta);font-size:19px;line-height:1.6;color:var(--am-ink)}
.am-post__body table{width:100%;border-collapse:collapse;font-size:15px}
.am-post__body th,.am-post__body td{border:0;border-bottom:1px solid var(--am-line);padding:10px 12px 10px 0;text-align:left;background:none}
.am-post__body figure{margin:28px 0}
.am-post__body figcaption{font-size:13px;color:var(--am-muted);margin-top:8px}
.am-blog-cta--post{margin-top:40px}
.am-post__more{margin-top:56px}
.am-post__more-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:22px}
.am-post__more-head h2{margin:0;font-size:24px;font-weight:600}
.am-post__more-head a{font-size:14px;font-weight:600;color:var(--am-cta)}

@media (max-width:1199px){.am-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:999px){.am-blog{padding:20px 16px 56px}}
@media (max-width:767px){
  .am-blog-head h1{font-size:28px}
  .am-blog-cats{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding-right:16px;scrollbar-width:none}
  .am-blog-cats a{flex:0 0 auto}
  .am-bcard--lead{grid-template-columns:1fr;gap:14px;padding-bottom:28px;margin-bottom:28px}
  .am-bcard--lead h2{font-size:23px}
  .am-blog-grid{grid-template-columns:1fr;gap:32px}
  .am-post__head h1{font-size:28px}
  .am-post__cover{margin:0 -16px 26px}
  .am-post__body{font-size:16px;line-height:1.7}
  .am-post__body h2{font-size:22px;margin-top:32px}
  .am-post__body h3{font-size:18px}
  .am-blog-cta__acts{width:100%}
  .am-blog-cta__acts a{flex:1 1 auto}
}
/* single post: 2 columns like the catalog (text + right column with ad and recent posts) */
.am-blog--single{max-width:1440px;display:flex;gap:28px;align-items:flex-start}
.am-bmain{flex:1 1 auto;min-width:0}
.am-bmain .am-post{max-width:none}
.am-bside{flex:0 0 329px;box-sizing:border-box;padding-left:28px;border-left:1px solid var(--am-line);align-self:stretch;display:flex;flex-direction:column;gap:22px}

.am-ad{display:flex;flex-direction:column;gap:6px}
.am-ad span{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--am-muted)}
.am-ad div{background:var(--am-fill)}
.am-ad--box div{width:300px;max-width:100%;height:250px}
.am-side-blog{display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--am-line);background:#fff}
.am-side-blog__head{display:flex;justify-content:space-between;align-items:baseline}
.am-side-blog h2{margin:0;font-size:17px;font-weight:600}
.am-side-blog__head a{font-size:13px;font-weight:600;color:var(--am-cta)}
.am-side-blog>a{color:var(--am-ink)}
.am-side-blog>a:hover span{color:var(--am-cta)}
.am-side-blog .is-big{display:flex;flex-direction:column;gap:8px}
.am-side-blog .is-big img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}
.am-side-blog .is-big span{font-size:15px;font-weight:600;line-height:1.35}
.am-side-blog .is-row{display:flex;gap:12px;align-items:flex-start;padding-top:12px;border-top:1px solid var(--am-line)}
.am-side-blog .is-row img{width:84px;height:56px;object-fit:cover;flex:0 0 auto}
.am-side-blog .is-row span{font-size:14px;font-weight:600;line-height:1.35}
.am-side-blog small{display:block;margin-top:4px;font-size:12px;font-weight:400;color:var(--am-muted)}
@media (max-width:1279px){.am-bside{display:none}}
/* TOC, summary, author */
.am-post__by{color:var(--am-ink);font-weight:600}
.am-post__by:hover{color:var(--am-cta)}
.am-post__body h2[id],.am-post__body h3[id]{scroll-margin-top:24px}
.am-post__tldr{margin:0 0 26px;padding:16px 18px;background:var(--am-fill)}
.am-post__tldr strong{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--am-cta);margin-bottom:6px}
.am-post__tldr p{margin:0;font-size:16px;line-height:1.6;color:var(--am-ink)}
.am-toc__list{list-style:none;margin:0;padding:0;counter-reset:t}
.am-toc__list li{counter-increment:t;margin:0}
.am-toc__list a{display:flex;gap:10px;padding:8px 0;font-size:14px;line-height:1.4;color:#3A3A3A;border-top:1px solid var(--am-line)}
.am-toc__list a::before{content:counter(t,decimal-leading-zero);flex:0 0 auto;font-size:12px;font-weight:600;color:var(--am-muted);padding-top:1px}
.am-toc__list a:hover,.am-toc__list a.is-active{color:var(--am-cta)}
.am-toc__list a.is-active{font-weight:600}
.am-toc__list a.is-active::before{color:var(--am-cta)}
.am-toc--d{display:flex;flex-direction:column;gap:10px}
.am-toc--d strong{font-size:17px;font-weight:600}
.am-toc--d .am-toc__list li:first-child a{border-top:0}
.am-toc--m{display:none;margin:0 0 26px;border-top:1px solid var(--am-line);border-bottom:1px solid var(--am-line)}
.am-toc--m summary{display:flex;align-items:center;justify-content:space-between;padding:14px 0;font-size:16px;font-weight:600;cursor:pointer;list-style:none}
.am-toc--m summary::-webkit-details-marker{display:none}
.am-toc--m[open] summary svg{transform:rotate(180deg)}
.am-toc--m .am-toc__list{padding-bottom:10px}
@media (max-width:1279px){.am-toc--m{display:block}}
.am-author{display:flex;gap:18px;align-items:flex-start;margin-top:40px;padding:24px 0;border-top:1px solid var(--am-line)}
.am-author__img{flex:0 0 72px;width:72px;height:72px;object-fit:cover}
.am-author__img--txt{display:flex;align-items:center;justify-content:center;background:var(--am-cta);color:#fff;font-size:22px;font-weight:600}
.am-author>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.am-author__lbl{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--am-muted)}
.am-author__name{font-size:18px;font-weight:600}
.am-author__job{font-size:14px;color:var(--am-muted)}
.am-author p{margin:8px 0 6px;font-size:15px;line-height:1.6;color:#3A3A3A}
.am-author a{font-size:14px;font-weight:600;color:var(--am-cta)}
.am-author+.am-blog-cta--post{margin-top:0}
.am-toc__list.is-cut .am-toc__x{display:none}
.am-toc__more{align-self:flex-start;margin:2px 0 0;padding:0;border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--am-cta);cursor:pointer}
.am-toc__more:hover{text-decoration:underline}
.am-bside .am-ad{padding-top:16px;border-top:1px solid var(--am-line)}
