/* Moving24 blog (generated by blog.py): index cards and article reading layout.
   Every rule is scoped to blog-only classes; site-wide styles stay untouched. */

/* ---------- hero (index + articles) ---------- */
.hero .m24-lead{color:#fff;font-size:clamp(17px,calc(1.1vw + 12px),20px);line-height:1.6;margin-top:16px;max-width:680px}
.hero .m24-lead a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.m24-byline{color:rgba(255,255,255,.82);font-size:15px;line-height:1.5;margin-top:14px}
/* Article hero shares the left edge and width of the reading column below it. */
.hero--post .wrap{width:100%;max-width:760px;padding-left:24px;padding-right:24px}
/* Index hero shares the left edge of the card grid. */
.hero--blog .wrap{width:100%;max-width:1240px;padding-left:24px;padding-right:24px}
.hero--post h1{font-size:clamp(32px,4.2vw,50px);max-width:none}

/* ---------- article column: ~70 characters per line ---------- */
.m24-post{max-width:760px}
.m24-post p,.m24-post li{font-size:18px;line-height:1.7;color:var(--body-text)}
.m24-post p{margin:0 0 16px}
.m24-post ul,.m24-post ol{margin:0 0 22px;padding-left:24px}
.m24-post li{margin:0 0 8px;padding-left:2px}
.m24-post li::marker{color:var(--accent)}
.m24-post a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.m24-post a:hover{color:var(--accent-deep)}
.m24-post h2.big{font-size:clamp(24px,2.6vw,30px);line-height:1.25;letter-spacing:-.01em;margin:48px 0 16px;max-width:none;scroll-margin-top:110px}
.m24-post h3{font-size:20px;line-height:1.35;margin:28px 0 10px}

/* table of contents */
.article-toc{margin:0 0 36px;padding:22px 26px 14px;background:#edf3fb;border:1px solid #dae5f3;border-radius:16px}
.m24-post .article-toc-title{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#102742}
.m24-post .article-toc ol{margin:0;padding-left:22px}
.m24-post .article-toc li{font-size:16px;line-height:1.5;margin:0 0 8px}
.m24-post .article-toc a{text-decoration:none}
.m24-post .article-toc a:hover{text-decoration:underline}

/* tables scroll sideways inside their own wrapper, never the page */
.m24-post .tbl{margin:22px 0 10px;border:1px solid #dce5f0;border-radius:14px;overflow-x:auto;background:#fff;-webkit-overflow-scrolling:touch}
.m24-post .tbl:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.m24-post table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.5}
.m24-post th,.m24-post td{text-align:left;vertical-align:top;padding:12px 16px;border-bottom:1px solid #e3eaf2;overflow-wrap:break-word}
.m24-post th{background:#edf3fb;font-weight:700;color:#102742}
.m24-post td:first-child{font-weight:600}
.m24-post .tbl:not(.tbl--wide) th:first-child{width:34%}
.m24-post tbody tr:last-child td{border-bottom:0}
.m24-post .tbl--wide table{min-width:34em}
.m24-post .tbl--wide{background:linear-gradient(90deg,#fff 30%,#fff0) 0 0/28px 100% no-repeat local,linear-gradient(270deg,#fff 30%,#fff0) 100% 0/28px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,#10274233,#10274200) 0 0/12px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,#10274233,#10274200) 100% 0/12px 100% no-repeat scroll,#fff}
.m24-post .src{font-size:14px;line-height:1.55;color:var(--body-text-mute);margin:0 0 24px}

/* in-article photo: landscape crop, full photo and caption open in the site viewer */
.m24-figure{margin:30px 0}
.m24-figure picture,.m24-figure .m24-photo-button{display:block;border-radius:16px;overflow:hidden}
.m24-figure img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:#e6edf5}
.m24-figure .m24-photo-button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* call-out, topic links, related guides */
.m24-post .callout{margin:32px 0;padding:20px 22px;background:#edf3fb;border:1px solid #dae5f3;border-left:4px solid var(--accent);border-radius:14px}
.m24-post .callout p{margin:0 0 10px;font-size:17px}
.m24-post .callout .callout-title{font-weight:700;color:#102742}
.m24-post .callout .btn{margin-top:6px;text-decoration:none}
.m24-post .article-services{margin:32px 0;padding:18px 22px;background:#f4f7fb;border-left:4px solid var(--accent-line);border-radius:0 14px 14px 0}
.m24-post .article-services p{margin:0;font-size:17px;line-height:1.65;color:var(--body-text-dim)}
.m24-related{margin-top:44px;border-top:1px solid var(--line)}
.m24-post .m24-related h2.big{margin-top:36px}
.m24-related ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.m24-post .m24-related li{position:relative;margin:0;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:14px;transition:border-color .2s}
.m24-post .m24-related li:hover{border-color:var(--accent-line)}
.m24-post .m24-related a{font-size:17px;font-weight:700;line-height:1.4;color:var(--body-text);text-decoration:none}
.m24-post .m24-related a::after{content:"";position:absolute;inset:0;border-radius:14px}
.m24-post .m24-related li:hover a{color:var(--accent)}
.m24-related span{display:block;margin-top:4px;font-size:15px;line-height:1.5;color:var(--body-text-mute)}

/* ---------- blog index cards ---------- */
.m24-index{max-width:1240px}
.m24-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;list-style:none;margin:0;padding:0}
.m24-card{position:relative;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 8px 28px rgba(16,39,66,.06);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.m24-card:hover{transform:translateY(-3px);border-color:var(--accent-line);box-shadow:0 16px 40px rgba(16,39,66,.12)}
.m24-card picture{display:block}
.m24-card img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;background:#e6edf5}
.m24-card-copy{display:flex;flex-direction:column;flex:1;padding:22px 24px 24px}
.m24-card h2{margin:0 0 10px;font-size:21px;line-height:1.3;font-weight:700;letter-spacing:-.01em;color:var(--body-text)}
.m24-card h2 a{color:inherit;text-decoration:none}
.m24-card h2 a::after{content:"";position:absolute;inset:0;z-index:1}
.m24-card h2 a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@supports selector(:has(a)){.m24-card h2 a:focus-visible{outline:none}.m24-card:has(a:focus-visible){outline:3px solid var(--accent);outline-offset:3px}}
.m24-card p{margin:0;font-size:16px;line-height:1.6;color:var(--body-text-dim)}
.m24-read{margin-top:auto;padding-top:18px;font-size:15px;font-weight:700;color:var(--accent)}
.m24-card:hover .m24-read{text-decoration:underline;text-underline-offset:3px}

@media (prefers-reduced-motion:reduce){.m24-card,.m24-post .m24-related li{transition:none}.m24-card:hover{transform:none}}
@media (max-width:1000px){.m24-posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}}
@media (max-width:640px){
  .m24-posts{grid-template-columns:1fr;gap:18px}
  .m24-card-copy{padding:18px 20px 20px}
  .m24-card h2{font-size:19px}
  .m24-card img{aspect-ratio:16/9}
}
@media (max-width:600px){
  .m24-post p,.m24-post li{font-size:17px}
  .m24-post h2.big{margin-top:40px}
  .article-toc{padding:18px 18px 10px}
  .m24-figure img{aspect-ratio:4/3}
  .m24-post table{font-size:15px}
  .m24-post th,.m24-post td{padding:10px 12px;-webkit-hyphens:auto;hyphens:auto}
  .m24-post .callout,.m24-post .article-services{padding:16px 18px}
}
