:root {
  --blog-ink: #171613;
  --blog-ink-soft: #5f5c55;
  --blog-muted: #858078;
  --blog-paper: #fffefa;
  --blog-paper-soft: #f7f5ef;
  --blog-line: #dedbd3;
  --blog-line-dark: #c9c4ba;
  --blog-accent: #ef5b36;
  --blog-accent-soft: #fff0e9;
  --blog-blue: #176c82;
  --blog-display: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --blog-body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --blog-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --blog-shell: 1240px;
  --blog-copy: 760px;
  --blog-radius-lg: 24px;
  --blog-radius-md: 16px;
  --blog-shadow: 0 18px 54px rgba(32, 28, 20, .08);
  --blog-shadow-small: 0 8px 24px rgba(32, 28, 20, .055);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  color: var(--blog-ink);
  background:
    linear-gradient(rgba(40, 37, 31, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 37, 31, .025) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(239, 91, 54, .07), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(23, 108, 130, .06), transparent 32rem),
    #fbfaf6;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  font-family: var(--blog-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::selection { color: #fff; background: var(--blog-accent); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.eyebrow {
  margin: 0;
  color: var(--blog-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222, 219, 211, .86);
  background: rgba(255, 254, 250, .92);
  box-shadow: 0 4px 18px rgba(30, 27, 22, .035);
  backdrop-filter: blur(18px);
}
.nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(var(--blog-shell), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--blog-ink);
  box-shadow: 0 5px 0 rgba(239, 91, 54, .9);
  color: #fff;
  font-family: var(--blog-display);
  font-size: 24px;
  font-weight: 900;
}
.site-brand > span:last-child { display: grid; line-height: 1.15; }
.site-brand strong { font-size: 16px; letter-spacing: -.02em; }
.site-brand small { margin-top: 4px; color: var(--blog-muted); font-size: 10px; font-weight: 600; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 22px);
  min-width: 0;
}
.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--blog-ink-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--blog-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blog-ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.search-button,
.mobile-menu-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  background: #fff;
  color: var(--blog-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.search-button:hover,
.mobile-menu-button:hover { border-color: var(--blog-ink); }
.header-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--blog-ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-cta,
.button-dark {
  background: var(--blog-ink);
  color: #fff;
  box-shadow: 0 7px 16px rgba(23, 22, 19, .13);
}
.button-light { border-color: var(--blog-line-dark); background: #fff; color: var(--blog-ink); }
.header-cta:hover,
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 22, 19, .16); }
.mobile-menu-button { display: none; }

.home-intro,
.featured-section,
.learning-section,
.home-content-layout,
.category-page,
.article-page,
.workflow-page,
.not-found-page {
  width: min(var(--blog-shell), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 6vw, 90px);
  margin-top: 34px;
  margin-bottom: 52px;
  overflow: hidden;
  padding: clamp(38px, 6vw, 76px);
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-lg);
  background:
    radial-gradient(circle at 98% 5%, rgba(23, 108, 130, .12), transparent 24rem),
    linear-gradient(145deg, rgba(255, 240, 233, .88), rgba(255, 255, 255, .88) 42%, rgba(240, 247, 246, .9));
  box-shadow: var(--blog-shadow-small);
}
.home-intro-copy { align-self: center; }
.home-intro h1 {
  max-width: 850px;
  margin: 15px 0 0;
  font-family: var(--blog-display);
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.06;
}
.home-intro h1 strong { color: var(--blog-ink); font-weight: 900; }
.home-intro-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--blog-ink-soft);
  font-size: 17px;
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.home-intro-proof {
  display: grid;
  align-content: center;
  gap: 6px;
  padding-left: 28px;
  border-left: 1px solid var(--blog-line-dark);
}
.home-intro-proof span {
  margin-top: 15px;
  color: var(--blog-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.home-intro-proof strong {
  font-family: var(--blog-display);
  font-size: 52px;
  letter-spacing: -.04em;
  line-height: 1;
}
.home-intro-proof p { margin: 0 0 10px; color: var(--blog-ink-soft); font-size: 12px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 5px 0 0;
  font-family: var(--blog-display);
  font-size: clamp(31px, 3.5vw, 45px);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.section-heading > p { max-width: 520px; margin: 0; color: var(--blog-ink-soft); font-size: 13px; text-align: right; }
.featured-section { margin-bottom: 58px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.featured-article-card,
.featured-article-card:first-child,
.featured-article-card:not(:first-child) {
  display: flex;
  min-height: 0;
  grid-row: auto;
  flex-direction: column;
}
.featured-article-card .article-cover-link,
.featured-article-card .article-card-cover {
  width: 100%;
  height: auto;
}
.featured-article-card .article-card-cover {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.featured-article-card .article-card-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: clamp(18px, 2vw, 24px);
}
.featured-article-card .article-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.featured-article-card .article-metadata { display: none; }
.featured-article-card h3,
.featured-article-card:first-child h3,
.featured-article-card:not(:first-child) h3 {
  margin-bottom: 14px;
  font-size: clamp(23px, 1.85vw, 30px);
  line-height: 1.22;
  text-wrap: balance;
}
.featured-article-card .read-link { margin-top: auto; }

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-md);
  background: var(--blog-paper);
  box-shadow: var(--blog-shadow-small);
  transition: transform .22s ease, box-shadow .22s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--blog-shadow); }
.article-cover-link { display: block; overflow: hidden; background: #ebe8df; }
.article-card-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}
.article-card:hover .article-card-cover { transform: scale(1.018); }
.article-card-body { padding: 20px; }
.article-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--blog-muted);
  font-size: 10px;
  font-weight: 700;
}
.category-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(239, 91, 54, .28);
  border-radius: 999px;
  background: var(--blog-accent-soft);
  color: #b53d1e;
  font-size: 10px;
  font-weight: 800;
}
.article-card h3 {
  margin: 14px 0 9px;
  font-family: var(--blog-display);
  font-size: 24px;
  letter-spacing: -.025em;
  line-height: 1.28;
}
.article-card h3 a:hover { color: var(--blog-accent); }
.article-card-body > p { margin: 0; color: var(--blog-ink-soft); font-size: 13px; line-height: 1.75; }
.article-metadata {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.article-metadata li {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--blog-line);
}
.article-metadata span,
.article-metadata strong { display: block; overflow-wrap: anywhere; }
.article-metadata span { color: var(--blog-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.article-metadata strong { margin-top: 3px; font-size: 11px; line-height: 1.35; }
.article-metadata.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin-top: 16px; }
.article-metadata.is-compact li:nth-child(n+3) { display: none; }
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--blog-blue);
  font-size: 11px;
  font-weight: 800;
}
.read-link span { transition: transform .18s ease; }
.read-link:hover span { transform: translateX(3px); }

