/* île Magazine — standalone surface. Additive; design-system.css is untouched.
   Same brand family as the other surfaces: graphite #0F0F0E ground, cream #EAE0C4, warm-white rgba(230,226,220,X),
   Spectral (light) for reading and DM Sans for UI, hairline .5px rules, one terracotta #C4694A accent.
   Its own character: a cultural magazine. A nameplate, a cover story, a grid of story cards with a flat colour cover per
   category, and a single wide-measure reading column with the English kept behind a toggle.
   Flat ground on purpose: no .orb glows, no gradients, no blur, no box-shadow anywhere on this surface. */

.stage--magazine {
  background: #0F0F0E;
  --mg-cream: #EAE0C4;
  --mg-ink: rgba(230,226,220,.9);
  --mg-mute: rgba(230,226,220,.72);
  --mg-faint: rgba(230,226,220,.5);
  --mg-rule: rgba(230,226,220,.16);
  --mg-tc: #C4694A;
  --mg-tc-soft: #D4896D;
}

.mg-scroll {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: 48px 72px 96px 56px; box-sizing: border-box;
  transition: opacity .45s cubic-bezier(.34,1.1,.64,1), transform .45s cubic-bezier(.34,1.1,.64,1);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent;
}
.mg-scroll::-webkit-scrollbar { width: 4px; }
.mg-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 2px; }
.mg-scroll [hidden] { display: none !important; }
/* Classroom's step-back (as in Studio): while Ask île is awake the story recedes — opacity, scale, shift; no blur, no glow */
.mg-scroll.is-receded { opacity: .45; transform: scale(.97) translateX(-18px); }
.mg-scroll button, .mg-scroll textarea { font: inherit; }
.mg-scroll button:focus-visible, .mg-scroll a:focus-visible, .mg-scroll textarea:focus-visible {
  outline: 1px solid rgba(234,224,196,.7); outline-offset: 3px;
}

.mg-library { max-width: 1180px; margin: 0 auto; }
.mg-article { max-width: 1180px; margin: 0 auto; }

/* ── Shared type and controls ─────────────────────────────────────────────── */
.mg-eyebrow {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--mg-mute);
}
.mg-kicker {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mg-tc-soft);
}
.mg-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 18px;
  background: transparent; border: .5px solid rgba(255,255,255,.14); color: var(--mg-mute);
  font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: .03em; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.mg-btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.24); color: var(--mg-cream); }

/* ── Nameplate and category tabs ──────────────────────────────────────────── */
.mg-masthead { padding: 0 0 18px; border-bottom: 1px solid var(--mg-rule); position: relative; }
.mg-masthead::after {                           /* the second, thinner rule of a nameplate */
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: .5px; background: var(--mg-rule);
}
.mg-masthead-top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.mg-masthead .mg-eyebrow { font-size: 14px; letter-spacing: .1em; text-transform: none; }   /* the wordmark "île" stays lowercase */
.mg-masthead-title {
  margin: 6px 0 0; font-family: 'Spectral', serif; font-weight: 300; font-size: 76px; line-height: 1;
  letter-spacing: -.012em; color: rgba(234,224,196,.95);
}
.mg-masthead-sub {
  margin: 0; max-width: 300px; text-align: right; font-family: 'Spectral', serif; font-style: italic; font-weight: 300;
  font-size: 16px; line-height: 1.5; color: var(--mg-mute);
}

.mg-chips {
  display: flex; gap: 28px; margin: 22px 0 34px; overflow-x: auto; white-space: nowrap;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mg-chips::-webkit-scrollbar { display: none; }
.mg-chip {
  position: relative; padding: 6px 0 8px; background: transparent; border: 0; cursor: pointer; flex: none;
  font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mg-faint);
  transition: color .2s;
}
.mg-chip::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mg-tc);
  transform: scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.22,.8,.3,1);
}
.mg-chip:hover { color: var(--mg-cream); }
.mg-chip[aria-pressed="true"] { color: var(--mg-cream); }
.mg-chip[aria-pressed="true"]::after { transform: scaleX(1); }

