/* 1.23.10: article magazine (index + article page). Colours only from the theme tokens of site.css. */

body.page-mag main { padding-top: 0; }
body.page-article.page-mag main { padding-top: 112px; }
.mag-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }

/* ---------- hero (index) ---------- */
.mag-hero { position: relative; min-height: clamp(420px, 56vh, 560px); display: flex; align-items: center; overflow: hidden; margin-bottom: clamp(26px, 4vw, 40px); padding: 120px 0 60px; isolation: isolate; }
.mag-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.mag-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--nv-bg-rgb), .15) 0%, rgba(var(--nv-bg-rgb), .45) 42%, rgba(var(--nv-bg-rgb), .9) 68%, rgba(var(--nv-bg-rgb), .96) 100%),
              linear-gradient(180deg, rgba(var(--nv-bg-rgb), .65) 0%, transparent 28%, transparent 70%, rgba(var(--nv-bg-rgb), 1) 100%); }
.mag-hero-inner { display: flex; justify-content: flex-end; width: 100%; }
.mag-hero-copy { width: min(540px, 100%); }
.mag-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.mag-hero .lead { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; margin: 0 0 28px; }
.mag-search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(var(--nv-surf-rgb), .72); border: 1px solid var(--line-gold); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--muted); }
.mag-search:focus-within { border-color: rgba(var(--nv-gold-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--nv-gold-rgb), .12); }
.mag-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15.5px; outline: none; }
.mag-search input::placeholder { color: var(--muted); }
.mag-search button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--gold-grad); color: var(--nv-on-gold); box-shadow: var(--nv-shadow-gold); transition: transform .25s var(--ease-out); }
.mag-search button:hover { transform: translateX(2px); }

/* ---------- layout ---------- */
.mag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 2.4vw, 30px); align-items: start; }
.mag-main { display: grid; gap: clamp(20px, 2.4vw, 28px); min-width: 0; }
.mag-side { display: grid; gap: 22px; position: sticky; top: 100px; }
.mag-side-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.22rem; font-weight: 800; margin: 0 0 16px; letter-spacing: -.01em; }
.mag-side-title .ic { color: var(--gold); }
.mag-cats .mag-side-title::after { content: ""; flex: 0 0 38px; height: 1px; background: var(--gold-grad); margin-left: 6px; }
.mag-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mag-section-head h2 { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; letter-spacing: -.02em; }
.mag-section-head h2::after { content: ""; width: 64px; height: 1px; background: var(--gold-grad); }

/* ---------- badges / meta ---------- */
.mag-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none; color: var(--gold-2); background: rgba(var(--nv-bg2-rgb), .82); border: 1px solid rgba(var(--nv-gold-rgb), .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; transition: background .25s, color .25s; }
.mag-badge:hover { background: rgba(var(--nv-gold-rgb), .16); color: var(--text); }
.mag-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13.5px; }
.mag-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.mag-meta .ic { color: var(--gold); opacity: .85; }

/* ---------- featured ---------- */
.mag-featured { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; padding: 0; border-radius: 22px; }
.mag-featured-media { position: relative; display: block; min-height: 280px; overflow: hidden; }
.mag-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mag-featured:hover .mag-featured-media img { transform: scale(1.04); }
.mag-featured-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(var(--nv-bg2-rgb), .85)); }
.mag-flag { position: absolute; top: 18px; left: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--gold-grad); color: var(--nv-on-gold); font-size: 13px; font-weight: 700; box-shadow: var(--nv-shadow-gold); }
.mag-flag .ic { fill: currentColor; }
.mag-featured-body { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mag-featured h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.02em; margin: 2px 0 0; }
.mag-featured h2 a, .mag-card h3 a { color: inherit; text-decoration: none; }
.mag-featured h2 a:hover, .mag-card h3 a:hover { color: var(--gold-2); }
.mag-featured p { color: var(--text-2); line-height: 1.7; margin: 0; }
.mag-featured .mag-meta { margin-top: auto; width: 100%; padding-top: 6px; }
.mag-more { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; text-decoration: none; }
.mag-more:hover { color: var(--gold-2); }
.mag-more .ic { transition: transform .25s var(--ease-out); }
.mag-more:hover .ic { transform: translateX(3px); }

