/* ==========================================================================
   The magazine: the front page (pages/blog.php), a section (pages/blog-cat.php), an article (pages/blog-post.php,
   assets/js/magazine.js). A manuscript more than a newspaper: cool stone paper, ink, the teal of Tbilisi's carved
   balconies for links and actions, and cinnabar kept for what Georgian manuscripts wrote in red — the section names
   (rubrics), the great initial Ⴡ by the masthead, the parts' numbers. The places are postcards on the page, each
   with a postmark: the city and how many articles. Both builds (.v-m: the phones' frame).
   ========================================================================== */
.page-blog, .page-blog-cat, .page-blog-post {
  --mg-paper: #EEF0EB; --mg-paper-hi: #F7F8F4; --mg-card: #FBFCF9;
  --mg-ink: #16211F; --mg-ink-2: #56615E; --mg-teal: #1E5A57; --mg-teal-hi: #13403E; --mg-rubric: #B4432E;
  --mg-line: rgb(22 33 31 / .12);
  --mg-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 16px 36px -28px rgb(22 33 31 / .45);
  background: var(--mg-paper); color: var(--mg-ink);
}
.v-m .page-inner.page-blog, .v-m .page-inner.page-blog-cat, .v-m .page-inner.page-blog-post { background: var(--mg-paper); color: var(--mg-ink); }
.mg { padding: calc(var(--header-h, 76px) + 26px) var(--gutter, 16px) 96px; }
.v-m .mg { padding: calc(var(--m-bar) + 16px) 16px calc(var(--m-tabs) + 40px); }
.mg > * { max-width: 1320px; margin-inline: auto; }
.mg :focus-visible { outline: 2px solid var(--mg-teal); outline-offset: 2px; }
.mg .crumbs { color: var(--mg-ink-2); }
.mg a { color: inherit; }

