/* =========================================================
   linuxmint.su — magazine design layer, October 2026
   ========================================================= */

:root {
  --bg: #f5f6f3;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e3e7e1;
  --accent: #0b8f62;
  --accent-strong: #07734f;
  --accent-soft: #e5f6ee;
  --dark: #0a1a14;
  --dark-2: #10271f;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(16, 24, 40, .10);
  --max: 1240px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #08110d;
  --surface: #0e1a15;
  --surface-2: #12241c;
  --ink: #edf3ef;
  --ink-2: #c3d0c9;
  --muted: #93a49b;
  --line: #20342a;
  --accent: #3ddc97;
  --accent-strong: #7ee2b4;
  --accent-soft: #102c21;
  --dark: #06100c;
  --dark-2: #0b1d16;
  --shadow: 0 22px 60px rgba(0, 0, 0, .38);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before { display: none !important; }

img { max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- shell ---------- */
.mag-shell { min-height: 100vh; display: flex; flex-direction: column; }
.mag-main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 36px 28px 80px; }
.wrap, .port, .main-col, .main-col-fullwidth, .sidebar { width: auto !important; max-width: none !important; float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.post-wrapper { display: block !important; }

/* ---------- header ---------- */
.mag-header {
  position: sticky; top: 0; z-index: 100;
  width: 100%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.mag-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  height: 76px; display: flex; align-items: center; gap: 30px;
}
.mag-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: 0 0 auto; }
.mag-brand:hover { color: var(--ink); }
.mag-brand__mark { color: var(--accent); display: inline-flex; }
.mag-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.mag-brand__text strong { font-family: var(--font-head); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.mag-brand__text span { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.mag-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mag-nav > a, .mag-nav__more > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: 10px; border: 0; background: transparent;
  color: var(--ink-2); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.mag-nav > a:hover, .mag-nav__more > button:hover { background: var(--surface-2); color: var(--ink); }
.mag-nav__more { position: relative; }
.mag-nav__dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px; display: none; z-index: 120;
}
.mag-nav__dropdown.is-open { display: block; }
.mag-nav__dropdown a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.mag-nav__dropdown a:hover { background: var(--surface-2); color: var(--ink); }

.mag-header__actions { display: flex; align-items: center; gap: 8px; }
.mag-search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; color: var(--muted);
  transition: border-color .2s, background .2s;
}
.mag-search:focus-within { background: var(--surface); border-color: var(--accent); }
.mag-search input { width: 128px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.mag-search input::placeholder { color: var(--muted); }
.mag-icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.mag-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.mag-icon-btn .i-moon { display: none; }
html[data-theme="dark"] .mag-icon-btn .i-sun { display: none; }
html[data-theme="dark"] .mag-icon-btn .i-moon { display: block; }
.mag-burger { display: none; width: 42px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 10px; }
.mag-burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.mag-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mag-burger.is-open span:nth-child(2) { opacity: 0; }
.mag-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- shared ---------- */
.mag-kicker {
  display: inline-block; color: var(--accent); font-size: 11.5px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 9px;
}
.mag-section { margin-top: 58px; }
.mag-section--tinted {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 34px; margin-left: -34px; margin-right: -34px;
}
.mag-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.mag-section-head--tight { margin-bottom: 26px; align-items: center; }
.mag-section-head--small { margin-bottom: 18px; }
.mag-section-head h2, .mag-display {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.035em;
  color: var(--ink); margin: 0; line-height: 1.08;
}
.mag-section-head h2 { font-size: 32px; }
.mag-display { font-size: 42px; max-width: 720px; }
.mag-section-head__lead, .mag-section-head__sub { color: var(--muted); font-size: 15.5px; max-width: 430px; margin: 0; line-height: 1.55; }
.mag-link-arrow { color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.mag-link-arrow:hover { color: var(--accent); }
.mag-chip {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}
.mag-chip:hover { background: var(--accent); color: #fff; }
.mag-chip--light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }

/* ---------- hero ---------- */
.mag-hero-wrap { padding-top: 10px; }
.mag-hero { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 18px; min-height: 540px; }
.mag-hero__main, .mag-hero-card {
  position: relative; overflow: hidden; border-radius: 26px;
  background: var(--dark);
}
.mag-hero__main { min-height: 540px; background-image: linear-gradient(135deg, #0b3b2e, #0a1a14); }
.mag-hero__main[style] { background-image: var(--hero-image); background-size: cover; background-position: center; }
.mag-hero__link { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff; }
.mag-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,16,12,.52) 0%, rgba(4,16,12,.64) 45%, rgba(4,16,12,.95) 100%);
}
.mag-hero__content { position: relative; z-index: 2; padding: 38px 38px 34px; width: 100%; }
.mag-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.mag-hero__read { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.72); }
.mag-hero__content h2 { color: #fff !important; font-family: var(--font-head); font-size: 40px; line-height: 1.08; letter-spacing: -.035em; margin: 0 0 14px; max-width: 740px; text-shadow: 0 1px 16px rgba(0,0,0,.25); }
.mag-hero__content p { color: rgba(255,255,255,.84) !important; font-size: 16px; line-height: 1.55; margin: 0 0 20px; max-width: 590px; }
.mag-hero__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #fff; }
.mag-hero__link:hover .mag-hero__cta { color: #7ee2b4; }

.mag-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-height: 540px; }
.mag-hero-card { background-image: linear-gradient(140deg, #173c2f, #091712); background-size: cover; background-position: center; }
.mag-hero-card[style] { background-image: var(--card-image); }
.mag-hero-card > a { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff; }
.mag-hero-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,16,12,.10), rgba(4,16,12,.86)); }
.mag-hero-card__content { position: relative; z-index: 2; padding: 24px; }
.mag-hero-card__content h3 { font-family: var(--font-head); font-size: 21px; line-height: 1.22; letter-spacing: -.02em; margin: 10px 0 9px; color: #fff !important; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.mag-hero-card__meta { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.7); }
.mag-hero-card:hover h3 { color: #baf5d7; }

/* ---------- cards ---------- */
.mag-grid { display: grid; gap: 22px; }
.mag-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mag-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mag-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.mag-card__media { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.mag-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mag-card:hover .mag-card__media img { transform: scale(1.035); }
.mag-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #16483a, #0a1a14); color: rgba(255,255,255,.5); font-family: var(--font-mono); font-size: 13px; }
.mag-card__cat {
  position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px;
  background: rgba(8,20,15,.72); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px);
}
.mag-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.mag-card__meta { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11.5px; font-weight: 600; margin-bottom: 9px; }
.mag-card__title { font-family: var(--font-head); font-size: 18px; line-height: 1.32; letter-spacing: -.02em; margin: 0 0 9px; font-weight: 800; }
.mag-card__title a { color: var(--ink); }
.mag-card__title a:hover { color: var(--accent-strong); }
.mag-card__excerpt { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; }
.mag-card__more { margin-top: auto; color: var(--accent-strong); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.mag-grid--4 .mag-card__title { font-size: 16.5px; }
.mag-grid--4 .mag-card__body { padding: 15px 15px 17px; }
.mag-grid--4 .mag-card__excerpt { display: none; }

/* ---------- CTA ---------- */
.mag-cta {
  margin-top: 64px; padding: 38px 40px; border-radius: 26px;
  background: linear-gradient(120deg, #0b3b2e, #0a1a14 70%); color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 36px;
}
.mag-cta h2 { font-family: var(--font-head); font-size: 30px; letter-spacing: -.03em; margin: 0 0 8px; color: #fff !important; }
.mag-cta p { color: rgba(255,255,255,.7); margin: 0; max-width: 520px; font-size: 14.5px; }
.mag-cta .mag-kicker { color: #7ee2b4; }
.mag-cta__links { display: flex; flex-wrap: wrap; gap: 9px; max-width: 380px; }
.mag-cta__links a { padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; }
.mag-cta__links a:hover { background: #fff; color: #0a1a14; }

/* ---------- article ---------- */
.mag-article { max-width: 1140px; margin: 0 auto; }
.mag-progress { position: fixed; top: 76px; left: 0; width: 100%; height: 3px; background: transparent; z-index: 90; pointer-events: none; }
.mag-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), #7ee2b4); }
.mag-article__head { max-width: 880px; margin: 0 auto 30px; padding: 0 !important; background: transparent !important; }
.mag-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 22px; }
.mag-crumbs a { color: var(--muted); }
.mag-crumbs a:hover { color: var(--accent); }
.mag-crumbs span[aria-current] { color: var(--ink-2); }
.mag-article__chips { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.mag-article__kind { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mag-article__title {
  font-family: var(--font-head); font-size: 50px; line-height: 1.06; letter-spacing: -.045em;
  font-weight: 800; margin: 0 0 18px; color: var(--ink) !important;
}
.mag-article__lead { font-size: 20px; line-height: 1.55; color: var(--ink-2) !important; margin: 0 0 24px; max-width: 790px; }
.mag-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; color: var(--muted) !important; font-size: 13px; font-weight: 600; }
.mag-author-mini { display: flex; align-items: center; gap: 9px; }
.mag-author-mini img { border-radius: 50%; object-fit: cover; }
.mag-author-mini span { display: flex; flex-direction: column; line-height: 1.25; }
.mag-author-mini strong { color: var(--ink-2); font-size: 12.5px; }
.mag-author-mini small { color: var(--muted); font-size: 10.5px; font-weight: 500; }
.mag-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.mag-article__hero { max-width: 1140px; margin: 0 auto 46px; }
.mag-article__hero img { width: 100%; border-radius: 26px; display: block; aspect-ratio: 16 / 8.6; object-fit: cover; }
.mag-article__hero figcaption { color: var(--muted); font-size: 12px; margin-top: 10px; text-align: center; }

.mag-article__layout { display: grid; grid-template-columns: minmax(0, 780px) 280px; gap: 70px; justify-content: center; }
.mag-article__body { min-width: 0; }
.mag-article__aside { display: flex; flex-direction: column; gap: 16px; }
.mag-aside-card { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 20px; position: sticky; top: 104px; }
.mag-aside-card + .mag-aside-card { position: static; }
.mag-aside-card p { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin: 8px 0 0; }
.mag-aside-card--note { background: var(--accent-soft); border-color: transparent; }
.mag-aside-card--note .mag-kicker { color: var(--accent-strong); }
.mag-author { display: flex; align-items: center; gap: 11px; margin-top: 8px; }
.mag-author img { border-radius: 50%; }
.mag-author div { display: flex; flex-direction: column; line-height: 1.3; }
.mag-author strong { font-size: 13.5px; }
.mag-author span { color: var(--muted); font-size: 11px; }

.mag-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 34px; }
.mag-toc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.mag-toc__head span { font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mag-toc__head button { border: 0; background: none; color: var(--accent-strong); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.mag-toc ol { margin: 0; padding-left: 20px; }
.mag-toc li { margin: 5px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.mag-toc a { color: var(--ink-2); font-weight: 600; }
.mag-toc a:hover { color: var(--accent); }
.mag-toc.is-collapsed ol { display: none; }

/* ---------- article typography ---------- */
.article-body { font-size: 18px; line-height: 1.82; color: var(--ink-2); }
.article-body > * { max-width: 100%; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 {
  font-family: var(--font-head); color: var(--ink); font-size: 31px; line-height: 1.2;
  letter-spacing: -.03em; font-weight: 800; margin: 2.1em 0 .65em; scroll-margin-top: 110px;
  padding-top: .2em; border-top: 1px solid var(--line);
}
.article-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.article-body h3 {
  font-family: var(--font-head); color: var(--ink); font-size: 22px; line-height: 1.3;
  letter-spacing: -.02em; font-weight: 800; margin: 1.9em 0 .55em; scroll-margin-top: 110px;
}
.article-body h4 { font-family: var(--font-head); font-size: 18px; color: var(--ink); margin: 1.6em 0 .4em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.article-body li { margin: .45em 0; padding-left: .25em; }
.article-body li::marker { color: var(--accent); }
.article-body a { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body blockquote {
  margin: 1.8em 0; padding: 20px 24px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 14px 14px 0; color: var(--ink-2); font-size: 17px;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code {
  font-family: var(--font-mono); font-size: .84em; background: var(--surface-2);
  padding: .16em .42em; border-radius: 6px; color: var(--accent-strong); border: 1px solid var(--line);
}
.article-body pre {
  margin: 1.6em 0; padding: 20px 22px; background: #0b1712; color: #d8e7de;
  border-radius: 16px; overflow-x: auto; border: 1px solid #1c3328;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); line-height: 1.6;
}
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 13.5px; white-space: pre; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; line-height: 1.5; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.article-body th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.article-body tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 50%, var(--bg)); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article-body img { border-radius: 14px; margin: 1.4em 0; }
.article-body figure { margin: 1.7em 0; }
.article-body figcaption { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 8px; }

.mag-checklist { margin: 1.8em 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; }
.mag-checklist h3 { margin: 0 0 10px !important; font-size: 18px !important; }
.mag-checklist ul { margin: 0 !important; }

.mag-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 22px; }
.mag-tags a { padding: 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.mag-tags a:hover { background: var(--accent); color: #fff; }
.mag-share { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 18px 0 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.mag-share a, .mag-share button {
  padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer;
}
.mag-share a:hover, .mag-share button:hover { border-color: var(--accent); color: var(--accent-strong); }

.mag-related { margin-top: 74px; padding-top: 36px; border-top: 1px solid var(--line); }
.mag-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 46px; }
.mag-prevnext a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 5px; }
.mag-prevnext span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mag-prevnext strong { color: var(--ink); font-family: var(--font-head); font-size: 15px; line-height: 1.35; }
.mag-prevnext__next { text-align: right; }
.mag-prevnext a:hover { border-color: var(--accent); }
.mag-comments { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.mag-comments .comment-respond h3, .mag-comments .comments-title { font-family: var(--font-head); font-size: 22px; }

/* ---------- archive ---------- */
.mag-archive-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  padding: 26px 0 34px; margin-bottom: 30px; border-bottom: 1px solid var(--line);
}
.mag-archive-head h1 { font-family: var(--font-head); font-size: 44px; letter-spacing: -.04em; line-height: 1.08; margin: 0 0 8px; color: var(--ink); }
.mag-archive-head__desc { color: var(--muted); max-width: 660px; font-size: 15px; margin-top: 8px; }
.mag-archive-head__count { color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 10px 0 0; }
.mag-archive-head__links { display: flex; flex-wrap: wrap; gap: 7px; max-width: 330px; justify-content: flex-end; }
.mag-archive-head__links a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--surface); }
.mag-archive-head__links a:hover { border-color: var(--accent); color: var(--accent-strong); }
.mag-grid--archive { margin-top: 10px; }
.mag-pagination { margin-top: 42px; display: flex; justify-content: center; }
.mag-pagination ul { display: flex; list-style: none; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.mag-pagination li { margin: 0; }
.mag-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 13px; font-weight: 700;
}
.mag-pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.mag-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent-strong); }

.mag-empty { max-width: 620px; margin: 70px auto; text-align: center; }
.mag-empty h1, .mag-empty h2 { font-family: var(--font-head); font-size: 34px; letter-spacing: -.03em; margin: 8px 0 10px; }
.mag-empty p { color: var(--muted); }
.mag-search--big { max-width: 480px; margin: 22px auto; height: 48px; background: var(--surface); border-color: var(--line); }
.mag-search--big input { width: 100%; }
.mag-search--big button { border: 0; border-radius: 8px; background: var(--accent); color: #fff; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.mag-btn { display: inline-flex; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }

/* ---------- page ---------- */
.mag-page { max-width: 800px; margin: 0 auto; }
.mag-page__head { margin-bottom: 28px; }
.mag-page__head h1 { font-family: var(--font-head); font-size: 44px; letter-spacing: -.04em; line-height: 1.08; margin: 0; color: var(--ink) !important; }

/* ---------- footer ---------- */
.mag-footer { background: var(--dark); color: #cfddd5; margin-top: 80px; }
.mag-footer__grid {
  max-width: var(--max); margin: 0 auto; padding: 54px 28px 40px;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px;
}
.mag-footer h3 { color: #fff; font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 14px; }
.mag-footer ul { list-style: none; margin: 0; padding: 0; }
.mag-footer li { margin: 8px 0; }
.mag-footer a { color: #b9ccc1; font-size: 13.5px; }
.mag-footer a:hover { color: #7ee2b4; }
.mag-brand--footer { color: #fff; margin-bottom: 14px; }
.mag-brand--footer .mag-brand__text span { color: #8fa89a; }
.mag-footer__about p { color: #9db3a7; font-size: 13px; line-height: 1.65; max-width: 360px; }
.mag-footer__note { color: #8fa89a !important; font-size: 12px !important; }
.mag-footer__copy { color: #70877b !important; font-size: 11.5px !important; margin-top: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mag-nav { gap: 0; }
  .mag-nav > a, .mag-nav__more > button { padding: 8px 8px; font-size: 13.5px; }
  .mag-search input { width: 96px; }
  .mag-article__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mag-article__aside { display: grid; grid-template-columns: 1fr 1fr; }
  .mag-aside-card { position: static; }
  .mag-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .mag-header__inner { height: 68px; gap: 16px; }
  .mag-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 95;
    background: var(--surface); display: none; flex-direction: column; align-items: stretch;
    padding: 18px 24px 40px; gap: 4px; overflow-y: auto;
  }
  .mag-nav.is-open { display: flex; }
  .mag-nav > a, .mag-nav__more > button { font-size: 17px; padding: 13px 12px; }
  .mag-nav__more { width: 100%; }
  .mag-nav__more > button { width: 100%; justify-content: space-between; }
  .mag-nav__dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .mag-nav__dropdown a { font-size: 14px; }
  .mag-burger { display: block; }
  .mag-search { display: none; }
  .mag-header__actions { margin-left: auto; }
  .mag-hero { grid-template-columns: 1fr; min-height: 0; }
  .mag-hero__main { min-height: 430px; }
  .mag-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; min-height: 0; }
  .mag-hero-card { min-height: 230px; }
  .mag-hero__content h2 { font-size: 32px; }
  .mag-display { font-size: 34px; }
  .mag-section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .mag-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-section--tinted { padding: 26px 20px; margin-left: 0; margin-right: 0; }
  .mag-article__title { font-size: 38px; }
  .mag-article__lead { font-size: 18px; }
  .mag-cta { flex-direction: column; align-items: flex-start; }
  .mag-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .mag-main { padding: 20px 18px 60px; }
  .mag-header__inner { padding: 0 18px; }
  .mag-brand__text strong { font-size: 16px; }
  .mag-hero__main { min-height: 400px; }
  .mag-hero__content { padding: 26px 22px; }
  .mag-hero__content h2 { font-size: 27px; }
  .mag-hero__content p { font-size: 14px; }
  .mag-hero__side { grid-template-columns: 1fr; }
  .mag-hero-card { min-height: 200px; }
  .mag-grid--3, .mag-grid--4 { grid-template-columns: 1fr; }
  .mag-section-head h2 { font-size: 26px; }
  .mag-display { font-size: 30px; }
  .mag-article__title { font-size: 31px; }
  .mag-article__hero img { border-radius: 18px; aspect-ratio: 16 / 10; }
  .article-body { font-size: 16.5px; }
  .article-body h2 { font-size: 25px; }
  .article-body h3 { font-size: 20px; }
  .article-body pre { padding: 16px; border-radius: 12px; margin-left: -6px; margin-right: -6px; }
  .mag-article__aside { grid-template-columns: 1fr; }
  .mag-prevnext { grid-template-columns: 1fr; }
  .mag-prevnext__next { text-align: left; }
  .mag-archive-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mag-archive-head h1 { font-size: 32px; }
  .mag-archive-head__links { justify-content: flex-start; }
  .mag-cta { padding: 28px 22px; }
  .mag-cta h2 { font-size: 25px; }
  .mag-footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 20px 30px; }
  .mag-progress { top: 68px; }
}