/* ---------- cards ---------- */
.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.mag-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mag-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; border-radius: 18px; transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s; }
.mag-card:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: 0 30px 60px -36px rgba(0,0,0,.8); }
.mag-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(var(--nv-surf-rgb), .6); }
.mag-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mag-card:hover .mag-card-media img { transform: scale(1.05); }
.mag-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(var(--nv-bg2-rgb), .7)); }
.mag-card-badge { position: absolute; left: 16px; top: calc((100% * 0) + 14px); z-index: 1; }
.mag-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 18px; flex: 1; }
.mag-card h3 { font-family: var(--display); font-size: 1.12rem; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.mag-card p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin: 0; }
.mag-card .mag-meta { margin-top: auto; padding-top: 8px; font-size: 13px; }
.mag-go { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--nv-on-gold); background: var(--gold-grad); box-shadow: var(--nv-shadow-gold); transition: transform .25s var(--ease-out); }
.mag-meta .mag-go .ic { color: var(--nv-on-gold); opacity: 1; }
.mag-featured h2, .mag-card h3, .mag-article-head h1, .mag-hero h1, .mag-related b { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
.mag-go:hover { transform: translateX(2px); }

/* ---------- sidebar: categories ---------- */
.mag-cats, .mag-toc, .mag-related, .mag-news { padding: 24px; border-radius: 22px; }
.mag-cats ul, .mag-toc ol, .mag-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mag-cats a { display: flex; align-items: center; gap: 14px; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 15px; transition: background .25s, color .25s; }
.mag-cats a .ic { color: var(--gold); flex: none; }
.mag-cats a span { flex: 1; }
.mag-cats a b { min-width: 30px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(var(--nv-fg-rgb), .06); border: 1px solid var(--line); }
.mag-cats a:hover, .mag-cats a.on { background: rgba(var(--nv-gold-rgb), .08); color: var(--gold-2); }
.mag-cats a.on b { color: var(--nv-on-gold); background: var(--gold-grad); border-color: transparent; }

/* ---------- newsletter ---------- */
.mag-news { position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.mag-news::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 90%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--nv-glow-rgb), .35), transparent); }
.mag-news-ic { display: inline-grid; place-items: center; color: var(--gold); margin-bottom: 6px; transform: rotate(-8deg); }
.mag-news h2 { font-family: var(--display); font-size: 1.45rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.mag-news p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.mag-news-form { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 999px; background: rgba(var(--nv-bg-rgb), .55); border: 1px solid var(--line-gold); }
.mag-news-form:focus-within { border-color: rgba(var(--nv-gold-rgb), .6); }
.mag-news-form input[type=email] { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; outline: none; }
.mag-news-form input::placeholder { color: var(--muted); }
.mag-news-form button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--nv-on-gold); background: var(--gold-grad); box-shadow: var(--nv-shadow-gold); }
.mag-news-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mag-news-ok { display: flex; gap: 8px; align-items: flex-start; text-align: left; color: var(--ok) !important; margin: 0 !important; }
.mag-news-err { color: var(--bad) !important; margin: 0 0 10px !important; }

/* ---------- filters / empty ---------- */
.mag-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 16px; }
.mag-filter b { display: block; font-family: var(--display); font-size: 1.1rem; }
.mag-filter small { color: var(--muted); }
.mag-reset { color: var(--gold-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.mag-empty { padding: 28px; border-radius: 18px; color: var(--text-2); margin: 0; }

/* ---------- article page ---------- */
.mag-crumbs { align-items: center; gap: 10px; }
.mag-crumbs a { display: inline-flex; align-items: center; }
.mag-crumbs [aria-current] { color: var(--text); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mag-article { min-width: 0; }
.mag-cover { position: relative; margin: 0 0 clamp(22px, 3vw, 32px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line-gold); aspect-ratio: 16 / 7.4; background: rgba(var(--nv-surf-rgb), .6); box-shadow: 0 40px 90px -50px rgba(0,0,0,.9); }
.mag-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-cover-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); opacity: .5; }
.mag-cover-badge { position: absolute; left: 22px; bottom: 20px; height: 34px; padding: 0 18px; font-size: 14px; }
.mag-article-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.07; letter-spacing: -.03em; margin: 0 0 16px; }
.mag-lead { color: var(--text-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; margin: 0 0 24px; max-width: 70ch; }
.mag-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; padding: 0 0 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line-2); color: var(--text); font-size: 15px; }
.mag-by { display: inline-flex; align-items: center; gap: 10px; }
.mag-by .ic { color: var(--gold); }
.mag-author img, .mag-author-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-gold); }
.mag-author-mark { display: grid; place-items: center; color: var(--gold); background: rgba(var(--nv-surf-rgb), .8); }
.mag-author-mark svg { width: 18px; height: 18px; }
.mag-share { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.mag-share small { color: var(--text-2); font-size: 14px; margin-right: 4px; }
.mag-share a, .mag-share button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--text); border: 1px solid var(--line-2); background: rgba(var(--nv-fg-rgb), .04); cursor: pointer; transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease-out); }
.mag-share a:hover, .mag-share button:hover { color: var(--gold-2); border-color: rgba(var(--nv-gold-rgb), .55); transform: translateY(-2px); }
.mag-share button.done { color: var(--ok); border-color: var(--ok); }