/* ── Flat typographic covers (one muted colour per category) ──────────────── */
.mg-media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; background: #1a1917; }
.mg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.22,.8,.3,1); }
.mg-type {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px 20px; box-sizing: border-box;
  transition: transform .8s cubic-bezier(.22,.8,.3,1);
}
.mg-type-cat {
  font-family: 'Spectral', serif; font-style: italic; font-weight: 300; font-size: 30px; line-height: 1.05;
  padding-top: 12px; border-top: 1px solid currentColor; min-width: 96px;
}
.mg-type--culture   { background: #2B211C; color: #D4896D; }
.mg-type--music     { background: #1F2A2B; color: #8FB3AE; }
.mg-type--literature{ background: #2B2733; color: #B8A9D4; }
.mg-type--news      { background: #1E2430; color: #9DB4D6; }
.mg-type--art       { background: #332A1A; color: #D8B26A; }
.mg-type--everyday  { background: #22301F; color: #A9C79A; }

/* ── Library: the six domains, then one domain's list of stories ──────────── */
.mg-domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
.mg-domain {
  display: block; width: 100%; text-align: left; cursor: pointer; background: transparent; border: 0; padding: 0; color: inherit;
  animation: mgRise .7s calc(var(--i, 0) * 70ms) cubic-bezier(.22,.8,.3,1) both;
}
.mg-domain .mg-card-text { display: block; margin-top: 16px; }
.mg-card-title {
  margin: 8px 0 0; font-family: 'Spectral', serif; font-weight: 300; font-size: 28px; line-height: 1.2; color: rgba(234,224,196,.92);
  transition: color .25s;
}
.mg-card-deck {
  display: block; margin-top: 10px;
  font-family: 'Spectral', serif; font-weight: 300; font-size: 16px; line-height: 1.55; color: var(--mg-mute);
}
.mg-domain:hover .mg-type, .mg-domain:hover .mg-img, .mg-domain:focus-visible .mg-img, .mg-domain:focus-visible .mg-type { transform: scale(1.025); }
.mg-domain:hover .mg-card-title, .mg-domain:focus-visible .mg-card-title { color: #F3EBD2; }

.mg-domain-head { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 40px; align-items: center; margin: 0 0 34px; }
.mg-domain-title { margin: 10px 0 0; font-family: 'Spectral', serif; font-weight: 300; font-size: 52px; line-height: 1.05; color: rgba(234,224,196,.96); }
.mg-domain-blurb { margin: 16px 0 0; max-width: 420px; font-family: 'Spectral', serif; font-style: italic; font-weight: 300; font-size: 19px; line-height: 1.55; color: var(--mg-mute); }

.mg-rows { border-top: .5px solid var(--mg-rule); }
.mg-row {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto; column-gap: 20px; align-items: baseline;
  width: 100%; text-align: left; cursor: pointer; background: transparent; border: 0; border-bottom: .5px solid var(--mg-rule);
  padding: 26px 0 24px; color: inherit;
  animation: mgRise .6s calc(var(--i, 0) * 60ms) cubic-bezier(.22,.8,.3,1) both;
}
.mg-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--mg-tc);
  transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.22,.8,.3,1);
}
.mg-row:hover::after, .mg-row:focus-visible::after { transform: scaleX(1); }
.mg-row-n { font-family: 'Spectral', serif; font-weight: 300; font-size: 20px; color: var(--mg-tc-soft); font-variant-numeric: tabular-nums; }
.mg-row-text { display: block; min-width: 0; }
.mg-row-title { display: block; font-family: 'Spectral', serif; font-weight: 300; font-size: 30px; line-height: 1.2; color: rgba(234,224,196,.94); }
.mg-row:hover .mg-row-title, .mg-row:focus-visible .mg-row-title { color: #F3EBD2; }
.mg-row-deck { display: block; margin-top: 8px; max-width: 640px; font-family: 'Spectral', serif; font-weight: 300; font-size: 17px; line-height: 1.55; color: var(--mg-mute); }
.mg-row-meta { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mg-faint); white-space: nowrap; }

.mg-status {
  min-height: 20px; margin: 28px 0 0; font-family: 'Spectral', serif; font-style: italic; font-weight: 300;
  font-size: 16px; line-height: 1.6; color: var(--mg-mute);
}
.mg-status .mg-btn { margin-left: 12px; font-style: normal; }

/* ── Story: one reading column ────────────────────────────────────────────── */
.mg-back { margin-bottom: 26px; }
.mg-col { max-width: 700px; margin: 0 auto; }
.mg-head { margin-bottom: 28px; }
.mg-title {
  margin: 12px 0 0; font-family: 'Spectral', serif; font-weight: 300; font-size: 46px; line-height: 1.08;
  color: rgba(234,224,196,.96); outline: none;
}
.mg-deck { margin: 18px 0 0; font-family: 'Spectral', serif; font-style: italic; font-weight: 300; font-size: 21px; line-height: 1.55; color: var(--mg-mute); }
.mg-figure { margin: 0 0 30px; }
.mg-figure .mg-media { aspect-ratio: 16 / 9; }
.mg-figure .mg-type-cat { font-size: 44px; }
.mg-credit { margin-top: 8px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--mg-faint); }
.mg-credit a { color: var(--mg-mute); }

.mg-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 30px; padding: 14px 0; border-top: .5px solid var(--mg-rule); border-bottom: .5px solid var(--mg-rule); }
.mg-toggle {
  height: 34px; padding: 0 18px; border-radius: 18px; cursor: pointer; background: transparent;
  border: .5px solid rgba(212,137,109,.55); color: var(--mg-tc-soft);
  font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: .04em; transition: background .2s, color .2s;
}
.mg-toggle:hover { background: rgba(212,137,109,.1); color: #E5A58D; }
.mg-toggle[aria-pressed="true"] { background: rgba(212,137,109,.14); color: #E5A58D; }
.mg-tools-hint { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--mg-faint); }

.mg-sec { margin: 0 0 26px; }
.mg-h2 { margin: 34px 0 12px; font-family: 'Spectral', serif; font-style: italic; font-weight: 300; font-size: 24px; line-height: 1.25; color: rgba(234,224,196,.9); }
.mg-fr { margin: 0; font-family: 'Spectral', serif; font-weight: 300; font-size: 21px; line-height: 1.75; color: var(--mg-ink); }
.mg-body > .mg-sec:first-child > .mg-fr::first-letter {
  float: left; font-size: 3.5em; line-height: .85; padding: 6px 10px 0 0; color: var(--mg-tc-soft);
}
.mg-en {
  margin: 10px 0 0; padding-left: 16px; border-left: 1px solid rgba(212,137,109,.5);
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--mg-mute);
}
.mg-pull { margin: 40px 0; padding: 4px 0 4px 26px; border-left: 1px solid var(--mg-tc); }
.mg-pull-fr { margin: 0; font-family: 'Spectral', serif; font-style: italic; font-weight: 300; font-size: 30px; line-height: 1.35; color: rgba(234,224,196,.95); }

.mg-notes { margin-top: 48px; padding-top: 28px; border-top: .5px solid var(--mg-rule); }
.mg-notes-h { margin: 28px 0 14px; }
.mg-notes-h:first-child { margin-top: 0; }
.mg-words, .mg-notelist { list-style: none; margin: 0; padding: 0; }
.mg-words { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.mg-word { display: block; }
.mg-word-fr { display: block; font-family: 'Spectral', serif; font-weight: 400; font-size: 19px; line-height: 1.35; color: var(--mg-cream); }
.mg-word-en { display: block; margin-top: 2px; font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--mg-mute); }
.mg-word-note { display: block; margin-top: 4px; font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 13px; line-height: 1.55; color: var(--mg-faint); }
.mg-note { padding: 18px 0; border-top: .5px solid var(--mg-rule); }
.mg-note:first-child { border-top: 0; padding-top: 0; }
.mg-note-title { margin: 0; font-family: 'Spectral', serif; font-weight: 400; font-size: 20px; line-height: 1.3; color: var(--mg-cream); }
.mg-note-text { margin: 8px 0 0; font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--mg-mute); }
.mg-note-ex { margin: 8px 0 0; font-family: 'Spectral', serif; font-style: italic; font-weight: 300; font-size: 17px; line-height: 1.55; color: var(--mg-tc-soft); }

.mg-go { margin: 36px 0 0; font-family: 'DM Sans', sans-serif; font-size: 13px; letter-spacing: .04em; }
.mg-go a { color: var(--mg-tc-soft); text-decoration: none; border-bottom: .5px solid rgba(212,137,109,.5); padding-bottom: 2px; }
.mg-go a:hover { color: #E5A58D; }

/* ── Think about ──────────────────────────────────────────────────────────── */
.mg-think { margin-top: 48px; padding-top: 28px; border-top: .5px solid var(--mg-rule); }
.mg-thinklist { list-style: none; counter-reset: mgq; margin: 0; padding: 0; }
.mg-thinkitem { counter-increment: mgq; position: relative; padding: 0 0 22px 36px; }
.mg-thinkitem::before {
  content: counter(mgq); position: absolute; left: 0; top: 2px; font-family: 'Spectral', serif; font-size: 20px; color: var(--mg-tc-soft);
}
.mg-think-q { margin: 0; font-family: 'Spectral', serif; font-weight: 300; font-size: 20px; line-height: 1.6; color: var(--mg-ink); }
.mg-think-btn {
  margin-top: 10px; height: 30px; padding: 0 16px; border-radius: 16px; cursor: pointer; background: transparent;
  border: .5px solid rgba(212,137,109,.55); color: var(--mg-tc-soft); font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.mg-think-btn:hover { background: rgba(212,137,109,.12); color: #E5A58D; }
.mg-think-hint { margin: 4px 0 0; font-family: 'Spectral', serif; font-style: italic; font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--mg-mute); }

/* ── Ask île: a slim tab on the right edge that opens on hover and closes when the pointer leaves (as in Studio) ── */
.mg-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; display: flex; overflow: hidden;
  width: 44px; border-left: .5px solid rgba(212,137,109,.7);
  background: #0F0F0E;
  transition: width .38s cubic-bezier(.22,.8,.3,1);
}
.mg-drawer[hidden] { display: none; }
.mg-drawer.is-open { width: min(420px, 92vw); background: #131312; border-left-color: rgba(234,224,196,.28); }
.mg-drawer-tab {
  flex: 0 0 44px; width: 44px; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 62px 0 0;
  background: transparent; border: 0; cursor: pointer; color: var(--mg-ink); transition: color .2s;
}
.mg-drawer-tab:hover, .mg-drawer.is-open .mg-drawer-tab { color: var(--mg-cream); }
.mg-drawer-bar {                                     /* slim terracotta bar that keeps breathing so the tab is noticed (no glow, no wash) */
  display: block; width: 2px; height: 38px; background: var(--mg-tc-soft); border-radius: 1px; transform-origin: center;
  animation: mgNudge 2.4s ease-in-out infinite;
}
.mg-drawer-label { writing-mode: vertical-rl; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: none; }   /* "île" is always lowercase (brand) */
.mg-drawer-body {
  flex: 0 0 auto; box-sizing: border-box; width: min(376px, calc(92vw - 44px)); height: 100%; padding: 52px 26px 24px 8px; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s linear .25s;
}
.mg-drawer.is-open .mg-drawer-body { visibility: visible; opacity: 1; transition: opacity .3s .12s, visibility 0s; }

.mg-ask { margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100%; }
.mg-ask-title { margin: 0 0 8px; font-family: 'Spectral', serif; font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.25; color: rgba(234,224,196,.9); text-transform: none; }
.mg-ask-sub { margin: 0 0 18px; font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 13.5px; line-height: 1.65; color: var(--mg-mute); }
.mg-out { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.mg-q { margin: 0 0 10px; font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.6; color: var(--mg-faint); white-space: pre-wrap; }
.mg-a { margin: 0 0 16px; font-family: 'Spectral', serif; font-weight: 300; font-size: 17px; line-height: 1.65; color: var(--mg-ink); white-space: pre-wrap; }
.mg-err { margin: 0 0 14px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #E5A58D; }
.mg-compose { display: flex; gap: 10px; align-items: flex-end; flex: 0 0 auto; }
.mg-input {
  flex: 1; min-width: 0; resize: none; padding: 10px 14px; box-sizing: border-box; border-radius: 6px; max-height: 120px;
  background: rgba(255,255,255,.04); border: .5px solid rgba(255,255,255,.16); color: var(--mg-ink);
  font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.5;
}
.mg-input::placeholder { color: var(--mg-faint); }
.mg-send {
  height: 40px; padding: 0 22px; border-radius: 20px; cursor: pointer; background: rgba(212,137,109,.14);
  border: .5px solid rgba(212,137,109,.55); color: #E5A58D; font-family: 'DM Sans', sans-serif; font-size: 13px; letter-spacing: .04em;
}
.mg-send:hover { background: rgba(212,137,109,.22); }
.mg-send:disabled { opacity: .5; cursor: default; }
.mg-ask-foot { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 300; line-height: 1.6; color: var(--mg-faint); }
.mg-wave { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.mg-wave i { width: 3px; height: 8px; background: var(--mg-tc-soft); border-radius: 2px; animation: mgWave 1s ease-in-out infinite; }
.mg-wave i:nth-child(2) { animation-delay: .12s; } .mg-wave i:nth-child(3) { animation-delay: .24s; }
.mg-wave i:nth-child(4) { animation-delay: .36s; } .mg-wave i:nth-child(5) { animation-delay: .48s; }

@keyframes mgRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mgNudge { 0%, 100% { opacity: .55; transform: scaleY(.85); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes mgWave { 0%, 100% { height: 6px; opacity: .5; } 50% { height: 16px; opacity: 1; } }

/* Listen: read the French aloud with the browser voice (device-only) */
.mg-listenbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: -14px 0 28px; }
.mg-speed { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--mg-faint); }
.mg-speed-sel {
  height: 30px; padding: 0 8px; border-radius: 8px; background: transparent; color: var(--mg-mute);
  border: .5px solid rgba(255,255,255,.18); font-family: 'DM Sans', sans-serif; font-size: 12px;
}
.mg-speed-sel option { background: #1a1a18; color: var(--mg-ink); }
.mg-speed-sel:disabled { opacity: .45; cursor: not-allowed; }
.mg-voice, .mg-speech-status { flex-basis: 100%; margin: 0; font-family: 'DM Sans', sans-serif; font-size: 12px; line-height: 1.5; color: var(--mg-faint); }
.mg-speech-status:empty { display: none; }
.mg-speech-status.is-error { color: var(--mg-tc-soft); }
.mg-listen {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; margin: 8px 0 0; border-radius: 16px; cursor: pointer;
  background: transparent; border: .5px solid rgba(212,137,109,.45); color: var(--mg-tc-soft);
  font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: .04em; transition: background .2s, color .2s;
}
.mg-listen-i { font-size: 10px; line-height: 1; }
.mg-listen:hover { background: rgba(212,137,109,.1); color: #E5A58D; }
.mg-listen[aria-pressed="true"] { background: rgba(212,137,109,.16); color: #E5A58D; }
.mg-listen:focus-visible, .mg-speed-sel:focus-visible { outline: 2px solid var(--mg-tc-soft); outline-offset: 2px; }
.mg-pull .mg-listen { margin-top: 12px; }
.mg-word-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mg-word-line .mg-listen { margin: 0; height: 26px; padding: 0 10px; flex: none; }
.mg-word-line .mg-word-fr { flex: 1 1 auto; min-width: 0; }
@media (max-width: 899px) {
  .mg-listen { height: 40px; padding: 0 16px; }
  .mg-word-line .mg-listen { height: 40px; }
  .mg-speed-sel { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-listen { transition: none; }
  .mg-domain, .mg-row { animation: none; }
  .mg-wave i { animation: none; }
  .mg-img, .mg-type, .mg-chip::after, .mg-row::after { transition: none; }
  .mg-domain:hover .mg-type, .mg-domain:hover .mg-img { transform: none; }
  .mg-drawer, .mg-drawer-body, .mg-scroll { transition: none; }
  .mg-drawer-bar { animation: none; opacity: .9; }
}

@media (max-width: 1099px) {
  .mg-domains { grid-template-columns: repeat(2, 1fr); }
  .mg-masthead-title { font-size: 60px; }
}
@media (max-width: 899px) {
  .mg-scroll { padding: 28px 16px 72px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: 56px; }
  .mg-masthead-top { flex-direction: column; gap: 6px; align-items: flex-start; }
  .mg-masthead-title { font-size: 46px; }
  .mg-masthead-sub { text-align: left; max-width: none; font-size: 15px; }
  .mg-chips { gap: 22px; margin: 18px -16px 26px; padding: 0 16px; }
  .mg-domains { grid-template-columns: 1fr; gap: 36px; }
  .mg-domain-head { grid-template-columns: 1fr; gap: 20px; }
  .mg-domain-title { font-size: 38px; }
  .mg-row { grid-template-columns: 34px 1fr; column-gap: 14px; padding: 22px 0 20px; }
  .mg-row-meta { grid-column: 2; margin-top: 10px; white-space: normal; }
  .mg-row-title { font-size: 24px; }
  .mg-title { font-size: 34px; }
  .mg-deck { font-size: 19px; }
  .mg-fr { font-size: 19px; }
  .mg-pull-fr { font-size: 25px; }
  .mg-words { grid-template-columns: 1fr; }
  .mg-drawer-body { padding-top: 32px; }
  .mg-drawer-tab { padding-top: 40px; }
  .mg-compose { flex-direction: column; align-items: stretch; }
  .mg-send { width: 100%; }
}
