:root { --mdg-shadow: 0 18px 50px rgba(7,42,64,.10); }
html { scroll-behavior: smooth; }
body.mdg-editorial { text-rendering: optimizeLegibility; }
.mdg-site-header { backdrop-filter: blur(14px); border-bottom: 1px solid var(--wp--preset--color--mist); position: sticky; top: 0; z-index: 30; }
.admin-bar .mdg-site-header { top: 32px; }
.mdg-kicker, .mdg-card__date { color: var(--wp--preset--color--ocean); font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.mdg-hero { overflow: hidden; }
.mdg-hero .wp-block-post-featured-image img { min-height: 430px; object-fit: cover; }
.mdg-card, .mdg-query-card { background: var(--wp--preset--color--snow); border: 1px solid var(--wp--preset--color--mist); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.mdg-card:hover, .mdg-query-card:hover { box-shadow: var(--mdg-shadow); transform: translateY(-4px); }
.mdg-card__media { display: block; aspect-ratio: 3/2; overflow: hidden; }
.mdg-card__media img { height: 100%; object-fit: cover; width: 100%; }
.mdg-card__fallback { background: linear-gradient(135deg,#dbe8ee,#29b39a 180%); display: block; height: 100%; }
.mdg-card__body { padding: 1.25rem; }
.mdg-card h3 { font-size: 1.25rem; margin: .5rem 0 0; }
.mdg-card h3 a { color: inherit; text-decoration: none; }
.mdg-breadcrumbs { align-items: center; display: flex; flex-wrap: wrap; font-size: .84rem; gap: .55rem; margin-bottom: 1.25rem; }
.mdg-breadcrumbs a { text-decoration: none; }
.mdg-related { margin-block: clamp(3rem,7vw,6rem); }
.mdg-related__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.mdg-category-strip { scrollbar-width: thin; }
.mdg-category-strip .wp-block-categories-list { display: flex; gap: .65rem; list-style: none; margin: 0; overflow-x: auto; padding: 0 0 .4rem; }
.mdg-category-strip li a { background: var(--wp--preset--color--ice); border: 1px solid var(--wp--preset--color--mist); border-radius: 999px; display: block; padding: .55rem 1rem; text-decoration: none; white-space: nowrap; }
.mdg-article-meta { color: #49606e; }
.mdg-single-content { font-size: clamp(1.05rem,1.3vw,1.2rem); }
.mdg-single-content > p:first-of-type { font-size: 1.15em; }
.mdg-single-content img { border-radius: 14px; }
.mdg-author-box { border-bottom: 1px solid var(--wp--preset--color--mist); border-top: 1px solid var(--wp--preset--color--mist); padding-block: 1.5rem; }
.mdg-newsletter { background: linear-gradient(135deg,var(--wp--preset--color--deep),var(--wp--preset--color--ocean)); border-radius: 24px; color: white; }
.mdg-site-footer a { color: inherit; }
.mdg-single-shell { --wp--style--global--content-size: 760px; }
.mdg-single-shell > .alignwide { max-width: min(1120px, calc(100vw - 40px)); }
.mdg-single-shell .wp-block-post-title { font-size: clamp(2rem, 5.2vw, 3.45rem) !important; letter-spacing: -.025em; margin-bottom: 1rem; }
.mdg-single-shell .wp-block-post-featured-image img { aspect-ratio: auto; border-radius: 18px; height: auto; max-height: none; object-fit: contain; width: 100%; }
.mdg-single-content { line-height: 1.72; width: 100%; }
.mdg-single-content > * { max-width: 760px; }
.mdg-single-content > :is(.wp-block-image,.wp-block-gallery,.wp-block-embed,.wp-block-video) { margin-inline: auto; max-width: 960px; width: min(960px, calc(100vw - 40px)); }
.mdg-single-content figure img { height: auto; width: 100%; }
.mdg-single-content figcaption { color: #58707d; font-size: .82rem; line-height: 1.45; margin-top: .55rem; }
.mdg-single-content .wp-block-embed__wrapper { aspect-ratio: 16/9; }
.mdg-single-content .wp-block-embed__wrapper iframe { height: 100%; width: 100%; }
.mdg-byline { align-items: center; border-bottom: 1px solid var(--wp--preset--color--mist); color: #58707d; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-bottom: 1rem; padding-bottom: 1rem; }
.mdg-byline__author { align-items: center; color: inherit; display: inline-flex; gap: .65rem; text-decoration: none; }
.mdg-byline__author img { border-radius: 50%; height: 40px; object-fit: cover; width: 40px; }
.mdg-byline__author span { display: grid; line-height: 1.2; }
.mdg-byline__author strong { color: var(--wp--preset--color--ink); }
.mdg-byline__author small { font-size: .72rem; margin-top: .15rem; }
.mdg-share { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1.25rem; }
.mdg-share > span { font-size: .78rem; font-weight: 750; letter-spacing: .06em; margin-right: .25rem; text-transform: uppercase; }
.mdg-share a,.mdg-share button { background: var(--wp--preset--color--ice); border: 1px solid var(--wp--preset--color--mist); border-radius: 999px; color: var(--wp--preset--color--deep); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; padding: .55rem .78rem; text-decoration: none; }
.mdg-share a:hover,.mdg-share button:hover { background: var(--wp--preset--color--ocean); color: white; }
.mdg-author-card { align-items: center; background: var(--wp--preset--color--ice); border: 1px solid var(--wp--preset--color--mist); border-radius: 20px; display: grid; gap: 1.5rem; grid-template-columns: 112px 1fr; margin-block: clamp(2.5rem,6vw,4.5rem); padding: clamp(1.25rem,3vw,2rem); }
.mdg-author-card > img { border-radius: 50%; height: 112px; object-fit: cover; width: 112px; }
.mdg-author-card__label { color: var(--wp--preset--color--ocean); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mdg-author-card h2 { font-size: 1.55rem; margin: .25rem 0; }
.mdg-author-card h2 a { color: inherit; text-decoration: none; }
.mdg-author-card p { margin: .35rem 0 0; }
.mdg-author-card__role { color: var(--wp--preset--color--ocean); font-size: .88rem; font-weight: 700; }
.mdg-site-footer .wp-block-columns { gap: clamp(2rem,5vw,5rem); }
.mdg-site-footer .mdg-footer-links { list-style: none; margin: 0; padding: 0; }
.mdg-site-footer .mdg-footer-links li { margin-bottom: .55rem; }
.mdg-lightbox { background: rgba(7,42,64,.96); border: 0; height: 100%; margin: 0; max-height: none; max-width: none; padding: 3rem 1rem 1rem; width: 100%; }
.mdg-lightbox::backdrop { background: rgba(0,0,0,.82); }
.mdg-lightbox figure { color: white; display: grid; height: 100%; margin: 0; place-content: center; text-align: center; }
.mdg-lightbox img { max-height: 80vh; max-width: min(1200px,94vw); object-fit: contain; }
.mdg-lightbox button { background: white; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.75rem; height: 42px; position: absolute; right: 1rem; top: 1rem; width: 42px; }
.mdg-author-page { margin: 0 auto; max-width: 1180px; padding: clamp(2rem,6vw,5rem) 20px; }
.mdg-author-page__header { align-items: center; background: var(--wp--preset--color--ice); border-radius: 24px; display: grid; gap: 2rem; grid-template-columns: 160px 1fr; margin-bottom: 4rem; padding: clamp(1.5rem,4vw,3rem); }
.mdg-author-page__header img { border-radius: 50%; height: 160px; object-fit: cover; width: 160px; }
.mdg-author-page__header h1 { font-size: clamp(2.25rem,5vw,4rem); margin: .25rem 0; }
@media (max-width: 782px) {
  .admin-bar .mdg-site-header { top: 46px; }
  .mdg-related__grid { grid-template-columns: 1fr; }
  .mdg-hero .wp-block-post-featured-image img { min-height: 260px; }
  .mdg-single-shell { padding-left: 18px !important; padding-right: 18px !important; }
  .mdg-single-shell > .alignwide,.mdg-single-content > :is(.wp-block-image,.wp-block-gallery,.wp-block-embed,.wp-block-video) { max-width: 100%; width: 100%; }
  .mdg-single-shell .wp-block-post-title { font-size: clamp(2rem,10vw,2.75rem) !important; line-height: 1.08; }
  .mdg-single-content { font-size: 1.075rem; line-height: 1.72; }
  .mdg-share { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mdg-share > span { grid-column: 1/-1; }
  .mdg-share a,.mdg-share button { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .mdg-author-card,.mdg-author-page__header { grid-template-columns: 1fr; text-align: center; }
  .mdg-author-card > img,.mdg-author-page__header img { margin-inline: auto; }
  .mdg-single-content .wp-block-gallery { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .mdg-share { grid-template-columns: repeat(2,minmax(0,1fr)); } .mdg-byline { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mdg-card, .mdg-query-card { transition: none; } }