/* body */
.mag-body { color: var(--text-2); font-size: 1.06rem; line-height: 1.8; }
.mag-body::after { content: ""; display: table; clear: both; }
.mag-body > *:first-child { margin-top: 0; }
.mag-body h2 { font-family: var(--display); color: var(--text); font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2; letter-spacing: -.02em; margin: 1.8em 0 .6em; scroll-margin-top: 110px; }
.mag-body h3 { font-family: var(--display); color: var(--text); font-size: 1.22rem; margin: 1.5em 0 .5em; scroll-margin-top: 110px; }
.mag-body h4 { color: var(--text); font-size: 1.05rem; margin: 1.3em 0 .4em; }
.mag-body p { margin: 0 0 1.1em; }
.mag-body strong, .mag-body b { color: var(--text); }
.mag-body a { color: var(--gold-2); text-underline-offset: 3px; }
.mag-body ul, .mag-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.mag-body li { margin: .35em 0; }
.mag-body li::marker { color: var(--gold); }
.mag-body hr { border: 0; height: 1px; background: var(--line-2); margin: 2em 0; }
.mag-body mark { background: rgba(var(--nv-gold-rgb), .22); color: var(--text); padding: 0 .2em; border-radius: 4px; }
.mag-body code { font-size: .92em; background: rgba(var(--nv-fg-rgb), .07); padding: .1em .35em; border-radius: 6px; }
.mag-body pre { overflow-x: auto; padding: 16px 18px; border-radius: 14px; background: rgba(var(--nv-bg-rgb), .7); border: 1px solid var(--line); font-size: .9rem; }
.mag-body .nv-table { overflow-x: auto; margin: 0 0 1.4em; }
.mag-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mag-body th, .mag-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.mag-body th { color: var(--text); font-weight: 700; }
.nv-keypoints { padding: 22px 26px; margin: 0 0 1.6em; border-radius: 18px; border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(var(--nv-surf-rgb), .7), rgba(var(--nv-bg2-rgb), .6)); }
.mag-body .nv-keypoints h3, .nv-keypoints h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--gold-2); }
.nv-keypoints ul { list-style: none; padding: 0; margin: 0; }
.nv-keypoints li { position: relative; padding-left: 30px; }
.nv-keypoints li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.nv-callout { padding: 18px 22px; margin: 0 0 1.4em; border-radius: 14px; border-left: 3px solid var(--gold); background: rgba(var(--nv-gold-rgb), .07); color: var(--text); }
.nv-callout > *:last-child { margin-bottom: 0; }
.nv-quote, .mag-body blockquote { position: relative; margin: 1.6em 0; padding: 22px 26px 20px 74px; border-radius: 18px; border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(var(--nv-surf-rgb), .75), rgba(var(--nv-bg2-rgb), .6)); color: var(--text); font-style: italic; font-size: 1.12rem; line-height: 1.6; clear: none; }
.nv-quote::before, .mag-body blockquote::before { content: "\201C"; position: absolute; left: 20px; top: 6px; font-family: Georgia, serif; font-style: normal; font-size: 4.2rem; line-height: 1; color: var(--gold); }
.mag-body blockquote p { margin: 0; }
.mag-body blockquote cite { display: block; margin-top: 8px; font-size: .82rem; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mag-body blockquote cite::before { content: "– "; }
.mag-body figure { margin: 1.6em 0; }
.mag-body figure img, .mag-body p > img { display: block; max-width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-gold); box-shadow: 0 30px 70px -45px rgba(0,0,0,.9); }
.mag-body figure.is-wide img { width: 100%; }
.mag-body figure.is-right { float: right; width: min(46%, 400px); margin: .4em 0 1.2em 28px; }
.mag-body figure.is-left { float: left; width: min(46%, 400px); margin: .4em 28px 1.2em 0; }
.mag-body figure.is-center { text-align: center; }
.mag-body figure.is-center img { margin-inline: auto; }
.mag-body figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); text-align: center; }
.mag-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.mag-tags > span { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.mag-tags a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 13.5px; }
.mag-tags a:hover { color: var(--gold-2); border-color: rgba(var(--nv-gold-rgb), .5); }
.mag-service { margin-top: 26px; }

