/* Blog posts + blog index cards. Written by Growyo, not ported from Duda (live had 0 posts).
   Generated markup: tools/blog_posts.py. Fonts and colours are the theme's own:
   Bitter headings, Karla body, --color_3 blue, --color_4 gold. */

/* ---- post page: the article column ---- */
#dmRoot #dm .mg-post-col { width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }
#dmRoot #dm .mg-post-col > .widget-wrapper { width: 100%; }
#dmRoot #dm .mg-post { width: 100%; text-align: left; }
/* Direct children only, so the FAQ accordion keeps the site's own accordion styling. */
#dmRoot #dm .mg-post > p,
#dmRoot #dm .mg-post > ul > li,
#dmRoot #dm .mg-post > ol > li { font-size: 18px; line-height: 1.7; color: #1c1c1c; }
#dmRoot #dm .mg-post > p { margin: 0 0 1.1em; }
#dmRoot #dm .mg-post h2 { font-size: 30px; line-height: 1.25; margin: 1.6em 0 0.6em; }
#dmRoot #dm .mg-post h3 { font-size: 21px; line-height: 1.35; color: #1c1c1c; margin: 1.4em 0 0.5em; }
#dmRoot #dm .mg-post > ul,
#dmRoot #dm .mg-post > ol { margin: 0 0 1.2em; padding-left: 1.4em; }
#dmRoot #dm .mg-post > ul { list-style: disc; }
#dmRoot #dm .mg-post > ol { list-style: decimal; }
#dmRoot #dm .mg-post > ul > li,
#dmRoot #dm .mg-post > ol > li { margin: 0 0 0.45em; padding-left: 0.2em; }
#dmRoot #dm .mg-post > ul > li::marker,
#dmRoot #dm .mg-post > ol > li::marker { color: var(--color_3); font-weight: 700; }
#dmRoot #dm .mg-post > p a { color: var(--color_3); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#dmRoot #dm .mg-post > p a:hover { color: #1a3f6d; }
#dmRoot #dm .mg-post-figure { margin: 2em 0; }
#dmRoot #dm .mg-post-img { display: block; width: 100%; height: auto; border-radius: 12px; }
/* FAQ: the site's accordion (white Bitter questions, gold +, light rules) on the brand blue,
   as on the service pages, framed as a panel because the article sits on white. */
#dmRoot #dm .mg-post-faq { margin: 2.6em 0 2.2em; padding: 36px 32px 28px; background: var(--color_3); border-radius: 12px; }
#dmRoot #dm div.dmContent .mg-post-faq > h2 { color: var(--color_2); margin: 0 0 14px; }
#dmRoot #dm .mg-post .mg-post-back { margin-top: 2.4em; }
#dmRoot #dm .mg-post .mg-post-back a { text-decoration: none; }

@media (max-width: 767px) {
  #dmRoot #dm .mg-post > p,
  #dmRoot #dm .mg-post > ul > li,
  #dmRoot #dm .mg-post > ol > li { font-size: 17px; }
  #dmRoot #dm .mg-post-faq { padding: 26px 14px 18px; border-radius: 8px; }
  #dmRoot #dm .mg-post h2 { font-size: 25px; }
  #dmRoot #dm .mg-post h3 { font-size: 19px; }
  #dmRoot #dm .mg-post-figure { margin: 1.5em 0; }
  #dmRoot #dm .mg-post-img { border-radius: 8px; }
}

/* ---- blog index: post cards ---- */
#dmRoot #dm #mg-blog-cards { width: 100%; }
#dmRoot #dm .mg-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; width: 100%; }
#dmRoot #dm .mg-card { flex: 0 1 370px; display: flex; flex-direction: column; background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 22px rgba(0, 0, 0, 0.09); text-align: left; transition: box-shadow 0.2s, transform 0.2s; }
#dmRoot #dm .mg-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); transform: translateY(-2px); }
#dmRoot #dm .mg-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
#dmRoot #dm .mg-card-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
#dmRoot #dm .mg-card:hover .mg-card-img { transform: scale(1.04); }
#dmRoot #dm .mg-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
#dmRoot #dm .mg-card h2.mg-card-title { font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
#dmRoot #dm .mg-card h2.mg-card-title a { color: #1c1c1c; text-decoration: none; }
#dmRoot #dm .mg-card h2.mg-card-title a:hover { color: var(--color_3); }
#dmRoot #dm .mg-card p { font-family: Karla, "Karla Fallback"; margin: 0; }
#dmRoot #dm .mg-card .mg-card-excerpt { font-size: 16px; line-height: 1.6; color: #1c1c1c; margin-bottom: 18px; }
#dmRoot #dm .mg-card .mg-card-more { margin-top: auto; font-family: Karla, "Karla Fallback"; font-weight: 700; font-size: 16px;
  color: var(--color_3); text-decoration: none; }
#dmRoot #dm .mg-card .mg-card-more:hover { text-decoration: underline; }