.mg-rubric { margin: 0; color: var(--mg-rubric); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.mg-rubric a { color: inherit; text-decoration: none; }
.mg-rubric a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mg-k { margin: 0 0 12px; color: var(--mg-ink-2); font-size: 12.5px; font-weight: 800; letter-spacing: .03em; }
.mg-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 10px 0 0; color: var(--mg-ink-2); font-size: 12.5px; }
.mg-meta > * + *::before { content: "،"; margin: 0 6px 0 8px; opacity: .6; }
html[dir="ltr"] .mg-meta > * + *::before { content: "·"; margin: 0 8px; }
.mg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--mg-teal); color: #fff; font: 700 14px var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.mg .mg-btn { color: #fff; }
.mg-btn:hover { background: var(--mg-teal-hi); }
.mg-btn--go { background: var(--green, #83CD20); color: #0E1A07 !important; }
.mg-btn--go:hover { background: #95DD35; }
.mg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.mg-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.mg-head h2 a { text-decoration: none; }
.mg-head p { flex-basis: 100%; max-width: 46em; margin: 0; color: var(--mg-ink-2); font-size: 14.5px; line-height: 1.9; }
.mg-more { color: var(--mg-teal) !important; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.mg-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- the masthead ---------- */
.mg-mast__row { display: flex; align-items: flex-end; gap: clamp(14px, 2.4vw, 32px); margin-top: 22px; }
.mg-initial {
  flex: none; font-family: var(--font-ka); font-size: clamp(96px, 13vw, 190px); font-weight: 300; line-height: .78; color: var(--mg-rubric);
  translate: 0 4px;
}
.mg-mast__title { margin: 0; font-family: var(--font-display); font-size: clamp(44px, 8.4vw, 124px); font-weight: 900; line-height: 1; letter-spacing: -.01em; }
.mg-mast__lead { max-width: 40em; margin: 14px 0 0; color: var(--mg-ink-2); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.9; }
.mg-mast__meta { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 0; padding: 14px 0 0; border-top: 2px solid var(--mg-ink); }
.mg-mast__meta div { display: flex; align-items: baseline; gap: 8px; padding: 0 22px; border-inline-start: 1px solid var(--mg-line); }
.mg-mast__meta div:first-child { padding-inline-start: 0; border: 0; }
.mg-mast__meta dt { order: 2; color: var(--mg-ink-2); font-size: 13px; }
.mg-mast__meta dd { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.mg-mast--cat .mg-rubric { margin-top: 22px; }
.mg-mast--cat .mg-mast__title { margin-top: 8px; font-size: clamp(34px, 5.6vw, 76px); }
.mg-mast--cat .mg-mast__lead b { color: var(--mg-ink); }

/* ---------- the sections' row ---------- */
.mg-sections { position: sticky; z-index: 20; top: var(--mg-stick, var(--header-h, 76px)); margin-top: 22px; padding: 10px 0; background: rgb(238 240 235 / .92); }
html:not([data-tier="lite"]) .mg-sections { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgb(238 240 235 / .78); }
.mg-sections ul { display: flex; gap: 6px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.mg-sections a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  background: var(--mg-card); box-shadow: inset 0 0 0 1px var(--mg-line); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s;
}
.mg-sections a:hover { background: var(--mg-ink); color: var(--mg-paper-hi); }
.mg-sections i { font-style: normal; font-size: 11.5px; opacity: .55; }

/* ---------- the newest ---------- */
.mg-lead { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; margin-top: 30px; }
.mg-lead__main { display: grid; gap: 18px; text-decoration: none; }
.mg-lead__pic { margin: 0; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #DCE1DA; }
.mg-lead__pic img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out); }
.mg-lead__main:hover img { scale: 1.03; }
.mg-lead__title { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; line-height: 1.35; text-wrap: balance; }
.mg-lead__main:hover .mg-lead__title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgb(22 33 31 / .25); text-underline-offset: 6px; }
.mg-lead__ex { max-width: 48em; margin: 10px 0 0; color: var(--mg-ink-2); font-size: 15.5px; line-height: 1.95; }
.mg-also { padding: 20px 22px; border-radius: 26px; background: var(--mg-card); box-shadow: var(--mg-shadow); align-self: start; }
.mg-also ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mg-also li + li { border-top: 1px solid var(--mg-line); }
.mg-also a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; text-decoration: none; }
.mg-also__pic { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #DCE1DA; }
.mg-also__pic img { width: 100%; height: 100%; object-fit: cover; }
.mg-also b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14.5px; line-height: 1.65; }
.mg-also time { display: block; margin-top: 4px; color: var(--mg-ink-2); font-size: 12px; }
.mg-also a:hover b { color: var(--mg-teal); }

/* ---------- the places: postcards with a postmark ---------- */
.mg-places { margin-top: 64px; }
.mg-cards-post { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 22px; margin: 0; padding: 8px 4px 0; list-style: none; }
.mg-cards-post li { rotate: var(--tilt, 0deg); transition: rotate .45s var(--ease-out), translate .45s var(--ease-out); }
.mg-cards-post li:hover, .mg-cards-post li:focus-within { rotate: 0deg; translate: 0 -6px; }
.mg-cards-post a { position: relative; display: block; padding: 10px 10px 14px; border-radius: 6px; background: #FDFDFB; text-decoration: none; box-shadow: 0 1px 2px rgb(22 33 31 / .12), 0 18px 34px -24px rgb(22 33 31 / .55); }
.mg-post__pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #DCE1DA; }
.mg-post__pic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
/* a place with no photo yet: its name set large, like a lettered postcard */
.mg-post__word { display: grid; place-items: center; width: 100%; height: 100%; padding: 10px; background: var(--mg-teal); color: #F2EFE6; font: 800 clamp(18px, 2vw, 24px)/1.05 var(--font-label); letter-spacing: .06em; text-align: center; word-break: break-word; }
.mg-post__mark {
  position: absolute; top: -12px; inset-inline-end: -10px; display: grid; place-items: center; align-content: center; width: 70px; height: 70px; border-radius: 50%;
  border: 1.5px dashed var(--mg-rubric); background: rgb(253 253 251 / .9); color: var(--mg-rubric); rotate: -14deg; text-align: center;
}
.mg-post__mark::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid rgb(180 67 46 / .5); }
.mg-post__mark b { max-width: 54px; overflow: hidden; font: 800 8.5px/1.15 var(--font-label); letter-spacing: .06em; word-break: break-word; }
.mg-post__mark i { font: 800 15px/1.1 var(--font-display); font-style: normal; }
.mg-post__name { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.mg-post__last { display: -webkit-box; overflow: hidden; margin-top: 4px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--mg-ink-2); font-size: 12.5px; line-height: 1.7; }

/* ---------- the sections and the article cards ---------- */
.mg-chapter { margin-top: 64px; }
.mg-chapter .mg-head h2 a::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 12px; border-radius: 2px; background: var(--mg-rubric); rotate: 45deg; vertical-align: middle; translate: 0 -3px; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 20px; margin: 0; padding: 0; list-style: none; }
.mg-grid--chapter { grid-template-columns: 1.4fr 1fr 1fr; }
.mg-grid--chapter .is-big { grid-row: span 2; }
.mg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mg-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.mg-card__pic { margin: 0; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: #DCE1DA; }
.mg-card.is-big .mg-card__pic { aspect-ratio: 4 / 3; border-radius: 22px; }
.mg-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out); }
.mg-card a:hover img { scale: 1.04; }
.mg-card__none { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, rgb(22 33 31 / .04) 0 10px, transparent 10px 20px); }
.mg-card__body { padding: 12px 2px 0; }
.mg-card__title { display: -webkit-box; margin: 6px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 1.6; }
.mg-card.is-big .mg-card__title { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; }
.mg-card a:hover .mg-card__title { color: var(--mg-teal); }
.mg-card__ex { display: -webkit-box; margin: 8px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--mg-ink-2); font-size: 14.5px; line-height: 1.9; }