.learning-section { margin-bottom: 58px; scroll-margin-top: 100px; }
.learning-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.learning-path-card {
  position: relative;
  min-height: 275px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-md);
  background: rgba(255, 254, 250, .9);
  box-shadow: var(--blog-shadow-small);
}
.learning-path-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(239, 91, 54, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(239, 91, 54, .035), 0 0 0 45px rgba(23, 108, 130, .025);
}
.path-number {
  color: var(--blog-accent);
  font-family: var(--blog-mono);
  font-size: 11px;
  font-weight: 800;
}
.learning-path-card h3 { position: relative; margin: 12px 0 8px; font-family: var(--blog-display); font-size: 25px; }
.learning-path-card p { position: relative; margin: 0; color: var(--blog-ink-soft); font-size: 13px; }
.learning-path-card ol { position: relative; z-index: 1; margin: 20px 0 0; padding-left: 20px; }
.learning-path-card li { margin: 8px 0; padding-left: 3px; font-size: 12px; }
.learning-path-card a:hover { color: var(--blog-accent); }

.home-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
  margin-bottom: 80px;
}
.article-library { min-width: 0; }
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.category-filter button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  background: #fff;
  color: var(--blog-ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.category-filter button:hover,
.category-filter button.is-active {
  border-color: var(--blog-ink);
  background: var(--blog-ink);
  color: #fff;
}
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.empty-state { padding: 38px; border: 1px dashed var(--blog-line-dark); text-align: center; }
.home-sidebar { display: grid; gap: 13px; }
.sidebar-card {
  padding: 22px;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-md);
  background: rgba(255, 254, 250, .92);
  box-shadow: var(--blog-shadow-small);
}
.sidebar-card h2 { margin: 8px 0 8px; font-family: var(--blog-display); font-size: 23px; }
.sidebar-card p:not(.eyebrow) { margin: 0; color: var(--blog-ink-soft); font-size: 12px; }
.sidebar-card small { display: block; margin-top: 10px; color: var(--blog-muted); font-size: 10px; }
.profile-monogram {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--blog-accent);
  color: #fff;
  font-family: var(--blog-display);
  font-size: 24px;
  font-weight: 900;
}
.text-link { display: inline-flex; margin-top: 15px; color: var(--blog-blue); font-size: 11px; font-weight: 800; }
.build-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--blog-blue); font-size: 10px; font-weight: 800; }
.build-status i { width: 7px; height: 7px; border-radius: 50%; background: #30a577; box-shadow: 0 0 0 4px rgba(48, 165, 119, .12); }
.lead-card { background: linear-gradient(150deg, #191815, #232934); color: #fff; }
.lead-card .eyebrow { color: #ff8b68; }
.lead-card p:not(.eyebrow) { color: #c8c7c1; }
.lead-card .button { width: 100%; margin-top: 18px; border-color: #fff; background: #fff; color: var(--blog-ink); box-shadow: none; }

.category-page,
.workflow-page { padding-top: 42px; padding-bottom: 82px; }
.category-hero {
  margin-bottom: 28px;
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-lg);
  background: radial-gradient(circle at 92% 2%, rgba(239, 91, 54, .13), transparent 24rem), var(--blog-paper);
  box-shadow: var(--blog-shadow-small);
}
.category-hero h1,
.workflow-hero h1 {
  margin: 10px 0 0;
  font-family: var(--blog-display);
  font-size: clamp(45px, 6vw, 74px);
  letter-spacing: -.05em;
  line-height: 1.07;
}
.category-hero > p,
.workflow-hero > div > p:not(.eyebrow) { max-width: 720px; margin: 18px 0 0; color: var(--blog-ink-soft); }
.category-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-md);
  background: var(--blog-paper);
}
.category-next p { margin: 0; font-family: var(--blog-display); font-size: 22px; }

.article-page { padding-top: 30px; padding-bottom: 90px; }
.article-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--blog-muted);
  font-size: 11px;
  font-weight: 700;
}
.article-breadcrumb a:hover { color: var(--blog-accent); }
.article-hero { max-width: 980px; margin: 0 auto 28px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 9px 16px; color: var(--blog-muted); font-size: 11px; font-weight: 700; }
.article-kicker span:first-child { color: var(--blog-accent); }
.article-hero h1 {
  margin: 16px 0;
  font-family: var(--blog-display);
  font-size: clamp(43px, 5.4vw, 68px);
  letter-spacing: -.05em;
  line-height: 1.08;
}
.article-hero > p { max-width: 780px; margin: 0; color: var(--blog-ink-soft); font-size: 16px; line-height: 1.8; }
.article-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-lg);
  box-shadow: var(--blog-shadow);
}
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--blog-copy));
  justify-content: center;
  align-items: start;
  gap: 54px;
  margin-top: 42px;
}
.article-toc {
  position: sticky;
  top: 102px;
  padding: 18px;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-md);
  background: rgba(255, 254, 250, .9);
}
.article-toc > strong { display: block; margin-top: 6px; font-family: var(--blog-display); font-size: 18px; }
.article-toc ol { margin: 14px 0 0; padding-left: 20px; }
.article-toc li { margin: 7px 0; color: var(--blog-ink-soft); font-size: 10px; line-height: 1.45; }
.article-toc a:hover { color: var(--blog-accent); }
.article-content { min-width: 0; color: #2e2c28; font-size: 17px; line-height: 1.92; }
.article-content > p { margin: 0 0 20px; }
.article-content > h2 {
  scroll-margin-top: 105px;
  margin: 48px 0 17px;
  padding-top: 8px;
  border-top: 1px solid var(--blog-line);
  color: var(--blog-ink);
  font-family: var(--blog-display);
  font-size: 31px;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.article-content > h2:first-child { margin-top: 0; }
.article-content > h3 { margin: 31px 0 12px; color: var(--blog-ink); font-family: var(--blog-display); font-size: 23px; }
.article-content ul,
.article-content ol { margin: 0 0 23px; padding-left: 24px; }
.article-content li { margin: 8px 0; }
.article-content strong { color: var(--blog-ink); }
.article-content pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 20px;
  border-radius: 14px;
  background: #181b20;
  color: #f6f3eb;
  font-family: var(--blog-mono);
  font-size: 13px;
  line-height: 1.7;
}
.article-content :not(pre) > code { padding: 2px 6px; border-radius: 5px; background: #efeee9; font-family: var(--blog-mono); font-size: .88em; }
.article-content blockquote { margin: 26px 0; padding: 18px 20px; border-left: 4px solid var(--blog-accent); background: var(--blog-accent-soft); }
.source-panel {
  margin-top: 46px;
  padding: 24px;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-md);
  background: var(--blog-paper-soft);
  font-size: 13px;
}
.source-panel h2 { margin: 7px 0 11px; border: 0; font-family: var(--blog-display); font-size: 25px; }
.source-panel p { color: var(--blog-ink-soft); }
.source-panel ul { padding-left: 20px; }
.source-panel a { color: var(--blog-blue); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.verification-line { padding-top: 13px; border-top: 1px solid var(--blog-line); }
.article-cta {
  margin-top: 26px;
  padding: clamp(25px, 4vw, 38px);
  border-radius: var(--blog-radius-lg);
  background:
    radial-gradient(circle at 94% 4%, rgba(239, 91, 54, .27), transparent 16rem),
    linear-gradient(150deg, #171613, #242b35);
  color: #fff;
}
.article-cta .eyebrow { color: #ff8b68; }
.article-cta h2 { margin: 8px 0 10px; border: 0; color: #fff; font-family: var(--blog-display); font-size: 31px; }
.article-cta p:not(.eyebrow) { color: #c9cbc8; font-size: 14px; }
.article-cta .button { margin-top: 8px; border-color: #fff; background: #fff; color: var(--blog-ink); box-shadow: none; }
.related-section { margin-top: 62px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-grid .article-card-body > p,
.related-grid .article-metadata { display: none; }
.related-grid .article-card h3 { font-size: 19px; }

.workflow-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 48px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-lg);
  background: radial-gradient(circle at 92% 2%, rgba(23, 108, 130, .13), transparent 25rem), var(--blog-paper);
  box-shadow: var(--blog-shadow-small);
}
.workflow-principle {
  display: grid;
  align-content: center;
  gap: 6px;
  padding-left: 28px;
  border-left: 1px solid var(--blog-line-dark);
}
.workflow-principle span { margin-top: 12px; color: var(--blog-accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.workflow-principle strong { font-size: 13px; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.workflow-steps article { padding: 26px; border: 1px solid var(--blog-line); border-radius: var(--blog-radius-md); background: var(--blog-paper); }
.workflow-steps article > span { color: var(--blog-accent); font-family: var(--blog-mono); font-size: 12px; font-weight: 800; }
.workflow-steps h2 { margin: 10px 0 8px; font-family: var(--blog-display); font-size: 24px; }
.workflow-steps p { margin: 0; color: var(--blog-ink-soft); font-size: 13px; }
.workflow-telegram {
  max-width: 820px;
  margin: 24px auto 0;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--blog-radius-lg);
  background: var(--blog-ink);
  color: #fff;
  text-align: center;
}
.workflow-telegram .eyebrow { color: #ff8b68; }
.workflow-telegram h2 { margin: 8px 0; font-family: var(--blog-display); font-size: 34px; }
.workflow-telegram p { color: #c9cbc8; }
.workflow-telegram .button { margin-top: 10px; border-color: #fff; background: #fff; color: var(--blog-ink); box-shadow: none; }
.workflow-telegram small { display: block; margin-top: 15px; color: #969b9e; font-size: 10px; }
.workflow-contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.workflow-contact-card { display: flex; min-width: 0; flex-direction: column; gap: 7px; padding: 17px 18px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; color: #fff; text-align: left; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.workflow-contact-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.56); }
.workflow-contact-card span { color: #aeb2b4; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.workflow-contact-card strong { overflow-wrap: anywhere; font-family: var(--blog-display); font-size: clamp(16px, 2vw, 20px); line-height: 1.2; }
.workflow-contact-card-primary { border-color: #fff; background: #fff; color: var(--blog-ink); }
.workflow-contact-card-primary span { color: #62676a; }
.workflow-contact-card-secondary { background: rgba(255, 255, 255, 0.06); }

.search-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 40px));
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
}
.search-dialog::backdrop { background: rgba(20, 19, 17, .55); backdrop-filter: blur(8px); }
.search-dialog-panel {
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--blog-line);
  border-radius: 22px;
  background: var(--blog-paper);
  box-shadow: 0 30px 90px rgba(18, 17, 14, .24);
}
.search-dialog-panel form { display: flex; justify-content: flex-end; }
.dialog-close {
  border: 0;
  background: transparent;
  color: var(--blog-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.search-dialog h2 { margin: 7px 0 18px; font-family: var(--blog-display); font-size: 34px; }
.search-dialog input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--blog-line-dark);
  border-radius: 12px;
  outline: none;
  background: #fff;
}
.search-dialog input:focus { border-color: var(--blog-accent); box-shadow: 0 0 0 3px rgba(239, 91, 54, .1); }
.search-results { display: grid; gap: 5px; margin-top: 15px; }
.search-result { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; }
.search-result:hover { background: var(--blog-paper-soft); }
.search-result img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.search-result span { display: grid; gap: 5px; }
.search-result small,
.search-empty { color: var(--blog-muted); font-size: 11px; }

.site-footer {
  border-top: 1px solid var(--blog-line);
  background: rgba(255, 254, 250, .86);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  width: min(var(--blog-shell), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}
.footer-inner strong { font-family: var(--blog-display); font-size: 22px; }
.footer-inner p { margin: 4px 0 0; color: var(--blog-muted); font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 18px; font-size: 11px; font-weight: 800; }
.footer-links a:hover { color: var(--blog-accent); }
.footer-note { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--blog-line); }
.not-found-page { min-height: 62vh; padding-top: 100px; text-align: center; }
.not-found-page h1 { margin: 10px 0; font-family: var(--blog-display); font-size: clamp(48px, 7vw, 82px); }
.not-found-page p:not(.eyebrow) { color: var(--blog-ink-soft); }
.not-found-page .button { margin-top: 15px; }

@keyframes blog-rise {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-intro,
.featured-section,
.learning-section,
.home-content-layout,
.article-hero,
.article-cover { animation: blog-rise .58s both; }
.featured-section { animation-delay: .07s; }
.learning-section { animation-delay: .12s; }
.home-content-layout { animation-delay: .17s; }

@media (max-width: 1120px) {
  .nav-shell { gap: 18px; }
  .site-brand small { display: none; }
  .site-nav { gap: 11px; }
  .header-cta { padding-right: 13px; padding-left: 13px; }
  .home-content-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .category-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 68px; }
  .mobile-menu-button { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    overflow: hidden;
    padding: 10px;
    border: 1px solid var(--blog-line);
    border-radius: 16px;
    background: var(--blog-paper);
    box-shadow: var(--blog-shadow);
  }
  .site-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a { padding: 11px 12px; border-radius: 10px; background: var(--blog-paper-soft); }
  .site-nav a::after { display: none; }
  .header-actions .header-cta { display: none; }
  .home-intro { grid-template-columns: 1fr; gap: 26px; }
  .home-intro-proof { grid-template-columns: repeat(2, 1fr); padding: 22px 0 0; border-top: 1px solid var(--blog-line-dark); border-left: 0; }
  .home-intro-proof p { max-width: 150px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-article-card:first-child { grid-row: auto; }
  .featured-article-card:not(:first-child) { display: grid; grid-template-columns: minmax(170px, 40%) 1fr; }
  .learning-paths { grid-template-columns: 1fr; }
  .learning-path-card { min-height: 0; }
  .home-content-layout { grid-template-columns: 1fr; }
  .home-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 25px; }
  .article-toc { position: static; }
  .article-toc ol { columns: 2; column-gap: 28px; }
  .workflow-hero { grid-template-columns: 1fr; }
  .workflow-principle { grid-template-columns: 92px 1fr; padding: 20px 0 0; border-top: 1px solid var(--blog-line-dark); border-left: 0; }
  .workflow-principle span { margin: 0; }
}

@media (max-width: 650px) {
  .nav-shell,
  .home-intro,
  .featured-section,
  .learning-section,
  .home-content-layout,
  .category-page,
  .article-page,
  .workflow-page,
  .not-found-page,
  .footer-inner { width: min(100% - 24px, var(--blog-shell)); }
  .nav-shell { gap: 7px; min-height: 62px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 20px; }
  .site-brand strong { font-size: 14px; }
  .site-brand small { display: none; }
  .search-button,
  .mobile-menu-button { min-height: 36px; padding: 0 10px; font-size: 10px; }
  .site-nav.is-open { grid-template-columns: 1fr; }
  .home-intro { margin-top: 18px; margin-bottom: 40px; padding: 28px 21px; border-radius: 18px; }
  .home-intro h1 { font-size: clamp(39px, 11.8vw, 50px); line-height: 1.06; }
  .home-intro-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 14px; line-height: 1.75; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .home-intro-proof { gap: 8px 18px; }
  .home-intro-proof strong { font-size: 39px; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .section-heading > p { text-align: left; }
  .section-heading h2 { font-size: 34px; }
  .featured-article-card:not(:first-child) { display: block; }
  .featured-article-card:not(:first-child) .article-card-cover { height: auto; aspect-ratio: 16 / 9; }
  .featured-article-card:not(:first-child) .article-card-body > p { display: block; }
  .article-grid,
  .category-article-grid,
  .related-grid { grid-template-columns: 1fr; }
  .article-card h3 { font-size: 22px; }
  .learning-path-card { padding: 22px; }
  .home-sidebar { grid-template-columns: 1fr; }
  .category-page,
  .workflow-page { padding-top: 22px; }
  .category-hero,
  .workflow-hero { padding: 28px 22px; border-radius: 18px; }
  .category-hero h1,
  .workflow-hero h1 { font-size: 44px; }
  .category-next { align-items: stretch; flex-direction: column; }
  .article-page { padding-top: 18px; }
  .article-breadcrumb { margin-bottom: 20px; }
  .article-hero h1 { font-size: 39px; }
  .article-hero > p { font-size: 14px; }
  .article-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-metadata li:last-child { grid-column: 1 / -1; }
  .article-cover { border-radius: 15px; }
  .article-layout { margin-top: 24px; }
  .article-toc ol { columns: 1; }
  .article-content { font-size: 16px; line-height: 1.86; }
  .article-content > h2 { margin-top: 39px; font-size: 27px; }
  .article-content > h3 { font-size: 21px; }
  .source-panel { padding: 20px; }
  .article-cta { border-radius: 17px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-principle { grid-template-columns: 1fr; }
  .workflow-telegram { padding: 30px 20px; border-radius: 18px; }
  .workflow-telegram h2 { font-size: 28px; }
  .search-dialog-panel { padding: 20px; }
  .search-result { grid-template-columns: 86px 1fr; padding: 8px; }
  .search-result img { width: 86px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reference-inspired contact flow: stay on the current page, then choose a channel. */
body.contact-dialog-open {
  overflow: hidden;
}

.header-cta[data-contact-open] {
  cursor: pointer;
}

.workflow-contact-prompt {
  max-width: 720px;
  margin: 24px auto 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #dedbd4;
  border-radius: var(--blog-radius-lg);
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 50px rgba(35, 31, 27, 0.06);
}

.workflow-contact-prompt h2 {
  margin: 8px 0;
  font-family: var(--blog-display);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--blog-ink);
}

.workflow-contact-prompt p:not(.eyebrow) {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  color: #68635d;
}

.workflow-contact-prompt .button {
  margin-top: 14px;
}

.workflow-contact-prompt small {
  display: block;
  margin-top: 14px;
  color: #8c867f;
  font-size: 11px;
}

.contact-dialog[hidden] {
  display: none;
}

.contact-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 27, 24, 0.28);
  opacity: 0;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity 180ms ease;
}

.contact-dialog__panel {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid #dfdcd5;
  border-radius: 22px;
  background: #fffdf9;
  color: #24211e;
  box-shadow: 0 28px 90px rgba(27, 24, 21, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.contact-dialog.is-open .contact-dialog__backdrop,
.contact-dialog.is-open .contact-dialog__panel {
  opacity: 1;
}

.contact-dialog.is-open .contact-dialog__panel {
  transform: translateY(0) scale(1);
}

.contact-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #e5e1da;
  border-radius: 999px;
  background: #fff;
  color: #4f4a45;
  font: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.contact-dialog__heading {
  padding: 30px 30px 22px;
}

.contact-dialog__eyebrow {
  margin: 0 0 6px;
  color: #d55b36;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.contact-dialog__heading h2 {
  margin: 0;
  padding-right: 36px;
  font-family: var(--blog-display);
  font-size: 29px;
  line-height: 1.2;
}

.contact-dialog__heading > p:last-child {
  margin: 9px 0 0;
  color: #746e67;
  font-size: 14px;
}

.contact-dialog__methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.contact-dialog__method {
  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 16px;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #e5e1da;
  border-radius: 15px;
  background: #fff;
  color: #24211e;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.contact-dialog__method:hover {
  border-color: #c8c1b7;
  background: #faf7f1;
  transform: translateY(-2px);
}

.contact-dialog__method-icon {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #f2eee7;
  color: #554e47;
  font-size: 13px;
  font-weight: 800;
}

.contact-dialog__method > span:last-child {
  min-width: 0;
}

.contact-dialog__method small,
.contact-dialog__method strong {
  display: block;
}

.contact-dialog__method small {
  margin-bottom: 7px;
  color: #8d867e;
  font-size: 11px;
  font-weight: 700;
}

.contact-dialog__method strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.contact-dialog__footer {
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid #e9e5df;
  background: #f8f5ef;
  color: #7a746d;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 520px) {
  .contact-dialog {
    padding: 14px;
  }

  .contact-dialog__heading {
    padding: 27px 22px 18px;
  }

  .contact-dialog__methods {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .contact-dialog__method {
    min-height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dialog__backdrop,
  .contact-dialog__panel,
  .contact-dialog__method {
    transition: none;
  }
}

/* Mobile header keeps only the blog name and the primary contact action. */
.brand-text-only {
  display: inline-flex;
  align-items: center;
  color: var(--blog-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-contact-trigger {
  display: none;
  min-height: 34px;
  padding: 7px 13px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d3cc;
  border-radius: 999px;
  background: #fff;
  color: #2b2824;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .mobile-contact-row {
    display: flex !important;
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .mobile-contact-row .header-cta {
    display: none !important;
  }

  .mobile-contact-trigger {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* Reference-site direction: restrained editorial header and cinematic article rail. */
header.reference-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(44, 40, 36, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.reference-site-header .reference-header-row,
.reference-site-header .mobile-contact-row {
  min-height: 58px;
}

.reference-site-header .brand-text-only {
  font-family: var(--blog-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.reference-site-header .reference-primary-nav {
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.reference-site-header .reference-primary-nav a {
  color: #716c65;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.reference-site-header .reference-primary-nav a:hover,
.reference-site-header .reference-primary-nav a[aria-current="page"] {
  color: #24211e;
}

.reference-site-header .header-cta,
.reference-site-header .mobile-contact-trigger {
  border-color: #e6dfd1;
  background: #fbf5e8;
  color: #a76522;
  box-shadow: none;
}

.reference-home main {
  overflow: hidden;
}

.reference-home__legacy-intro {
  display: none !important;
}

.reference-featured {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(20px, 2.4vw, 36px) 0 clamp(28px, 4vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.98) 0 24%, rgba(248, 250, 252, 0.78) 54%, transparent 74%),
    linear-gradient(180deg, #f7f9fc 0%, #f2f5f9 100%);
}

.reference-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(43, 50, 58, 0.025) 1px, transparent 1px);
  background-size: 100% 8px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.reference-carousel {
  position: relative;
  width: 100%;
  outline: none;
  touch-action: pan-y;
}

.reference-carousel__stage {
  position: relative;
  height: clamp(250px, 31vw, 510px);
}

.reference-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  display: block;
  width: min(51vw, 800px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  background: #dfe4ea;
  box-shadow: 0 22px 62px rgba(29, 36, 44, 0.14);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 380ms ease,
    filter 380ms ease,
    box-shadow 380ms ease;
}

.reference-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.reference-slide[data-position="active"] {
  z-index: 3;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 30px 78px rgba(29, 36, 44, 0.2);
}

.reference-slide[data-position="previous"] {
  z-index: 1;
  opacity: 0.5;
  filter: blur(2px) saturate(0.72);
  transform: translate(-114%, -50%) scale(0.86);
}

.reference-slide[data-position="next"] {
  z-index: 1;
  opacity: 0.5;
  filter: blur(2px) saturate(0.72);
  transform: translate(14%, -50%) scale(0.86);
}

.reference-slide[data-position="hidden"] {
  pointer-events: none;
}

.reference-slide__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reference-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(60, 66, 72, 0.24);
  color: #fff;
  box-shadow: 0 10px 30px rgba(30, 35, 40, 0.12);
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reference-carousel__arrow:hover {
  background: rgba(50, 56, 62, 0.38);
}

.reference-carousel__arrow--previous {
  left: clamp(16px, 6.5vw, 108px);
}

.reference-carousel__arrow--next {
  right: clamp(16px, 6.5vw, 108px);
}

.reference-carousel__dots {
  position: relative;
  z-index: 6;
  display: flex;
  min-height: 16px;
  margin-top: clamp(-8px, -0.6vw, -2px);
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.reference-carousel__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd5dc;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.reference-carousel__dots button.is-active {
  width: 23px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(48, 55, 64, 0.16);
}

#latest {
  scroll-margin-top: 82px;
}

.reference-latest-section,
.reference-article-grid,
.reference-content-card,
.reference-content-card > * {
  min-width: 0;
}

.reference-content-card {
  overflow: hidden;
}

.reference-content-card h2,
.reference-content-card h3,
.reference-content-card h4 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

@media (max-width: 1040px) {
  .featured-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .featured-article-card:first-child {
    grid-row: auto !important;
  }

  .featured-article-card:not(:first-child) {
    display: block !important;
    grid-template-columns: none !important;
  }

  .featured-article-card:not(:first-child) .article-cover-link,
  .featured-article-card:not(:first-child) .article-card-cover {
    width: 100% !important;
    height: auto !important;
  }

  .featured-article-card:not(:first-child) .article-card-cover {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
  }

  .featured-article-card:not(:first-child) .article-card-body {
    padding: clamp(18px, 4vw, 28px) !important;
  }

  .featured-article-card:not(:first-child) .article-card-body > p {
    display: block !important;
  }

  .reference-article-grid,
  .reference-latest-section [class*="grid"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
    gap: 20px !important;
  }

  .reference-content-card {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  .reference-site-header .brand-text-only {
    font-size: 18px;
  }

  .reference-site-header .reference-primary-nav,
  .reference-site-header .header-cta {
    display: none !important;
  }

  .reference-featured {
    padding: 14px 0 24px;
  }

  .reference-carousel__stage {
    height: calc((100vw - 28px) * 0.5625 + 8px);
  }

  .reference-slide {
    width: calc(100vw - 28px);
    border-width: 2px;
    border-radius: 14px;
  }

  .reference-slide[data-position="previous"],
  .reference-slide[data-position="next"] {
    opacity: 0;
    pointer-events: none;
  }

  .reference-carousel__arrow {
    top: calc(50% - 9px);
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  .reference-carousel__arrow--previous {
    left: 20px;
  }

  .reference-carousel__arrow--next {
    right: 20px;
  }

  .reference-carousel__dots {
    margin-top: 5px;
  }

  .reference-latest-section {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .reference-content-card {
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
    flex-direction: column !important;
    border-radius: 16px !important;
  }

  .reference-content-card > *,
  .reference-content-card picture,
  .reference-content-card [class*="cover"],
  .reference-content-card [class*="image"] {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }

  .reference-content-card img {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .reference-content-card h2,
  .reference-content-card h3,
  .reference-content-card h4 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.18 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-slide,
  .reference-carousel__dots button {
    transition: none;
  }
}


/* Editorial reading system: 2026-08-11 */
.article-hero {
  max-width: 900px;
  margin-bottom: 32px;
}

.article-hero h1 {
  max-width: 880px;
  margin: 18px 0;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.article-hero > p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.78;
  text-wrap: pretty;
}

.article-metadata span {
  font-size: 10px;
}

.article-metadata strong {
  font-size: 12px;
  line-height: 1.45;
}

.article-layout {
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  margin-top: 48px;
}

.article-toc li {
  margin: 9px 0;
  font-size: 11px;
  line-height: 1.55;
}

.article-content {
  width: 100%;
  color: #2c2a27;
  font-size: 18px;
  line-height: 1.86;
  letter-spacing: .006em;
  text-wrap: pretty;
}

.article-content > p {
  margin: 0 0 1.28em;
}

.article-content > h2 {
  margin: 60px 0 20px;
  padding-top: 0;
  border-top: 0;
  font-size: 30px;
  line-height: 1.32;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.article-content > h2::before {
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: var(--blog-accent);
  content: "";
}

.article-content > h2:first-child {
  margin-top: 0;
}

.article-content > h3 {
  margin: 44px 0 15px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}

.article-content li {
  margin: .55em 0;
  padding-left: .16em;
}

.article-content li::marker {
  color: var(--blog-accent);
  font-weight: 800;
}

.article-content a {
  color: var(--blog-blue);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--blog-blue) 35%, transparent);
  text-underline-offset: 4px;
}

.article-content a:hover {
  text-decoration-color: currentColor;
}

.article-content pre {
  margin: 30px 0;
  padding: 22px 24px;
  font-size: 14px;
  line-height: 1.68;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left-width: 3px;
  border-radius: 0 12px 12px 0;
}

.article-content blockquote > :first-child {
  margin-top: 0;
}

.article-content blockquote > :last-child {
  margin-bottom: 0;
}

.article-content img {
  margin: 36px auto;
  border-radius: 14px;
}

.article-content table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.article-content th,
.article-content td {
  padding: 11px 13px;
  border: 1px solid var(--blog-line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--blog-paper-soft);
  color: var(--blog-ink);
}

.source-panel {
  margin-top: 58px;
  padding: 26px;
  font-size: 14px;
  line-height: 1.72;
}

.source-panel h2 {
  font-size: 24px;
}

.article-cta {
  margin-top: 34px;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-toc,
  .article-content {
    width: min(100%, 760px);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 650px) {
  .article-page {
    width: min(100% - 40px, var(--blog-shell));
    padding-top: 22px;
    padding-bottom: 68px;
  }

  .article-breadcrumb {
    margin-bottom: 22px;
  }

  .article-hero {
    margin-bottom: 26px;
  }

  .article-hero h1 {
    margin: 14px 0;
    font-size: clamp(30px, 8.8vw, 34px);
    line-height: 1.22;
    letter-spacing: -.035em;
  }

  .article-hero > p {
    font-size: 17px;
    line-height: 1.75;
  }

  .article-metadata {
    margin-top: 20px;
  }

  .article-metadata span {
    font-size: 10px;
  }

  .article-metadata strong {
    font-size: 12px;
  }

  .article-layout {
    gap: 24px;
    margin-top: 30px;
  }

  .article-toc {
    padding: 17px;
  }

  .article-toc li {
    font-size: 12px;
  }

  .article-content {
    font-size: 17px;
    line-height: 1.84;
    letter-spacing: 0;
  }

  .article-content > p {
    margin-bottom: 1.2em;
  }

  .article-content > h2 {
    margin: 48px 0 17px;
    font-size: 25px;
    line-height: 1.34;
  }

  .article-content > h2::before {
    width: 28px;
    margin-bottom: 12px;
  }

  .article-content > h2:first-child {
    margin-top: 0;
  }

  .article-content > h3 {
    margin: 36px 0 13px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.38;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 1.25em;
  }

  .article-content pre {
    margin: 24px -4px;
    padding: 18px;
    border-radius: 12px;
    font-size: 13px;
  }

  .article-content blockquote {
    margin: 24px 0;
    padding: 17px 18px;
  }

  .source-panel {
    margin-top: 46px;
    padding: 20px;
    font-size: 13px;
  }

  .article-cta {
    margin-top: 28px;
  }
}
