/* =========================================================
   MANGIAPELO MODERN 2026
   Camada visual responsiva para o CMS existente
   ========================================================= */

:root {
  --mg-bg: #f5f5f3;
  --mg-surface: #ffffff;
  --mg-ink: #111214;
  --mg-muted: #6f7378;
  --mg-line: #dedfdf;
  --mg-soft: #ececea;
  --mg-accent: #8b211b;
  --mg-accent-2: #b5352d;
  --mg-dark: #0c0d0f;
  --mg-radius-sm: 14px;
  --mg-radius: 20px;
  --mg-radius-lg: 30px;
  --mg-shadow: 0 22px 70px rgba(15, 18, 22, .08);
  --mg-shell: 1240px;
  --mg-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mg-site {
  margin: 0;
  background: var(--mg-bg) !important;
  color: var(--mg-ink);
  font-family: var(--mg-font) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.mg-menu-open { overflow: hidden; }
.mg-page { min-height: 100vh; overflow: clip; }
.mg-shell { width: min(calc(100% - 56px), var(--mg-shell)); margin-inline: auto; }
.mg-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

body.mg-site a { color: inherit; text-decoration: none; }
body.mg-site a:hover, body.mg-site a:focus { color: var(--mg-accent); text-decoration: none; }
body.mg-site img { max-width: 100%; }
body.mg-site button, body.mg-site input { font: inherit; }

/* ticker */
.mg-ticker {
  display: flex;
  width: 100%;
  min-height: 42px;
  background: var(--mg-dark);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mg-ticker-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 0 20px;
  background: var(--mg-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mg-live-dot { width: 7px; height: 7px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.16); }
.mg-ticker-viewport { min-width: 0; flex: 1; overflow: hidden; }
.mg-ticker-track { display: flex; width: max-content; height: 42px; animation: mgTicker 48s linear infinite; will-change: transform; }
.mg-ticker:hover .mg-ticker-track { animation-play-state: paused; }
.mg-ticker-group { display: flex; align-items: center; height: 42px; }
.mg-ticker-group a { color: #f7f7f7 !important; white-space: nowrap; font-size: 12px; font-weight: 650; }
.mg-ticker-group span { padding: 0 28px; color: #cf5b53; }
@keyframes mgTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* header */
.mg-header { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--mg-line); position: relative; z-index: 1000; backdrop-filter: saturate(150%) blur(18px); }
.mg-meta-row { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--mg-soft); color: var(--mg-muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.mg-brand-row { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.mg-brand { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; justify-content: center; color: var(--mg-ink) !important; font-size: clamp(36px, 5vw, 64px); font-weight: 850; letter-spacing: -.055em; line-height: 1; }
.mg-brand img { display: block; width: auto; max-width: min(430px, 58vw); max-height: 74px; object-fit: contain; }
.mg-header-actions { grid-column: 3; justify-self: end; display: flex; gap: 8px; align-items: center; }
.mg-icon-button, .mg-menu-toggle { width: 44px; height: 44px; border: 1px solid var(--mg-line); border-radius: 999px; background: #fff; color: var(--mg-ink); display: inline-grid; place-items: center; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.mg-icon-button:hover, .mg-menu-toggle:hover { transform: translateY(-1px); border-color: #bfc1c3; background: #fafafa; }
.mg-search-icon { width: 16px; height: 16px; border: 1.8px solid currentColor; border-radius: 50%; position: relative; }
.mg-search-icon:after { content:""; position:absolute; width:7px; height:1.8px; background:currentColor; right:-5px; bottom:-2px; transform: rotate(45deg); border-radius:999px; }
.mg-menu-toggle { display: none; padding: 0; align-content: center; gap: 4px; }
.mg-menu-toggle span { width: 17px; height: 1.5px; background: currentColor; transition: transform .22s ease, opacity .22s ease; }
.mg-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mg-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mg-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mg-nav { border-top: 1px solid var(--mg-soft); }
.mg-nav-list { list-style: none; margin: 0; padding: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 32px; }
.mg-nav-list > li { position: relative; list-style: none; }
.mg-nav-list > li > a { display: flex; align-items: center; min-height: 52px; color: var(--mg-ink) !important; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.mg-nav-list > li > a:after { content:""; position:absolute; left:0; right:100%; bottom:9px; height:2px; background:var(--mg-accent); transition:right .22s ease; }
.mg-nav-list > li > a:hover:after { right:0; }
.mg-submenu { position:absolute; left:50%; top:calc(100% - 1px); transform:translateX(-50%) translateY(10px); min-width:220px; margin:0; padding:9px; list-style:none; background:#fff; border:1px solid var(--mg-line); border-radius:16px; box-shadow:var(--mg-shadow); opacity:0; visibility:hidden; transition:opacity .18s ease, transform .18s ease; }
.mg-has-submenu:hover > .mg-submenu, .mg-has-submenu:focus-within > .mg-submenu { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.mg-submenu li { list-style:none; }
.mg-submenu a { display:block; padding:10px 12px; border-radius:9px; color:var(--mg-ink) !important; font-size:12px; font-weight:650; }
.mg-submenu a:hover { background:var(--mg-bg); color:var(--mg-accent) !important; }

.mg-search-panel { border-top:1px solid var(--mg-soft); background:#fff; }
.mg-search-panel[hidden] { display:none !important; }
.mg-search-panel .mg-shell { padding:18px 0; }
.mg-search-form { display:flex; max-width:760px; margin:0 auto; background:var(--mg-bg); border:1px solid var(--mg-line); border-radius:999px; overflow:hidden; }
.mg-search-form input { flex:1 1 auto; min-width:0; height:52px; padding:0 20px; border:0 !important; outline:0 !important; background:transparent !important; box-shadow:none !important; color:var(--mg-ink) !important; font-size:14px !important; }
.mg-search-form button { flex:0 0 auto; height:52px; border:0; padding:0 24px; background:var(--mg-ink); color:#fff; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }
.mg-search-form button:hover { background:var(--mg-accent); }

/* main */
.mg-main { padding: 38px 0 86px; }
.mg-hero { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr); gap:34px; align-items:start; }
.mg-hero-main { min-width:0; }
.mg-media { display:block; overflow:hidden; background:#d9d9d7; border-radius:var(--mg-radius); }
.mg-media img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .55s cubic-bezier(.2,.65,.25,1), filter .35s ease; }
.mg-media:hover img { transform:scale(1.028); filter:saturate(1.03) contrast(1.01); }
.mg-media-hero { aspect-ratio: 16 / 9.8; border-radius:var(--mg-radius-lg); box-shadow:0 15px 50px rgba(0,0,0,.07); }
.mg-story-copy { padding:22px 4px 0; }
.mg-eyebrow, .mg-section-kicker { color:var(--mg-accent); font-size:10px; line-height:1.3; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.mg-story-copy h1 { margin:10px 0 0; max-width:940px; font-size:clamp(38px,4.8vw,68px); line-height:.99; letter-spacing:-.052em; font-weight:820; }
.mg-story-copy h1 a { color:var(--mg-ink) !important; }
.mg-story-copy p { max-width:850px; margin:18px 0 0; color:#555b61; font-size:16px; line-height:1.7; }
.mg-meta { margin-top:15px; display:flex; align-items:center; flex-wrap:wrap; gap:7px; color:var(--mg-muted); font-size:10px; line-height:1.35; font-weight:750; letter-spacing:.07em; text-transform:uppercase; }

.mg-hero-side { border-left:1px solid var(--mg-line); padding-left:28px; display:grid; gap:0; }
.mg-side-story { display:grid; grid-template-columns:112px minmax(0,1fr); gap:17px; align-items:center; padding:0 0 20px; margin:0 0 20px; border-bottom:1px solid var(--mg-line); }
.mg-side-story:last-child { border-bottom:0; margin-bottom:0; padding-bottom:0; }
.mg-media-side { aspect-ratio:1 / 1; border-radius:16px; }
.mg-side-story .mg-meta { margin-top:0; }
.mg-side-story h2 { margin:7px 0 0; font-size:20px; line-height:1.14; letter-spacing:-.03em; font-weight:780; }
.mg-side-story h2 a { color:var(--mg-ink) !important; }

.mg-ad { padding-top:34px; text-align:center; }
.mg-ad:before { content:"Publicidade"; display:block; margin-bottom:8px; color:#96999c; font-size:9px; font-weight:750; letter-spacing:.13em; text-transform:uppercase; }
.mg-ad img { width:auto; max-width:100%; height:auto; border-radius:12px; }

.mg-section { padding-top:58px; }
.mg-section-head { display:flex; align-items:flex-end; gap:20px; margin-bottom:24px; }
.mg-section-head > div:first-child { flex:0 0 auto; }
.mg-section-head h2 { margin:5px 0 0; color:var(--mg-ink); font-size:clamp(30px,3.2vw,44px); line-height:1; letter-spacing:-.045em; font-weight:810; }
.mg-section-head h2 a { color:var(--mg-ink) !important; }
.mg-section-line { flex:1 1 auto; height:1px; background:var(--mg-line); margin-bottom:5px; }
.mg-view-all { margin-left:auto; color:var(--mg-muted) !important; font-size:10px; font-weight:850; letter-spacing:.09em; text-transform:uppercase; padding-bottom:4px; border-bottom:1px solid #bcbfc1; }
.mg-view-all:hover { color:var(--mg-accent) !important; border-color:var(--mg-accent); }

.mg-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.mg-card { overflow:hidden; background:var(--mg-surface); border:1px solid var(--mg-line); border-radius:var(--mg-radius); box-shadow:0 10px 35px rgba(17,18,20,.035); transition:transform .26s ease, box-shadow .26s ease, border-color .26s ease; }
.mg-card:hover { transform:translateY(-4px); box-shadow:var(--mg-shadow); border-color:#cfd1d2; }
.mg-card-media { aspect-ratio:16 / 10; border-radius:0; }
.mg-card-body { padding:20px 20px 22px; }
.mg-card-body .mg-meta { margin-top:0; }
.mg-card h3 { margin:10px 0 0; font-size:24px; line-height:1.08; letter-spacing:-.035em; font-weight:790; }
.mg-card h3 a { color:var(--mg-ink) !important; }
.mg-card p { margin:13px 0 0; color:#63686d; font-size:13px; line-height:1.65; }

.mg-category-section { padding-top:62px; }
.mg-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.mg-category-card { min-width:0; }
.mg-category-media { aspect-ratio:16 / 10; border-radius:18px; }
.mg-category-card .mg-meta { margin-top:15px; }
.mg-category-card h3 { margin:8px 0 0; font-size:20px; line-height:1.12; letter-spacing:-.028em; font-weight:780; }
.mg-category-card h3 a { color:var(--mg-ink) !important; }

/* article */
.mg-article-page { padding-top:44px; padding-bottom:86px; }
.mg-article { max-width:1120px; margin:0 auto; }
.mg-article-header { max-width:980px; margin:0 auto; text-align:left; }
.mg-breadcrumb { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:22px; color:#8a8f93; font-size:10px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.mg-breadcrumb a { color:var(--mg-muted) !important; }
.mg-article-header h1 { max-width:1000px; margin:10px 0 0; color:var(--mg-ink); font-size:clamp(42px,6vw,78px); line-height:.98; letter-spacing:-.055em; font-weight:820; }
.mg-article-deck { max-width:820px; margin:20px 0 0; color:#555b61; font-size:18px; line-height:1.65; }
.mg-article-meta { display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:24px; padding:18px 0 0; border-top:1px solid var(--mg-line); color:var(--mg-muted); font-size:11px; font-weight:650; }
.mg-article-hero { margin:32px 0 0; border-radius:var(--mg-radius-lg); overflow:hidden; background:#d8d8d6; box-shadow:0 18px 55px rgba(0,0,0,.07); }
.mg-article-hero img { display:block; width:100%; aspect-ratio:16 / 9; object-fit:cover; }
.mg-article-layout { display:grid; grid-template-columns:minmax(0,760px) minmax(240px,1fr); gap:58px; align-items:start; margin-top:44px; }
.mg-article-body { min-width:0; color:#2b2d30; font-size:17px; line-height:1.86; }
.mg-article-body p { margin:0 0 25px; color:#2b2d30; font:inherit; line-height:inherit; }
.mg-article-body h2, .mg-article-body h3, .mg-article-body h4 { color:var(--mg-ink); margin:42px 0 17px; line-height:1.08; letter-spacing:-.035em; font-weight:800; }
.mg-article-body h2 { font-size:35px; }
.mg-article-body h3 { font-size:29px; }
.mg-article-body h4 { font-size:23px; }
.mg-article-body a { color:var(--mg-accent) !important; text-decoration:underline !important; text-decoration-thickness:1px !important; text-underline-offset:3px; }
.mg-article-body img { display:block; max-width:100%; height:auto; margin:28px auto; border-radius:18px; }
.mg-article-body iframe { max-width:100%; border-radius:16px; }
.mg-article-body blockquote { margin:34px 0; padding:6px 0 6px 24px; border-left:3px solid var(--mg-accent); color:#3d4145; font-size:24px; line-height:1.45; font-weight:650; }
.mg-article-body ul, .mg-article-body ol { margin-bottom:25px; padding-left:24px; }
.mg-article-body li { margin-bottom:8px; }
.mg-share-block { margin-top:42px; padding-top:24px; border-top:1px solid var(--mg-line); }
.mg-share-block > span { display:block; margin-bottom:14px; color:var(--mg-muted); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.mg-article-side { position:sticky; top:22px; border-left:1px solid var(--mg-line); padding-left:26px; }
.mg-side-title { margin-bottom:20px; color:var(--mg-ink); font-size:20px; font-weight:820; letter-spacing:-.03em; }
.mg-related-item { padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid var(--mg-line); }
.mg-related-item:last-child { border-bottom:0; margin-bottom:0; }
.mg-related-image { display:block; overflow:hidden; border-radius:14px; aspect-ratio:16 / 10; background:#ddd; }
.mg-related-image img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.mg-related-image:hover img { transform:scale(1.03); }
.mg-related-item h3 { margin:10px 0 0; font-size:17px; line-height:1.17; letter-spacing:-.02em; font-weight:760; }
.mg-related-item h3 a { color:var(--mg-ink) !important; }

/* footer */
.mg-footer { background:var(--mg-dark); color:#e8e8e6; }
.mg-footer-grid { display:grid; grid-template-columns:1.25fr 1fr 1fr .8fr; gap:48px; padding-top:58px; padding-bottom:54px; }
.mg-footer h2 { margin:0 0 18px; color:#fff; font-size:12px; font-weight:820; letter-spacing:.1em; text-transform:uppercase; }
.mg-footer-brand { display:inline-block; color:#fff !important; font-size:30px; line-height:1; font-weight:820; letter-spacing:-.05em; }
.mg-footer-copy { margin-top:18px; color:#aeb1b4; font-size:13px; line-height:1.75; }
.mg-footer-copy p { color:inherit !important; font-size:inherit !important; line-height:inherit !important; }
.mg-footer-links { display:grid; gap:13px; }
.mg-footer-links a { color:#d6d8da !important; font-size:13px; line-height:1.35; }
.mg-footer-links a:hover { color:#fff !important; }
.mg-footer-contact p { margin:0 0 10px; color:#aeb1b4; font-size:13px; line-height:1.5; }
.mg-footer-contact a { color:#d6d8da !important; }
.mg-social-list { display:flex; gap:8px; margin-top:20px; }
.mg-social-list a { width:36px; height:36px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.17); border-radius:999px; color:#fff !important; }
.mg-social-list a:hover { border-color:rgba(255,255,255,.55); background:rgba(255,255,255,.06); }
.mg-footer-bottom { border-top:1px solid rgba(255,255,255,.1); }
.mg-footer-bottom .mg-shell { min-height:66px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#8f9397; font-size:11px; }
.mg-footer-bottom p { margin:0 !important; color:inherit !important; }
.mg-back-top { color:#b7babd !important; font-weight:700; }
.mg-floating-top { position:fixed; right:22px; bottom:22px; z-index:900; width:44px; height:44px; border:0; border-radius:999px; background:#fff; color:var(--mg-ink); box-shadow:0 12px 35px rgba(0,0,0,.14); opacity:0; transform:translateY(10px); pointer-events:none; transition:.22s ease; cursor:pointer; }
.mg-floating-top.is-visible { opacity:1; transform:translateY(0); pointer-events:auto; }


/* O corpo da matéria precisa permanecer sempre visível. As animações ficam nas imagens e blocos menores. */
.mg-js .mg-article-body,
.mg-js .mg-article-body.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Scroll reveal. Sem JavaScript, tudo permanece visível. */
.mg-js .reveal { opacity:0; transform:translate3d(0,22px,0); transition:opacity .72s cubic-bezier(.2,.65,.25,1), transform .72s cubic-bezier(.2,.65,.25,1); transition-delay:var(--delay,0ms); }
.mg-js .reveal.is-visible { opacity:1; transform:none; }

/* =========================================================
   Compatibilidade visual com category.php, search.php e pages
   existentes do CMS, sem exigir substituição desses arquivos.
   ========================================================= */
body.mg-site .news { background:var(--mg-bg) !important; padding:40px 0 80px !important; }
body.mg-site .news > .container, body.mg-site .page-wrapper > .container { width:min(calc(100% - 56px), var(--mg-shell)) !important; max-width:none !important; padding-left:0 !important; padding-right:0 !important; }
body.mg-site .news .heading { margin:0 0 24px !important; padding:0 0 14px !important; border-bottom:1px solid var(--mg-line) !important; }
body.mg-site .news .heading h2, body.mg-site .news .heading h2 a { margin:0 !important; padding:0 !important; background:transparent !important; color:var(--mg-ink) !important; font-family:var(--mg-font) !important; font-size:34px !important; line-height:1 !important; font-weight:810 !important; letter-spacing:-.04em !important; }
body.mg-site .news .thumbnail, body.mg-site .news .thumbnail1, body.mg-site .news .thumbnail2 { overflow:hidden !important; padding:0 !important; background:#fff !important; border:1px solid var(--mg-line) !important; border-radius:var(--mg-radius) !important; box-shadow:0 10px 34px rgba(0,0,0,.04) !important; }
body.mg-site .news .thumbnail .photo, body.mg-site .news .thumbnail1 .photo, body.mg-site .news .thumbnail2 .photo { border-radius:0 !important; background-size:cover !important; background-position:center !important; }
body.mg-site .news .thumbnail .caption, body.mg-site .news .thumbnail1 .caption, body.mg-site .news .thumbnail2 .caption { padding:18px 18px 20px !important; }
body.mg-site .news .thumbnail .caption h3, body.mg-site .news .thumbnail .caption h3 a, body.mg-site .news .thumbnail1 .caption h3, body.mg-site .news .thumbnail1 .caption h3 a, body.mg-site .news .thumbnail2 .caption h3, body.mg-site .news .thumbnail2 .caption h3 a { color:var(--mg-ink) !important; font-family:var(--mg-font) !important; font-size:21px !important; line-height:1.12 !important; font-weight:780 !important; letter-spacing:-.03em !important; }
body.mg-site .news .thumbnail .caption h4, body.mg-site .news .thumbnail1 .caption h4, body.mg-site .news .thumbnail2 .caption h4 { color:var(--mg-muted) !important; font-family:var(--mg-font) !important; font-size:10px !important; font-weight:700 !important; }
body.mg-site .news .thumbnail .caption p, body.mg-site .news .thumbnail1 .caption p, body.mg-site .news .thumbnail2 .caption p { color:#63686d !important; font-family:var(--mg-font) !important; font-size:13px !important; line-height:1.65 !important; }
body.mg-site .sidebar, body.mg-site .sidebar-item, body.mg-site .search-sidebar, body.mg-site .newsletter-sidebar { border-radius:18px !important; }
body.mg-site .pagination li a { border-radius:10px !important; margin:0 2px; }
body.mg-site .load-more a, body.mg-site .load-more button { border-radius:999px !important; }

/* tablet */
@media (max-width: 1024px) {
  .mg-shell { width:min(calc(100% - 40px), var(--mg-shell)); }
  .mg-brand-row { min-height:98px; }
  .mg-nav-list { gap:22px; }
  .mg-hero { grid-template-columns:1fr; gap:30px; }
  .mg-hero-side { border-left:0; border-top:1px solid var(--mg-line); padding-left:0; padding-top:26px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
  .mg-side-story { grid-template-columns:124px minmax(0,1fr); margin:0; padding:0; border-bottom:0; }
  .mg-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mg-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 22px; }
  .mg-article-layout { grid-template-columns:minmax(0,1fr) 260px; gap:36px; }
  .mg-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* mobile */
@media (max-width: 767px) {
  :root { --mg-radius:16px; --mg-radius-lg:20px; }
  .mg-shell { width:calc(100% - 32px); }
  .mg-ticker { min-height:40px; }
  .mg-ticker-label { padding:0 13px; font-size:9px; }
  .mg-ticker-track, .mg-ticker-group { height:40px; }
  .mg-ticker-group a { font-size:11px; }
  .mg-ticker-group span { padding:0 18px; }

  .mg-meta-row { min-height:34px; font-size:8px; letter-spacing:.08em; }
  .mg-meta-row span:first-child { display:none; }
  .mg-meta-row { justify-content:flex-end; }
  .mg-brand-row { min-height:80px; grid-template-columns:1fr auto; }
  .mg-brand { grid-column:1; justify-self:start; font-size:34px; }
  .mg-brand img { max-width:220px; max-height:52px; }
  .mg-header-actions { grid-column:2; }
  .mg-menu-toggle { display:grid; }
  .mg-icon-button, .mg-menu-toggle { width:40px; height:40px; }

  .mg-nav { position:fixed; left:0; right:0; top:auto; z-index:999; background:rgba(255,255,255,.98); border-top:1px solid var(--mg-line); box-shadow:0 30px 60px rgba(0,0,0,.14); max-height:calc(100vh - 80px); overflow:auto; opacity:0; visibility:hidden; transform:translateY(-10px); transition:.22s ease; }
  .mg-nav.is-open { opacity:1; visibility:visible; transform:none; }
  .mg-nav .mg-shell { width:100%; }
  .mg-nav-list { display:block; min-height:0; padding:8px 16px 18px; }
  .mg-nav-list > li { border-bottom:1px solid var(--mg-soft); }
  .mg-nav-list > li:last-child { border-bottom:0; }
  .mg-nav-list > li > a { min-height:48px; font-size:12px; }
  .mg-nav-list > li > a:after { display:none; }
  .mg-submenu { position:static; min-width:0; transform:none !important; opacity:1; visibility:visible; box-shadow:none; border:0; border-radius:0; padding:0 0 8px 12px; background:transparent; }
  .mg-submenu a { padding:8px 0; color:var(--mg-muted) !important; }
  .mg-search-panel .mg-shell { padding:14px 0; }
  .mg-search-form input, .mg-search-form button { height:46px; }
  .mg-search-form button { padding:0 18px; }

  .mg-main { padding-top:22px; padding-bottom:62px; }
  .mg-media-hero { aspect-ratio:16 / 10.2; }
  .mg-story-copy { padding-top:17px; }
  .mg-story-copy h1 { font-size:38px; line-height:1.02; }
  .mg-story-copy p { font-size:14px; line-height:1.65; }
  .mg-hero-side { grid-template-columns:1fr; padding-top:20px; gap:0; }
  .mg-side-story { grid-template-columns:104px minmax(0,1fr); gap:14px; padding:0 0 16px; margin:0 0 16px; border-bottom:1px solid var(--mg-line); }
  .mg-side-story:last-child { border-bottom:0; }
  .mg-side-story h2 { font-size:18px; }
  .mg-section { padding-top:44px; }
  .mg-section-head { align-items:center; gap:12px; }
  .mg-section-head h2 { font-size:32px; }
  .mg-section-line { display:none; }
  .mg-card-grid, .mg-category-grid { grid-template-columns:1fr; gap:20px; }
  .mg-card h3 { font-size:23px; }
  .mg-category-card h3 { font-size:21px; }
  .mg-category-media { aspect-ratio:16 / 9.6; }

  .mg-article-page { padding-top:28px; padding-bottom:62px; }
  .mg-article-header h1 { font-size:40px; line-height:1.01; }
  .mg-article-deck { font-size:16px; line-height:1.6; }
  .mg-article-hero { margin-top:24px; }
  .mg-article-layout { display:block; margin-top:32px; }
  .mg-article-body { font-size:16px; line-height:1.8; }
  .mg-article-body h2 { font-size:30px; }
  .mg-article-body h3 { font-size:25px; }
  .mg-article-side { position:static; margin-top:48px; padding-left:0; border-left:0; border-top:1px solid var(--mg-line); padding-top:24px; }
  .mg-related-item { display:grid; grid-template-columns:112px minmax(0,1fr); gap:14px; align-items:center; }
  .mg-related-item h3 { margin:0; }

  .mg-footer-grid { grid-template-columns:1fr; gap:36px; padding-top:46px; padding-bottom:42px; }
  .mg-footer-bottom .mg-shell { min-height:76px; flex-direction:column; align-items:flex-start; justify-content:center; gap:8px; }
  .mg-floating-top { right:16px; bottom:16px; }

  body.mg-site .news > .container, body.mg-site .page-wrapper > .container { width:calc(100% - 32px) !important; }
  body.mg-site .news { padding-top:28px !important; }
  body.mg-site .news .heading h2, body.mg-site .news .heading h2 a { font-size:29px !important; }
}

@media (max-width: 420px) {
  .mg-brand img { max-width:175px; }
  .mg-story-copy h1 { font-size:34px; }
  .mg-article-header h1 { font-size:36px; }
  .mg-section-head h2 { font-size:29px; }
  .mg-view-all { font-size:9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .mg-ticker-track { animation:none; }
  .mg-ticker-viewport { overflow-x:auto; }
  .mg-js .reveal { opacity:1; transform:none; transition:none; }
  .mg-media img, .mg-card, .mg-icon-button, .mg-menu-toggle { transition:none; }
}