/* ---------- the most read: a ranking ---------- */
.mg-popular { margin-top: 64px; }
.mg-popular ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; counter-reset: pop; }
.mg-popular li { counter-increment: pop; border-top: 1px solid var(--mg-line); }
.mg-popular a { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 16px 0; text-decoration: none; }
.mg-popular a::before { content: counter(pop, persian); grid-row: span 2; font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; color: var(--mg-rubric); opacity: .9; }
html:not([lang="fa"]) .mg-popular a::before { content: counter(pop); }
html[lang="ar"] .mg-popular a::before { content: counter(pop, arabic-indic); }
.mg-popular b { font-size: 15px; line-height: 1.7; }
.mg-popular span { color: var(--mg-ink-2); font-size: 12px; }
.mg-popular a:hover b { color: var(--mg-teal); }

/* ---------- a section's page ---------- */
.mg-catbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 28px; }
.mg-catbody > .mg-grid:only-child, .mg-catbody > .mg-empty:only-child { grid-column: 1 / -1; }
.mg-catbody .mg-grid .is-big { grid-column: span 2; }
.mg-catbody .mg-grid .is-big a { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center; }
.mg-popular--side { position: sticky; top: calc(var(--header-h, 76px) + 80px); margin: 0; padding: 18px 20px; border-radius: 22px; background: var(--mg-card); box-shadow: var(--mg-shadow); }
.mg-popular--side ol { grid-template-columns: minmax(0, 1fr); }
.mg-popular--side a { grid-template-columns: 34px minmax(0, 1fr); padding: 12px 0; }
.mg-popular--side a::before { font-size: 26px; }
.mg-popular--side b { font-size: 13.5px; }
.mg-empty { padding: 44px 24px; border: 1.5px dashed rgb(22 33 31 / .2); border-radius: 24px; text-align: center; }
.mg-empty p { max-width: 34em; margin: 0 auto 18px; color: var(--mg-ink-2); line-height: 1.9; }

