/* blog-post.html: page styles, loaded after base.css */
.cond { font-stretch: 72%; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.btn-line { border-color: rgba(255,255,255,0.6); color: #FFFFFF; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.btn-blue { background: var(--blue); color: #FFFFFF; }
.btn-blue:hover { background: var(--blue-deep); color: #FFFFFF; }
.btn-ink { border-color: #7F889F; color: var(--ink); background: transparent; }
.btn-ink:hover { border-color: var(--ink); color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.nav a[aria-current="page"] { background: rgba(13,19,48,0.35); color: #FFFFFF; }
.wg { --acc: #2340F5; --wbg: #FFFFFF; --wtx: #0D1330; --wmut: #5D6680; --wln: #E3E6ED; --wrow: #F6F7FA; background: var(--wbg); color: var(--wtx); border: 1px solid var(--wln); border-radius: 14px; overflow: hidden; font-size: 14px; line-height: 1.4; text-align: left; }
.wg.dark { --wbg: #12162B; --wtx: #FFFFFF; --wmut: #A6AEC9; --wln: rgba(255,255,255,0.12); --wrow: rgba(255,255,255,0.05); }
.wg-hd { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--acc); color: #FFFFFF; }
.wg-title { font-weight: 800; font-stretch: 110%; font-size: 14px; }
.wg-comp { margin-left: auto; font-size: 12px; font-weight: 650; opacity: 0.9; }
.wg-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,0.2); }
.wg-live i { width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; }
.wg-rows { list-style: none; margin: 0; padding: 0; }
.wg-rows li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--wln); }
.wg-rows li:first-child { border-top: 0; }
.wg-min { font-size: 12px; font-weight: 800; color: var(--acc); }
.wg.dark .wg-min { color: #FFFFFF; }
.wg-t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-t.r { text-align: right; order: 0; }
.wg-sc { font-stretch: 72%; font-weight: 800; font-size: 18px; padding: 1px 8px; border-radius: 6px; background: var(--wrow); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wg-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wg-tbl th { text-align: left; font-size: 11px; font-weight: 700; color: var(--wmut); padding: 8px 14px 6px; }
.wg-tbl td { padding: 8px 14px; border-top: 1px solid var(--wln); }
.wg-tbl .n { text-align: right; width: 44px; }
.wg-tbl .pos { width: 34px; color: var(--wmut); font-weight: 700; }
.wg-tbl td.t { font-weight: 650; }
.wg-tbl tr:first-child td.pos { color: var(--acc); }
.wg.dark .wg-tbl tr:first-child td.pos { color: #FFFFFF; }
.wg-fx li { grid-template-columns: 56px minmax(0, 1fr); }
.wg-fx li { align-items: center; }
.wg-fx .when { font-size: 12px; font-weight: 700; color: var(--wmut); line-height: 1.3; }
.wg-fx .vs { font-weight: 650; }
.wg-mc { padding: 14px; display: grid; gap: 12px; }
.wg-mc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; text-align: center; }
.wg-mc-row b { font-size: 15px; font-weight: 750; }
.wg-big { font-stretch: 72%; font-weight: 800; font-size: 34px; line-height: 1; padding: 6px 12px; border-radius: 8px; background: var(--acc); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.wg-mc-min { display: block; text-align: center; font-size: 12px; font-weight: 750; color: var(--wmut); margin-top: -4px; }
.wg-facts { list-style: none; margin: 0; padding: 0; }
.wg-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-top: 1px solid var(--wln); }
.wg-mc .wg-facts li { padding: 10px 0 0; }
.wg-bolt { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--wrow); color: var(--acc); }
.wg.dark .wg-bolt { color: #FFFFFF; }
.wg-bolt .ic { width: 14px; height: 14px; }
.wg-ft { padding: 8px 14px; border-top: 1px solid var(--wln); font-size: 11px; color: var(--wmut); text-align: right; }
.wg-ft b { color: var(--wtx); font-weight: 750; }
.hero { position: relative; background: var(--blue); color: #FFFFFF; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.14; filter: grayscale(1) contrast(1.2); z-index: -1; }
.post-hd { padding: 28px 0 150px; display: grid; gap: 18px; max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: rgba(255,255,255,0.84); }
.crumbs a { color: #FFFFFF; }
.crumbs .ic { width: 14px; height: 14px; opacity: 0.7; }
.post-h { margin: 0; font-size: 38px; line-height: 1.04; text-wrap: balance; }
.post-lead { margin: 0; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.9); max-width: 680px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; font-size: 14.5px; color: rgba(255,255,255,0.86); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.byline b { color: #FFFFFF; font-weight: 750; display: block; }
.byline .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--amber); color: var(--ink); text-decoration: none; justify-self: start; }
.cover { margin-top: -118px; }
.cover .duo { aspect-ratio: 21 / 9; border-radius: 22px; box-shadow: 0 40px 80px -48px rgba(4,8,36,0.6); }
.duo { position: relative; background: var(--blue); overflow: hidden; isolation: isolate; }
.duo img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.08) brightness(1.08); }
.layout { display: grid; gap: 32px; padding: 48px 0 80px; }
.toc { display: none; }
.toc-in { position: sticky; top: 24px; display: grid; gap: 4px; }
.toc p { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); font-size: 15px; font-weight: 600; color: var(--steel); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: #7F889F; }
.toc a[aria-current="true"] { color: var(--blue); border-left-color: var(--blue); font-weight: 750; }
.art { max-width: 720px; min-width: 0; font-size: 18px; line-height: 1.7; color: #1E2547; }
.art > p { margin: 0 0 22px; }
.art h2 { margin: 52px 0 16px; font-size: 28px; line-height: 1.15; font-stretch: 115%; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 24px; }
.art h2:first-child { margin-top: 0; }
.art h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.3; font-stretch: 110%; font-weight: 800; color: var(--ink); }
.art > ul, .art > ol { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.art > ul > li { position: relative; padding-left: 28px; }
.art > ul > li::before { content: ""; position: absolute; left: 6px; top: 0.68em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.art > ol { counter-reset: s; }
.art > ol > li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
.art > ol > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; font-size: 14px; font-stretch: 72%; font-weight: 800; }
.art strong { color: var(--ink); font-weight: 750; }
.art kbd { font-family: inherit; font-size: 0.86em; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.art code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.84em; padding: 2px 6px; border-radius: 6px; background: var(--paper); color: var(--ink); }
.fig { margin: 8px 0 30px; }
.fig-stage { border-radius: 18px; background: #E9ECF2; padding: 32px 20px; display: grid; justify-items: center; }
.fig-stage .wg { width: 100%; max-width: 380px; box-shadow: 0 24px 48px -28px rgba(4,8,36,0.5); }
.fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--steel); }
.codebox { margin: 4px 0 30px; background: var(--ink-3); border-radius: 16px; overflow: hidden; }
.codebox-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line-dark); font-size: 13px; color: rgba(255,255,255,0.72); }
.copy { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.22); background: transparent; color: #FFFFFF; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.copy:hover { border-color: #FFFFFF; }
.codebox pre { margin: 0; padding: 18px 20px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.75; color: #DCE1F5; white-space: pre; overflow-x: auto; }
.codebox .k { color: var(--amber); }
.codebox .s { color: #A9B7FF; }
.note { display: flex; gap: 14px; margin: 0 0 30px; padding: 16px 18px; border-radius: 14px; background: var(--blue-soft); border: 1px solid #C9D2FF; font-size: 16px; line-height: 1.6; color: var(--ink); }
.note .ic { color: var(--blue); margin-top: 3px; }
.note p { margin: 0; }
.cmp { width: 100%; border-collapse: collapse; margin: 4px 0 30px; font-size: 16px; line-height: 1.45; }
.cmp th { text-align: left; padding: 12px 14px; font-size: 14px; font-weight: 800; border-bottom: 2px solid var(--ink); color: var(--ink); }
.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp td:first-child { font-weight: 650; color: var(--ink); width: 34%; }
@media (max-width: 719px) {
  .cmp { font-size: 14.5px; }
  .cmp th, .cmp td { padding: 10px 6px; }
  .cmp td:first-child { width: auto; }
}
.qa { margin: 0 0 30px; border-top: 1px solid var(--line); }
.qa div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-weight: 800; font-stretch: 108%; color: var(--ink); font-size: 18px; }
.qa dd { margin: 6px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--steel); }
.cta { margin: 44px 0 0; border-radius: 22px; background: var(--blue); color: #FFFFFF; padding: 28px 24px; display: grid; gap: 14px; position: relative; overflow: hidden; isolation: isolate; }
.cta h2 { margin: 0; color: #FFFFFF; font-size: 28px; line-height: 1.1; }
.cta p { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.9); }
.cta .ctas { margin-top: 6px; }
.post-foot { display: grid; gap: 18px; margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags span { font-size: 14px; font-weight: 700; color: var(--steel); margin-right: 4px; }
.tags a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.tags a:hover { background: #E3E6ED; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share span { font-size: 14px; font-weight: 700; color: var(--steel); margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #7F889F; background: #FFFFFF; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.author { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--paper); }
.author .avatar { width: 56px; height: 56px; font-size: 18px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.author b { display: block; font-size: 17px; color: var(--ink); }
.author p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--steel); }
.sample { margin: 0; font-size: 13px; color: var(--steel); }
.rel { background: var(--paper); padding: 64px 0 72px; }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.rel-head h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.rel-head a { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; }
.post { display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--ink); }
.post:hover { color: var(--ink); }
.post:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post .duo { aspect-ratio: 16 / 10; border-radius: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; color: var(--steel); font-weight: 600; }
.post-meta .cat { color: var(--blue); font-weight: 800; }
.post h3 { margin: 0; font-size: 20px; line-height: 1.25; font-stretch: 110%; font-weight: 800; }
.close { position: relative; background: var(--blue); color: #FFFFFF; overflow: hidden; isolation: isolate; padding: 80px 0; }
.close-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.24; filter: grayscale(1) contrast(1.2); z-index: -1; }
.close h2 { margin: 0; font-size: 36px; line-height: 1.04; max-width: 900px; text-wrap: balance; }
.close p { margin: 18px 0 28px; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.9); max-width: 620px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,184,28,0.28); flex: none; }
@media (min-width: 720px) {
  .post-h { font-size: 54px; }
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { padding: 36px; }
}
@media (min-width: 1040px) {
  .post-hd { padding: 36px 0 170px; }
  .post-h { font-size: 64px; line-height: 1; }
  .cover { margin-top: -138px; }
  .layout { grid-template-columns: 220px minmax(0, 720px); justify-content: start; gap: 72px; padding-top: 56px; }
  .toc { display: block; }
}
@media (min-width: 1280px) {
  .layout { grid-template-columns: 240px minmax(0, 720px); gap: 96px; }
}
