/* Meng landing: the page's own pieces, on top of the taste-skill kit in assets/ (never edited).
   Colours of the product mocks come from the extension's default style, `student` in
   packages/ui/src/themes.ts, so the popup here looks like the one a reader gets. */
:root {
  --mg-pop-bg: #fffaf3; --mg-pop-ink: #2b2118; --mg-pop-soft: #fdebd3; --mg-pop-muted: #7a5c3e;
  --mg-pop-primary: #f26b1d; --mg-pop-border: #f3cfa3; --mg-pop-shadow: 0 10px 30px rgb(242 107 29 / 0.22);
  --mg-pop-r: 0.875rem;
  --mg-red: #e03523; --mg-yellow: #fac12a; --mg-amber: #f0a820;
  --mg-serif: Georgia, "Times New Roman", serif;
  --mg-sel: #c9ddf7;
}
/* the lit ground, from the mascot instead of the dealt sage: its yellow mixed into the cream page, the
   ripe-rice gold the feature panels sit on (the mascot's own #fac12a would swallow its beak and feet) */
html[data-ground] { --ground-bg: #fbd87a; --ground-surface: #fde6a6; --ground-ink: #451a0f; --ground-muted: #6b3a1c; --ground-accent: #c62a1a; }
/* the close on lacquer: the mascot's dark brown, where its red, cream and yellow all stand out */
footer.footer--statement { --ground-bg: #451a0f; --ground-surface: #5a2a1a; --ground-ink: #fdf4db; --ground-muted: #c9ad97; --ground-accent: #fac12a; }

/* Vietnamese stacks a tone mark over a vowel mark (a circumflex under an acute), higher than any Latin accent: the kit's
   1.02 display leading lets the marks of one line touch the descenders of the line above */
h1 { line-height: 1.1; }
h2 { line-height: 1.16; }
.mo-wh__text { line-height: 1.22; }

/* ---------------------------------------------------------------- the extension's marks and popup */
/* a wavy underline under every word already looked up, and the reader's own selection */
.mg-mark { text-decoration: underline wavy var(--mg-pop-primary) max(1.5px, 0.12em); text-underline-offset: 0.24em; text-decoration-skip-ink: none; }
.mg-sel { position: relative; background: var(--mg-sel); border-radius: 2px; box-shadow: 0 0 0 1px var(--mg-sel); }
/* the popup at the extension's own measures: 320px wide, 14px text (0.9333em of the 15px page text) */
.mg-pop {
  position: absolute; z-index: 2; width: 22.86em; font: 0.9333em/1.45 var(--font-text);
  padding: 0.86em 1em 0; color: var(--mg-pop-ink); background: var(--mg-pop-bg); border: 1px solid var(--mg-pop-border);
  border-radius: var(--mg-pop-r); box-shadow: var(--mg-pop-shadow);
}
.mg-pop p { margin: 0; max-width: none; }
.mg-pop__head { display: flex; align-items: baseline; gap: 0.57em; margin-bottom: 0.43em; }
.mg-pop__word { font-weight: 700; font-size: 1.143em; }
.mg-pop__phon, .mg-pop__pos { color: var(--mg-pop-muted); }
.mg-pop__pos { font-size: 0.857em; margin-right: 0.29em; }
.mg-pop__tr { font-weight: 600; margin: 0.14em 0 0.43em !important; }
.mg-pop__sec { margin-top: 0.57em; padding-top: 0.43em; border-top: 1px solid var(--mg-pop-border); }
.mg-pop__label { font-size: 0.857em; font-weight: 600; color: var(--mg-pop-muted); margin-bottom: 0.14em !important; }
.mg-pop__row { display: flex; flex-wrap: wrap; gap: 0.43em; margin-top: 0.71em; padding: 0.57em 0 0.86em; }
.mg-pop__btn { padding: 0.33em 0.86em; border-radius: var(--mg-pop-r); background: var(--mg-pop-soft); font-size: 0.857em; font-weight: 600; }
/* the product's #f26b1d under white reads 3:1; one step deeper keeps the label at 4.5:1 */
.mg-pop__btn--primary { background: #c4500f; color: #fff; }

/* ---------------------------------------------------------------- hero: a news page with the popup open */
/* the page and its popup are drawn at one scale, set by the picture's width: the popup sits beside the
   page in the markup (a box on the picture, never a box in a box) and lands on the word by anchor */
.hero__media { container-type: inline-size; --mg-fs: clamp(10px, calc((100cqi - 48px) / 38), 16px); }
.mg-browser {
  position: absolute; z-index: 1; left: 48px; top: 48px; bottom: -1px; width: 42em;
  font-size: var(--mg-fs);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: #1f1d1a; border-radius: 0.9em 0 0 0;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 24px 60px -18px rgb(69 26 15 / 0.42), 0 2px 6px rgb(69 26 15 / 0.12);
}
.mg-browser__bar {
  flex: none; display: flex; align-items: flex-end; gap: 0.9em; height: 2.7em; padding: 0 0.9em;
  background: #efe9df; border-bottom: 1px solid rgb(0 0 0 / 0.06);
}
.mg-browser__dots { display: flex; gap: 0.45em; align-self: center; }
.mg-browser__dots i { width: 0.66em; height: 0.66em; border-radius: 50%; background: rgb(69 26 15 / 0.18); }
.mg-browser__tab {
  max-width: 17em; padding: 0.5em 1em; border-radius: 0.6em 0.6em 0 0; background: #fff;
  font: 500 0.78em/1.2 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #4a4038;
}
.mg-browser__ext { margin-left: auto; align-self: center; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 0.5em; background: rgb(255 255 255 / 0.7); }
.mg-browser__ext img { width: 1.3em; height: 1.3em; }
.mg-article { padding: 1.7em 2.2em 0; font: 1em/1.62 var(--mg-serif); }
.mg-article p { margin: 0 0 0.85em; max-width: 34em; }
.mg-article__kicker { font: 600 0.7em/1.4 var(--font-text) !important; letter-spacing: 0.08em; text-transform: uppercase; color: #8a7b6e; margin-bottom: 0.5em !important; }
.mg-article__title { font: 700 1.8em/1.12 var(--mg-serif) !important; letter-spacing: -0.01em; margin-bottom: 0.55em !important; }
.mg-article .mg-sel { anchor-name: --mg-word; }
.mg-bubble {
  position: absolute; left: calc(100% + 0.25em); bottom: calc(100% - 0.2em); display: grid; place-items: center;
  width: 1.75em; height: 1.75em; border-radius: 0.875em; background: var(--mg-pop-primary); color: #fff;
  font: 700 0.86em/1 var(--font-text); box-shadow: var(--mg-pop-shadow);
}
.hero__media > .mg-pop--hero {
  font-size: calc(var(--mg-fs) * 0.9333); max-width: calc(100% - 24px);
  position-anchor: --mg-word; top: calc(anchor(bottom) + 0.7em); left: max(12px, calc(anchor(left) - 3.4em));
}
@supports not (anchor-name: --a) { .hero__media > .mg-pop--hero { top: calc(48px + 15.6em); left: calc(48px + 5em); } }
.hero__media .ly-float { box-shadow: 0 10px 30px -12px rgb(69 26 15 / 0.35); }
.ly-float__title { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .hero__media { --mg-fs: clamp(10.5px, calc((100cqi - 24px) / 34), 15px); }
  .mg-browser { left: 24px; top: 24px; right: 0; width: auto; }
  .mg-article__kicker, .mg-article__title + p { display: none; }
  .hero__media .ly-float { display: none; }
}
/* a short laptop screen (1366x768) leaves the "saved" note no room below the popup: it would cover the buttons */
@media (min-width: 1024px) and (max-height: 820px) { .hero__media .ly-float { display: none; } }
/* a phone keeps the popup inside the picture: the sentence translation goes, the buttons stay */
@media (max-width: 639px) { .mg-pop--hero .mg-pop__sec--sentence { display: none; } }

/* ---------------------------------------------------------------- the word store: the app-frame recipe */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.ui-brand[src] { width: 16px; height: 16px; }
/* Vietnamese labels are longer than the fragment's English ones: a wider side column, one line each */
@media (min-width: 1024px) { .app .ui-win__body { grid-template-columns: 172px minmax(0, 1fr); } }
.app .ui-win__nav { white-space: nowrap; }
/* the open word as a page with its note in a column of its own beside it, not over the text */
.app > .app__pane--open > .ui-doc { width: min(100%, 760px); padding: 40px 248px 0 40px; }
@media (max-width: 639px) { .app > .app__pane--open > .ui-doc { width: 100%; padding: 24px 32px 0 16px; } }

/* ---------------------------------------------------------------- feature panels */
/* a page runs off the panel's foot (under the stage's fade); a popup or a hover card is its sibling on
   the stage, laid over it on the word it answers */
.mg-paper {
  left: 32px; right: 32px; top: 32px; bottom: -24px; padding: 20px 22px; border-radius: 12px;
  background: var(--fx-bg); color: var(--mg-pop-ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 18px 40px -20px rgb(69 26 15 / 0.38), 0 1px 3px rgb(69 26 15 / 0.12);
  font: 15px/1.6 var(--mg-serif);
}
.mg-paper p { margin: 0; }
.mg-passage__sel { anchor-name: --mg-passage; background: var(--mg-sel); box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 2px; }
.stage > .mg-pop--passage {
  position: absolute; width: auto; max-width: 320px; font-size: 14px; box-shadow: var(--mg-pop-shadow);
  position-anchor: --mg-passage; top: calc(anchor(bottom) + 14px); left: 52px; right: 52px;
}
@supports not (anchor-name: --a) { .stage > .mg-pop--passage { top: 132px; } }
.mg-revisit__offline {
  display: inline-flex !important; align-items: center; gap: 8px; margin-bottom: 12px !important; padding: 4px 10px; border-radius: 999px;
  font: 600 12px/1.4 var(--font-text); color: var(--mg-pop-muted); background: var(--mg-pop-soft);
}
.mg-revisit__offline span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mg-revisit__more { margin-top: 72px !important; }
.mg-mark--hover { anchor-name: --mg-ant; background: color-mix(in oklab, var(--mg-pop-primary) 12%, transparent); border-radius: 2px; }
.stage > .mg-hover {
  position: absolute; z-index: 2; display: grid; gap: 2px; width: max-content; max-width: 236px; padding: 10px 14px;
  font: 14px/1.45 var(--font-text); color: var(--mg-pop-ink); background: var(--mg-pop-bg); border: 1px solid var(--mg-pop-border);
  border-radius: var(--mg-pop-r); box-shadow: var(--mg-pop-shadow);
  position-anchor: --mg-ant; top: calc(anchor(bottom) + 8px); left: clamp(16px, calc(anchor(left) - 10px), calc(100% - 252px));
}
@supports not (anchor-name: --a) { .stage > .mg-hover { top: 132px; left: 64px; } }
.mg-hover b { font-weight: 700; }
.mg-hover span { color: var(--mg-pop-muted); }
.mg-pdf { left: 32px; right: -24px; top: 32px; bottom: -24px; border-radius: 12px 0 0 0; overflow: hidden; background: #e4ddd2; box-shadow: 0 18px 40px -20px rgb(69 26 15 / 0.38); }
.mg-pdf__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 48px 10px 16px; background: #3a2c23; color: #f3e8cf; font: 500 13px/1.3 var(--font-text); }
.mg-pdf__file { font-weight: 600; }
.mg-pdf__page { margin: 18px 40px 0 24px; padding: 22px 26px 40px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 0.14); font: 14px/1.62 var(--mg-serif); color: #24201c; }
.mg-pdf__page p { margin: 0 0 10px; }
.mg-pdf__h { font-weight: 700; font-size: 15px; }
@media (max-width: 639px) {
  .mg-paper { left: 16px; right: 16px; top: 20px; padding: 16px; font-size: 14px; }
  .stage > .mg-pop--passage { left: 28px; right: 28px; }
  .mg-pdf { left: 16px; top: 20px; }
  .mg-pdf__page { margin: 12px 24px 0 12px; padding: 16px 18px 32px; }
}
/* a tablet's screen is taller than the two cards: the row runs to the screen's foot, as on a desktop */
@media (min-width: 640px) and (max-width: 1023px) {
  #tinh-nang.g2 > .wrap > .grid:last-child,
  #tinh-nang.g2 > .wrap > .group > .grid:last-child { align-self: stretch; flex: 1 1 auto; min-height: 0; }
}

/* ---------------------------------------------------------------- passive learning: the statement */
.statement > .wrap { justify-content: center; }
.statement .t-label { margin-bottom: var(--s-6); color: var(--accent); }

/* ---------------------------------------------------------------- where the store lives: a bronze drum face */
.mg-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.mg-facts li { position: relative; padding-left: 26px; }
.mg-facts li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 10px; background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
/* D: the drum's size, the largest square the frame holds; a point (x, y) of the 600-unit drawing sits
   at 50% + D * x / 600 */
.mg-drum { container-type: size; --D: min(96cqw, 94cqh, 560px); background: radial-gradient(circle at 50% 50%, #fdf4db 0, #f8e9c6 62%, #f3e0b4 100%); }
.mg-drum .stage > .mg-drum__art { position: absolute; left: 50%; top: 50%; width: var(--D); height: var(--D); translate: -50% -50%; overflow: visible; }
.mg-drum__ring { fill: none; stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 1.6; }
.mg-drum__ring--thin { stroke-width: 0.9; stroke: color-mix(in oklab, var(--ink) 18%, transparent); }
.mg-drum__tick { stroke: color-mix(in oklab, var(--ink) 26%, transparent); stroke-width: 1.4; stroke-linecap: round; }
.mg-drum__bird { fill: color-mix(in oklab, var(--accent) 62%, transparent); }
.mg-drum__motif circle { fill: none; stroke: color-mix(in oklab, var(--ink) 24%, transparent); stroke-width: 1.2; }
.mg-drum__motif .mg-drum__dot { fill: color-mix(in oklab, var(--ink) 30%, transparent); stroke: none; }
.mg-drum__tri { fill: color-mix(in oklab, var(--mg-amber) 70%, transparent); }
.mg-drum__star { fill: var(--mg-yellow); stroke: var(--mg-amber); stroke-width: 1.5; stroke-linejoin: round; }
.mg-drum__link { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.mg-drum__end { fill: var(--accent); }
/* a cream plate cut out of the art under the centre label, so the triangles and rings never run behind its letters */
.mg-drum__plate { fill: #fbefd2; stroke: color-mix(in oklab, var(--ink) 22%, transparent); stroke-width: 1; }
/* the labels are words on the drum, haloed in its cream so the rings never cross them */
.mg-drum__node {
  position: absolute; z-index: 1; display: grid; justify-items: center; gap: 1px; translate: -50% -50%;
  font-size: 15px; line-height: 1.3; white-space: nowrap; text-align: center; color: var(--ink);
  text-shadow: 0 0 2px #fbefd2, 0 0 6px #fbefd2, 0 0 12px #fbefd2, 0 0 18px #fbefd2;
}
.mg-drum__node b { font-weight: 600; }
.mg-drum__node span { color: var(--muted); font-size: 13px; }
.mg-drum__node--centre { left: 50%; top: calc(50% + var(--D) * 100 / 600); }
.mg-drum__node--centre b { color: var(--accent); }
.mg-drum__node--file  { left: calc(50% + var(--D) * 172 / 600); top: calc(50% - var(--D) * 172 / 600); }
.mg-drum__node--cloud { left: calc(50% + var(--D) * 188 / 600); top: calc(50% + var(--D) * 182 / 600); }
.mg-drum__node--self  { left: calc(50% - var(--D) * 236 / 600); top: calc(50% + var(--D) * 72 / 600); }
@media (max-width: 639px) {
  .mg-drum__node { font-size: 13px; } .mg-drum__node span { display: none; }
  /* the drum is drawn at a third of its desktop size here: the plate grows in drum units to hold the 13px
     words, the centre's word sits a little lower to clear the star, and takes the ink, not the accent */
  .mg-drum__plate { x: -115px; y: 74px; width: 230px; height: 64px; rx: 32px; }
  .mg-drum__node--centre { top: calc(50% + var(--D) * 106 / 600); }
  .mg-drum__node--centre b { color: var(--ink); }
}

/* ---------------------------------------------------------------- review plan: a preview, drawn as not yet built */
.mg-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-7); }
.mg-plan p { margin: 0; }
.mg-plan__lane { display: grid; align-content: start; gap: var(--s-3); }
.mg-plan__tag { justify-self: start; color: var(--ink); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mg-plan__title { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.mg-plan__sub { color: var(--ink); font-size: var(--t-body); max-width: 26ch; }
/* dashed, as an outline of a card that is not built yet */
.mg-plan__card {
  display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) var(--s-5) var(--s-6); border-radius: var(--r-md);
  background: var(--card); border: 1.5px dashed color-mix(in oklab, var(--ink) 24%, transparent);
  transition: translate var(--dur, 200ms) var(--ease), box-shadow var(--dur, 200ms) var(--ease);
}
.mg-plan__card:hover { translate: 0 -3px; box-shadow: 0 14px 28px -18px rgb(69 26 15 / 0.45); }
.mg-plan__meta { color: var(--muted); font-size: var(--t-label); }
/* a flashcard: the sentence the word was met in on its face, the word itself on the card's foot */
.mg-plan__ctx { margin-top: var(--s-3) !important; font: clamp(17px, 0.5vw + 13px, 21px)/1.5 var(--mg-serif); color: color-mix(in oklab, var(--ink) 88%, var(--card)); }
.mg-plan__word { margin-top: auto !important; padding-top: var(--s-5); font: var(--display-weight) clamp(28px, 1.2vw + 18px, 40px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.mg-plan__phon { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 1023px) { .mg-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-4); } }
@media (max-width: 639px) {
  .mg-plan { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-6); gap: var(--s-4); }
  .mg-plan__sub, .mg-plan__phon { display: none; }
  .mg-plan__card { padding: var(--s-4); }
  .mg-plan__card:nth-child(n + 3) { display: none; }
  .mg-plan__word { padding-top: var(--s-3); }
}

/* ---------------------------------------------------------------- the close: the mascot on the button */
.closing__cta .btn--xl { position: relative; overflow: visible; }
/* the button on the close's foot, by the links, with the open ground above it for the bird */
@media (min-width: 640px) { .closing__cta.close--type > .btn--xl { margin-top: auto; } }
.mg-bird {
  position: absolute; right: clamp(76px, 9%, 132px); bottom: calc(100% - 6px); width: clamp(112px, 10vw, 168px); height: auto;
  pointer-events: none; transition: translate 320ms var(--ease, cubic-bezier(.2, .8, .2, 1));
}
.mg-bird__wing { transform-box: fill-box; transform-origin: 18% 22%; }
.mg-bird__crest { transform-box: fill-box; transform-origin: 8% 90%; }
.mg-bird__eye { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .mg-bird__eye { animation: mg-blink 6s 2s infinite; }
  .btn--xl:is(:hover, :focus-visible) .mg-bird { translate: 0 -8px; }
  .btn--xl:is(:hover, :focus-visible) .mg-bird__wing { animation: mg-flap 520ms cubic-bezier(.3, .7, .4, 1) infinite alternate; }
  .btn--xl:is(:hover, :focus-visible) .mg-bird__crest { animation: mg-crest 520ms ease-in-out infinite alternate; }
}
@keyframes mg-flap { from { rotate: 0deg; } to { rotate: -16deg; } }
@keyframes mg-crest { from { rotate: 0deg; } to { rotate: -4deg; } }
@keyframes mg-blink { 0%, 96%, 100% { scale: 1 1; } 98% { scale: 1 0.1; } }
@media (max-width: 639px) {
  .mg-bird { right: 56px; width: 84px; }
  .closing__cta.close--type > .btn--xl { margin-top: 44px; }
}
/* two link columns end on the right line: on a tablet the name takes its own row and the columns split it */
@media (min-width: 640px) and (max-width: 1023px) {
  .closing__links .grid > .span-4 { grid-column: 1 / -1; }
  .closing__links .grid > .footer__col { grid-column: auto / span 6; }
}
.mg-legal { color: var(--muted); }

/* ---------------------------------------------------------------- questions: the webapp's data screen beside the answers */
/* under the heading, the frame takes the column down to the section's foot */
.mg-faq__side > .frame--fill { flex: 1 1 0; height: auto; min-height: 0; }
.mg-faq__frame { border-color: transparent; background: radial-gradient(130% 100% at 20% 0%, #fde6a6 0, #fbd87a 100%); }
.mg-faq__frame .stage > .at-rise { --ax: 32px; --fit-max: 440px; --ay: 40px; --ay-sm: 24px; }
@media (min-width: 640px) and (max-width: 1023px) { .mg-faq__frame .stage > .at-rise { --ay: max(40px, calc(50% - 240px)); } }
.mg-data { padding: 0 18px 18px; font: 14px/1.45 var(--font-text); color: var(--mg-pop-ink); background: var(--mg-pop-bg); border: 1px solid var(--mg-pop-border); border-radius: var(--mg-pop-r); box-shadow: var(--mg-pop-shadow); }
.mg-data p { margin: 0; max-width: none; }
.mg-data__bar { display: flex; align-items: center; gap: 6px; height: 44px; margin: 0 -18px 2px; padding: 0 18px; border-bottom: 1px solid var(--mg-pop-border); color: var(--mg-pop-muted); font-size: 13px; }
.mg-data__bar img { width: 16px; height: 16px; }
.mg-data__bar i { font-style: normal; opacity: 0.6; }
.mg-data__bar b { color: var(--mg-pop-ink); font-weight: 600; }
.mg-data__row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--mg-pop-border); }
.mg-data__row > div { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.mg-data__title { font-weight: 600; }
.mg-data__desc { color: var(--mg-pop-muted); font-size: 13px; }
.mg-data__btn { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--mg-pop-border); border-radius: 10px; background: var(--mg-pop-bg); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mg-data__btn--danger { border-color: transparent; background: #fbe1dc; color: #a32517; }
.mg-data__btn.is-off { opacity: 0.55; }
.mg-data__btn--solid { border-color: transparent; background: #a32517; color: #fff; }
.mg-data__alert { display: grid; gap: 4px; margin-top: 16px; padding: 14px 16px; border: 1px solid #f1b9ae; border-radius: 12px; background: #fdf0ec; }
.mg-data__alert > .mg-data__title { color: #a32517; }
.mg-data__acts { display: flex; gap: 8px; margin-top: 10px; }
/* a desktop sets the answers larger as the screen grows taller, so they run down beside the picture to the
   same foot; on a short laptop screen (1366x768) they keep the kit's size, and the section grows rather
   than lay its last answer over the close */
@media (min-width: 1024px) {
  main > .mg-faq { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100svh; }
  main > section.mg-faq > .wrap:not(.grid) { flex: 1 0 auto; height: auto; }
  .mg-faq > .wrap > .grid.fill { flex: 1 0 auto; }
  .mg-faq .faq { display: flex; flex-direction: column; justify-content: space-between; }
  .mg-faq .faq > .faq__item { padding-block: clamp(12px, calc(20vh - 140px), 40px); }
  .mg-faq .faq > .faq__item:first-child { padding-top: 0; }
  .mg-faq .faq > .faq__item > p { font-size: clamp(16px, calc(1.5vh + 4.5px), 18px); }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .mg-data__row--export { display: none; }
  .mg-faq__frame .stage > .at-rise { --ay: 20px; }
  .mg-data__row { padding-block: 10px; }
}
/* a tablet takes two screens: the heading and the answers, spread down the first, then the picture as a
   screen of its own */
@media (min-width: 640px) and (max-width: 1023px) {
  main > .mg-faq { --h: 2; }
  .mg-faq > .wrap > .grid, .mg-faq__side { display: contents; }
  .mg-faq__side > .stack-4 { order: 1; }
  .mg-faq > .wrap > .grid > .faq { order: 2; flex: 1 0 auto; display: flex; flex-direction: column; margin-top: var(--s-6); }
  .mg-faq__side > .mg-faq__frame { order: 3; flex: none; margin-top: calc(var(--padt) + var(--padb) + var(--bar)); height: calc(100vh - var(--padt) - var(--padb) - var(--bar)); height: calc(100svh - var(--padt) - var(--padb) - var(--bar)); }
  .mg-faq .faq > .faq__item { flex: 1 1 auto; align-content: center; padding-block: var(--s-6); }
  .mg-faq .faq > .faq__item:first-child { padding-top: 0; }
  .mg-faq .faq > .faq__item > p { font-size: 18px; }
}
/* a phone takes two screens too: the heading over the picture, then the answers */
@media (max-width: 639px) {
  .mg-faq > .wrap > .grid { display: contents; }
  .mg-faq__side { align-self: stretch; min-height: 0; }
}
/* and runs the answers down their whole screen, so the close follows at the page's one gap */
@media (max-width: 639px) {
  .mg-faq > .wrap > .grid > .faq { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
  .mg-faq .faq > .faq__item { padding-block: 20px; }
  .mg-faq .faq > .faq__item:first-child { padding-top: 0; }
}

/* a phone gives the four feature cards' first screen to the claim alone */
@media (max-width: 639px) {
  #tinh-nang-h > .muted { display: none; }
  main > #tinh-nang.g2 .card--open > .panel { --p-h: 172px; }
}

/* two buttons in the bar outgrow the kit's equal side columns below 1200px and run under the centred links:
   there the links centre in the room left between the logo and the buttons */
@media (min-width: 1024px) and (max-width: 1199px) { .nav--centre .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; } }