/* ---------- an article ---------- */
.mg-progress { position: fixed; z-index: 69; inset: var(--header-h, 76px) 0 auto; height: 3px; pointer-events: none; }
.v-m .mg-progress { top: var(--m-bar); z-index: 39; }
.mg-progress i { display: block; height: 100%; background: var(--mg-rubric); transform: scaleX(var(--p, 0)); transform-origin: right; }
html[dir="ltr"] .mg-progress i { transform-origin: left; }
.mg-art__head > * { max-width: 920px; }
.mg-art__head .crumbs { max-width: none; }
.mg-art__head .mg-rubric { margin-top: 24px; }
.mg-art__title { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.3; text-wrap: balance; }
.mg-art__stand { margin: 16px 0 0; color: var(--mg-ink-2); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.95; }
.mg-meta--art { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--mg-line); font-size: 13px; }
.mg-art__hero { max-width: 1320px; margin: 28px auto 0; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden; background: #DCE1DA; }
.mg-art__hero img { width: 100%; height: 100%; object-fit: cover; }
.mg-art__body { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 56px; margin-top: 40px; }
.mg-text { min-width: 0; font-size: 17px; line-height: 2.05; }
.mg-text p { margin: 0 0 18px; }
.mg-text a { color: var(--mg-teal); text-decoration: underline; text-underline-offset: 4px; }
.mg-text ul, .mg-text ol:not([class]) { margin: 0 0 18px; padding-inline-start: 24px; }
.mg-text strong, .mg-text b { font-weight: 800; }
.mg-intro { font-size: 18px; }
.mg-intro > p:first-child { font-size: 19px; color: var(--mg-ink); }
.mg-part { margin-top: 40px; scroll-margin-top: calc(var(--header-h, 76px) + 24px); }
.mg-part h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(21px, 2vw, 27px); font-weight: 800; line-height: 1.5; }
.mg-part__n { flex: none; color: var(--mg-rubric); font-size: .9em; }
.mg-fig { margin: 34px 0; border-radius: 22px; overflow: hidden; background: #DCE1DA; }
.mg-fig img { display: block; width: 100%; height: auto; }
.mg-faq { margin-top: 48px; scroll-margin-top: calc(var(--header-h, 76px) + 24px); }
.mg-faq h2, .mg-comments h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.mg-faq details { border-top: 1px solid var(--mg-line); }
.mg-faq details:last-child { border-bottom: 1px solid var(--mg-line); }
.mg-faq summary { position: relative; display: block; padding: 18px 0; padding-inline-end: 40px; font-weight: 800; font-size: 16px; line-height: 1.8; cursor: pointer; list-style: none; }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after { content: ""; position: absolute; top: 50%; inset-inline-end: 6px; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--mg-teal), var(--mg-teal)) center / 100% 2px no-repeat, linear-gradient(var(--mg-teal), var(--mg-teal)) center / 2px 100% no-repeat; transition: rotate .3s var(--ease-out); }
.mg-faq details[open] summary::after { rotate: 45deg; }
.mg-faq details > div { padding: 0 0 18px; color: var(--mg-ink-2); font-size: 16px; }

.mg-comments { margin-top: 56px; padding-top: 32px; border-top: 2px solid var(--mg-ink); scroll-margin-top: calc(var(--header-h, 76px) + 24px); }
.mg-comments h2 i { color: var(--mg-ink-2); font-size: .7em; font-style: normal; }
.mg-c-list { display: grid; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.mg-c-list > li { padding: 16px 18px; border-radius: 18px; background: var(--mg-card); box-shadow: inset 0 0 0 1px var(--mg-line); }
.mg-c-who { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px !important; font-size: 14px; }
.mg-c-who time { color: var(--mg-ink-2); font-size: 12px; }
.mg-c-text { margin: 0 !important; font-size: 15px; line-height: 1.9; }
.mg-c-answer { margin-top: 12px; padding: 12px 14px; border-inline-start: 3px solid var(--mg-teal); border-radius: 12px; background: rgb(30 90 87 / .07); font-size: 14.5px; }
.mg-c-answer p { margin: 0; }
.mg-c-answer .mg-c-who b { color: var(--mg-teal); }
.mg-c-none { color: var(--mg-ink-2); }
.mg-c-form { display: grid; gap: 12px; padding: 22px; border-radius: 22px; background: var(--mg-card); box-shadow: var(--mg-shadow); }
.mg-c-form h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.mg-c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-c-form label { display: grid; gap: 6px; color: var(--mg-ink-2); font-size: 13px; }
.mg-c-form input, .mg-c-form textarea {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--mg-paper-hi); box-shadow: inset 0 0 0 1px var(--mg-line);
  color: var(--mg-ink); font: 500 15px/1.8 var(--font-body); resize: vertical;
}
.mg-c-form input:focus, .mg-c-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--mg-teal); background: #fff; }
.mg-c-form [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--mg-rubric); }
.mg-c-form .mg-btn { justify-self: start; }
.mg-c-form .mg-trap { position: absolute; padding: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.mg-c-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgb(30 90 87 / .08); color: var(--mg-teal-hi); font-size: 14px; line-height: 1.8; }
.mg-c-msg.is-err { background: rgb(180 67 46 / .1); color: var(--mg-rubric); }
.mg-c-msg[hidden] { display: none; }