/* toc + related */
.mag-toc ol { counter-reset: toc; }
.mag-toc a { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 14px; margin-left: -14px; border-radius: 12px; color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.35; transition: color .25s, background .25s; }
.mag-toc a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: transparent; transition: background .25s; }
.mag-toc .num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .25s; }
.mag-toc a:hover, .mag-toc a.on { color: var(--gold-2); background: rgba(var(--nv-gold-rgb), .06); }
.mag-toc a.on::before { background: var(--gold-grad); }
.mag-toc a.on .num { background: var(--gold-grad); border-color: transparent; color: var(--nv-on-gold); }
.mag-related li + li { border-top: 1px solid var(--line); }
.mag-related a { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--text); text-decoration: none; }
.mag-related img { flex: none; width: 104px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.mag-related span { flex: 1; display: grid; gap: 6px; }
.mag-related b { font-size: 14.5px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mag-related small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.mag-related small .ic { color: var(--gold); }
.mag-related .go { flex: none; color: var(--text-2); transition: transform .25s var(--ease-out), color .25s; }
.mag-related a:hover b { color: var(--gold-2); }
.mag-related a:hover .go { transform: translateX(3px); color: var(--gold-2); }
.mag-toc-mobile { display: none; }
.mag-preview-bar { position: sticky; top: 0; z-index: 120; text-align: center; padding: 10px 16px; background: var(--gold-grad); color: var(--nv-on-gold); font-weight: 700; }
.mag-article-side .mag-side-title .ic { flex: none; }

/* ---------- light theme ---------- */
:root[data-theme="light"] .mag-hero::after { background: linear-gradient(90deg, rgba(var(--nv-bg-rgb), .05) 0%, rgba(var(--nv-bg-rgb), .4) 42%, rgba(var(--nv-bg-rgb), .9) 66%, rgba(var(--nv-bg-rgb), .97) 100%), linear-gradient(180deg, rgba(var(--nv-bg-rgb), .55) 0%, transparent 26%, transparent 72%, rgba(var(--nv-bg-rgb), 1) 100%); }
:root[data-theme="light"] .mag-card-media::after, :root[data-theme="light"] .mag-featured-media::after { opacity: .35; }
:root[data-theme="light"] .mag-card:hover { box-shadow: 0 30px 60px -36px rgba(30,45,70,.35); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .mag-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mag-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1100px) {
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-featured { grid-template-columns: minmax(0, 1fr); }
  .mag-featured-media { aspect-ratio: 16 / 8; min-height: 0; }
  .mag-featured-media::after { background: linear-gradient(180deg, transparent 60%, rgba(var(--nv-bg2-rgb), .7)); }
}
@media (max-width: 960px) {
  .mag-layout { grid-template-columns: minmax(0, 1fr); }
  .mag-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .mag-article-side .mag-toc { display: none; }
  .mag-toc-mobile { display: block; margin: 0 0 24px; padding: 14px 18px; border-radius: 14px; }
  .mag-toc-mobile summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--text); }
  .mag-toc-mobile summary .ic { color: var(--gold); }
  .mag-toc-mobile ol { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
  .mag-toc-mobile a { color: var(--text-2); text-decoration: none; }
  .mag-hero-inner { justify-content: flex-start; }
  .mag-hero::after { background: linear-gradient(180deg, rgba(var(--nv-bg-rgb), .7) 0%, rgba(var(--nv-bg-rgb), .55) 40%, rgba(var(--nv-bg-rgb), .92) 85%, rgba(var(--nv-bg-rgb), 1) 100%); }
}
@media (max-width: 680px) {
  body.page-article.page-mag main { padding-top: 92px; }
  .mag-hero { min-height: 0; padding: 110px 0 36px; }
  .mag-grid, .mag-grid-4, .mag-side { grid-template-columns: minmax(0, 1fr); }
  .mag-cover { aspect-ratio: 16 / 10; border-radius: 16px; }
  .mag-cover-badge { left: 14px; bottom: 14px; height: 30px; font-size: 13px; }
  .mag-byline { gap: 12px 18px; font-size: 14px; }
  .mag-share { margin-left: 0; width: 100%; }
  .mag-body figure.is-right, .mag-body figure.is-left { float: none; width: 100%; margin: 1.2em 0; }
  .nv-quote, .mag-body blockquote { padding: 18px 18px 18px 58px; font-size: 1.02rem; }
  .nv-quote::before, .mag-body blockquote::before { left: 14px; font-size: 3.4rem; }
  .mag-crumbs [aria-current] { max-width: 100%; white-space: normal; }
  .mag-section-head h2::after { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .mag-card, .mag-card img, .mag-featured img { transition: none !important; }
}
