/* 2026-08-08 blog engine styles. Loaded only on /blog and /blog/<slug>.
   Palette taken from css/style.css: #1259A1 primary, #333 text, #757575 muted,
   #e7e7e7 borders, #f3f9ff tint. Font (Herac) is inherited from body. */

/* ---------- index ---------- */
.blog__index { margin-top: 40px; }
.blog__empty { font-size: 22px; color: #757575; padding: 40px 0 60px; text-align: center; }
.blog__item-date { padding: 0 16px 6px; font-size: 15px; color: #757575; letter-spacing: .3px; }
.blog__item-title { color: #333; }

.blog__pager { margin: 10px 0 60px; }
.blog__pager ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; }
.blog__pager a,
.blog__pager .is-current {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid #e7e7e7; border-radius: 10px;
  font-size: 18px; color: #1259A1; background: #fff; transition: all .2s;
}
.blog__pager a:hover { background: #f3f9ff; border-color: #1259A1; }
.blog__pager .is-current { background: #1259A1; border-color: #1259A1; color: #fff; }

/* ---------- article shell ---------- */
.post .container, .post__related, .post__back { max-width: 1200px; }
.post__hero { margin-top: 10px; }
.post__hero img {
  width: 100%; height: auto; max-height: 460px;
  object-fit: cover; border-radius: 15px;
}
.post__head { margin-top: 34px; }
.post__title { font-size: 46px; line-height: 1.15; font-weight: 800; color: #333; }
.post__meta { margin-top: 16px; font-size: 16px; color: #757575; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post__meta-sep { color: #adadad; }

.post__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px; align-items: start; margin-top: 40px;
}
/* the TOC comes first in the DOM (so it reads before the body on mobile);
   on desktop it is placed into the right-hand column */
.post__body { grid-column: 1; grid-row: 1; }
.post__rail { grid-column: 2; grid-row: 1; }
.post__grid--full { grid-template-columns: minmax(0, 1fr); }

/* ---------- table of contents ---------- */
.post__rail { position: sticky; top: 24px; }
.post__toc { border-left: 3px solid #1259A1; padding: 4px 0 4px 18px; }
.post__toc-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 14px; }
.post__toc ul { list-style: none; }
.post__toc li { margin-bottom: 10px; line-height: 1.35; }
.post__toc a { font-size: 16px; color: #757575; transition: color .2s; }
.post__toc a:hover { color: #1259A1; }
.post__toc-l3 { padding-left: 16px; }
.post__toc-l3 a { font-size: 15px; }

/* ---------- article body ---------- */
.post__body { font-size: 19px; line-height: 1.7; color: #333; min-width: 0; }
.post__body p { margin-bottom: 24px; }
.post__body h2, .post__body h3, .post__body h4 { color: #333; font-weight: 800; scroll-margin-top: 24px; }
.post__body h2 { font-size: 34px; line-height: 1.25; margin: 48px 0 20px; }
.post__body h3 { font-size: 26px; line-height: 1.3; margin: 36px 0 16px; }
.post__body h4 { font-size: 21px; margin: 28px 0 12px; }
.post__body a { color: #1259A1; text-decoration: underline; }
.post__body a:hover { color: #333; }
.post__body strong, .post__body b { font-weight: 600; }
.post__body em, .post__body i { font-style: italic; }
.post__body ul, .post__body ol { margin: 0 0 24px 0; padding-left: 26px; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { margin-bottom: 10px; }
.post__body li::marker { color: #1259A1; }
.post__body img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0 24px; }
.post__body hr { border: 0; border-top: 1px solid #e7e7e7; margin: 40px 0; }
.post__body blockquote {
  margin: 0 0 28px; padding: 20px 24px;
  background: #f3f9ff; border-left: 4px solid #1259A1; border-radius: 0 10px 10px 0;
}
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body code {
  background: #f2f2f2; border-radius: 5px; padding: 2px 6px;
  font-family: Menlo, Consolas, monospace; font-size: .88em;
}
.post__body pre { background: #f2f2f2; border-radius: 10px; padding: 18px; overflow-x: auto; margin-bottom: 24px; }
.post__body pre code { background: none; padding: 0; }
.post__body table {
  display: block; overflow-x: auto;          /* wide tables scroll inside themselves, never the page */
  width: max-content; min-width: 100%; max-width: 100%;
  margin-bottom: 28px; border: 1px solid #e7e7e7; border-radius: 10px; border-collapse: collapse;
}
.post__body th, .post__body td { padding: 12px 16px; border-bottom: 1px solid #e7e7e7; text-align: left; font-size: 17px; }
.post__body th { background: #f3f9ff; font-weight: 600; color: #333; }
.post__body tr:last-child td { border-bottom: 0; }

/* ---------- tags / related / back ---------- */
.post__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.post__tag { background: #f3f9ff; color: #1259A1; border-radius: 20px; padding: 7px 16px; font-size: 15px; }
.post__related { margin-top: 80px; }
.post__related-title { font-size: 36px; font-weight: 600; color: #333; margin-bottom: 34px; }
.post__back { margin: 40px 0 20px; }
.post__back a { color: #1259A1; font-size: 18px; }
.post__back a:hover { color: #333; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .post__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
  .post__title { font-size: 38px; }
}
@media (max-width: 992px) {
  .index__blog { grid-template-columns: repeat(2, 1fr); }
  .post__grid { grid-template-columns: 1fr; gap: 28px; }
  .post__body, .post__rail { grid-column: auto; grid-row: auto; }
  .post__rail { position: static; }
  .post__toc { background: #f3f9ff; border-left: 3px solid #1259A1; border-radius: 0 10px 10px 0; padding: 18px 20px; }
  .post__title { font-size: 32px; }
  .post__body { font-size: 18px; }
  .post__body h2 { font-size: 28px; margin-top: 38px; }
  .post__body h3 { font-size: 22px; }
  .post__related-title { font-size: 28px; }
}
@media (max-width: 768px) {
  /* style.css hides .index__blog below 768px in favour of a slick slider we no longer render */
  .index__blog { display: grid; grid-template-columns: 1fr; }
  .blog__item-image { height: 200px; }
  .blog__item-title { font-size: 20px; padding: 0 14px; }
  .blog__item-summaru { font-size: 15px; line-height: 1.45; padding: 0 14px; }
  .blog__item-date { font-size: 13px; padding: 0 14px 4px; }
  .post__hero img { max-height: 240px; border-radius: 10px; }
  .post__head { margin-top: 22px; }
  .post__title { font-size: 26px; }
  .post__meta { font-size: 14px; }
  .post__body { font-size: 17px; }
  .post__body h2 { font-size: 24px; margin-top: 32px; }
  .post__body h3 { font-size: 20px; }
  .post__body th, .post__body td { font-size: 15px; padding: 10px 12px; }
  .post__related { margin-top: 50px; }
  .post__related-title { font-size: 24px; margin-bottom: 24px; }
}