.mg-side { display: grid; gap: 18px; align-content: start; }
.mg-toc { position: sticky; top: calc(var(--header-h, 76px) + 24px); padding: 18px 18px 12px; border-radius: 22px; background: var(--mg-card); box-shadow: var(--mg-shadow); }
.mg-toc ol { display: grid; margin: 0; padding: 0; list-style: none; }
.mg-toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 8px 6px; border-radius: 10px; color: var(--mg-ink-2); font-size: 13.5px; line-height: 1.7; text-decoration: none; transition: background-color .2s, color .2s; }
.mg-toc a span { color: var(--mg-rubric); font-weight: 800; }
.mg-toc a:hover { color: var(--mg-ink); background: rgb(22 33 31 / .04); }
.mg-toc a[aria-current="true"] { color: var(--mg-ink); background: rgb(30 90 87 / .08); font-weight: 700; }
.mg-ask { padding: 20px; border-radius: 22px; background: var(--mg-teal); color: #EAF3F1; }
.mg-ask p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.85; }
.mg-ask .mg-ask__t { margin-bottom: 6px; font-family: var(--font-display); font-size: 19px; font-weight: 800; color: #fff; }
.mg-ask .mg-btn { width: 100%; }
.mg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mg-share .mg-k { flex-basis: 100%; margin: 0; }
.mg-share a, .mg-share button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--mg-card); box-shadow: inset 0 0 0 1px var(--mg-line); color: var(--mg-ink); font: 700 13px var(--font-body); cursor: pointer;
}
.mg-share svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mg-share a:hover, .mg-share button:hover { background: var(--mg-ink); color: var(--mg-paper-hi); }
.mg-related { margin-top: 72px; }

/* ---------- narrower ---------- */
@media (max-width: 1099px) {
  .mg-lead { grid-template-columns: minmax(0, 1fr); }
  .mg-art__body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mg-toc { display: none; }
  .mg-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .mg-catbody { grid-template-columns: minmax(0, 1fr); }
  .mg-popular--side { position: static; }
}
@media (max-width: 760px) {
  .mg-initial { font-size: 84px; }
  .mg-mast__meta div { padding: 0 14px; }
  .mg-mast__meta dd { font-size: 17px; }
  .mg-sections { margin-inline: -16px; padding-inline: 16px; }
  .mg-lead { gap: 22px; margin-top: 22px; }
  .mg-lead__pic { border-radius: 20px; }
  .mg-also { padding: 14px 16px; }
  .mg-places, .mg-chapter, .mg-popular, .mg-related { margin-top: 48px; }
  .mg-cards-post { display: flex; gap: 18px; margin-inline: -16px; padding: 16px 20px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mg-cards-post li { flex: none; width: 62%; scroll-snap-align: center; }
  .mg-grid, .mg-grid--chapter, .mg-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mg-grid--chapter .is-big { grid-row: auto; }
  .mg-catbody .mg-grid .is-big { grid-column: auto; }
  .mg-catbody .mg-grid .is-big a { display: flex; }
  .mg-popular ol { grid-template-columns: minmax(0, 1fr); }
  .mg-art__hero { aspect-ratio: 4 / 3; margin-inline: -16px; border-radius: 0; }
  .mg-text { font-size: 16px; }
  .mg-intro, .mg-intro > p:first-child { font-size: 16.5px; }
  .mg-side { grid-template-columns: minmax(0, 1fr); }
  .mg-c-row { grid-template-columns: minmax(0, 1fr); }
  .mg-c-form { padding: 16px; }
  .mg-c-form .mg-btn { justify-self: stretch; }
}
.v-m .mg { --mg-stick: var(--m-bar); }
@media (prefers-reduced-motion: reduce) {
  .mg *, .mg *::before { transition-duration: 0s !important; }
}

/* phones: the sticky sections row without a blur (redrawn on every scrolled frame) */
.v-m .mg-sections { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(238 240 235 / .97); }
