/* Insights: article pages (single.php) and the article list (index.php).
   Hand-maintained; not generated by build-theme.js. Uses the tokens defined in site.css. */

/* ---------- article list ---------- */
.posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 32px}
.post-card{display:flex;flex-direction:column;gap:10px;min-width:0}
.post-card img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border:1px solid var(--rule);margin-bottom:6px}
.post-card h2{font-size:24px;line-height:1.2;font-weight:500;letter-spacing:-.015em}
.post-card h2 a{text-decoration:none}
.post-card h2 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.post-card p{font-size:15.5px;line-height:1.65;color:var(--ink-2)}
@media(max-width:1000px){.posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.posts-grid{grid-template-columns:minmax(0,1fr)}}

/* ---------- article page ---------- */
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* the page head keeps the same side gutter as the text below it, at every width */
.dd-post .pagehead{padding:56px 44px 36px}
@media(max-width:1150px){.dd-post .pagehead{padding:48px 32px 32px}}
@media(max-width:640px){.dd-post .pagehead{padding:36px 22px 26px}}
.dd-post .pagehead h1{font-size:clamp(34px,4.6vw,60px);max-width:20ch;letter-spacing:-.035em}
.dd-cover{margin:0 0 44px}
.dd-cover img{display:block;width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;object-position:50% 38%}
.dd-post .two{padding-bottom:40px}
.dd-post .prose{min-width:0;container-type:inline-size;font-family:"Archivo","PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif}
.dd-post .prose img{max-width:100%;height:auto}
.dd-post .prose h2{font-size:clamp(26px,3vw,34px);line-height:1.12;margin:56px 0 18px;font-weight:500}
.dd-post .prose h3{font-size:21px;margin:30px 0 10px;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.dd-post .prose p.stepno{font-family:var(--ff-m);font-size:12px;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;color:var(--crimson-aa);font-weight:500;margin:56px 0 10px}
.dd-post .prose p.stepno + h2{margin-top:0}
.dd-post .prose p.more{font-size:15px;color:var(--muted)}
.dd-post .prose ul{margin:0 0 22px;padding:0;list-style:none;display:grid;gap:10px;max-width:64ch}
.dd-post .prose ul li{position:relative;padding-left:22px;font-size:17px;line-height:1.7;color:var(--ink-2)}
.dd-post .prose ul li::before{content:"";position:absolute;left:0;top:.72em;width:10px;height:2px;background:var(--crimson)}
.dd-post .prose strong,.dd-post .prose b{color:var(--ink);font-weight:600}
.dd-post .prose a:not(.btn){color:var(--crimson-aa);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.dd-post .prose a:not(.btn):hover{text-decoration-thickness:2px}
.dd-post .prose figure{margin:28px 0 30px}
.dd-post .prose figcaption{font-size:13.5px;line-height:1.5;color:var(--muted);margin-top:10px;text-align:left}
.dd-post .prose .dd-banner img{display:block;width:100%;border:1px solid var(--rule)}

/* in short + contents */
.dd-short{background:var(--surface);border:1px solid var(--rule);padding:28px 30px;margin:0 0 14px}
.dd-short .mono,.dd-toc .mono{display:block;margin-bottom:14px}
.dd-post .prose .dd-short ul{margin:0;max-width:none}
.dd-toc{border:1px solid var(--rule);border-top:0;padding:22px 30px;margin:-14px 0 8px}
.dd-toc ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 28px}
.dd-post .prose .dd-toc a{font-size:15px;color:var(--ink);text-decoration:none;border-bottom:1px solid var(--rule-2)}
.dd-post .prose .dd-toc a:hover{border-color:var(--crimson)}

/* yearly figures */
.dd-figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.dd-figs div{padding:16px 12px 16px 0;min-width:0}
.dd-figs b{display:block;font-family:var(--ff-d);font-weight:400;font-size:clamp(26px,3.2vw,38px);letter-spacing:-.03em;line-height:1.05;color:var(--ink);font-variant-numeric:tabular-nums}
.dd-figs span{font-family:var(--ff-m);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

/* three moments */
.dd-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dd-journey .jcol{background:var(--surface);border:1px solid var(--rule);border-top:3px solid var(--ink);padding:18px 16px 20px;position:relative;min-width:0}
.dd-journey .jcol.j1{border-top-color:var(--crimson)}
.dd-journey .jcol.j2{border-top-color:var(--amber)}
.dd-journey .jcol .mono{color:var(--ink);font-weight:500}
.dd-post .prose .dd-journey .jq{font-size:14.5px;line-height:1.55;color:var(--ink-2);margin:8px 0 16px;max-width:none}
.dd-post .prose .dd-journey ul{display:grid;gap:14px;margin:0;padding:0;list-style:none;max-width:none}
.dd-post .prose .dd-journey li{padding:0;display:grid;grid-template-columns:36px minmax(0,1fr);gap:11px;align-items:start;font-size:15px;line-height:1.4;color:var(--ink)}
.dd-post .prose .dd-journey li::before{content:none}
.dd-post .prose .dd-journey img{width:36px;height:36px;border-radius:8px}
.dd-journey .zh{display:block;color:var(--muted);font-size:13px;line-height:1.35}
.dd-journey small{display:block;font-size:13px;line-height:1.45;color:var(--muted);margin-top:3px}
.dd-journey .jcol:not(:last-child)::after{content:"→";position:absolute;right:-13px;top:14px;width:12px;text-align:center;font-family:var(--ff-m);font-size:13px;color:var(--muted);z-index:1}

/* phone screens */
.dd-phones{display:grid;grid-template-columns:repeat(3,minmax(0,190px));gap:22px;margin:28px 0 26px}
.dd-post .prose .dd-phones figure{margin:0}
.dd-post .prose .dd-phones img{display:block;width:100%;aspect-ratio:9/18;object-fit:cover;object-position:top;border:1px solid var(--rule);border-radius:16px;background:var(--wash);box-shadow:0 10px 28px rgba(36,30,32,.10)}
.dd-post .prose .dd-phones figcaption{text-align:center;color:var(--ink-2)}

/* call to action inside the article */
.dd-cta{background:var(--wash);border-left:3px solid var(--amber);padding:26px 28px;margin:34px 0 22px;display:grid;gap:16px}
.dd-post .prose .dd-cta p{margin:0;font-size:17px;color:var(--ink);max-width:52ch}
.dd-btns{display:flex;flex-wrap:wrap;gap:10px}
.dd-post .prose .btn-o{background:var(--surface)}

/* year timeline, drawn to a 365-day scale */
.dd-year{margin:26px 0 30px}
.dd-year .track{position:relative;height:34px;background:var(--surface);border:1px solid var(--rule)}
.dd-year .track i{position:absolute;top:0;bottom:0;display:block}
.dd-year .cny{left:5.5%;width:9.6%;background:var(--crimson)}
.dd-year .may{left:32.9%;width:1.6%;min-width:7px;background:var(--amber)}
.dd-year .sum{left:49.6%;width:17%;background:var(--ink)}
.dd-year .oct{left:74.8%;width:2%;min-width:8px;background:var(--crimson)}
.dd-year .months{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));margin-top:6px}
.dd-year .months span{font-family:var(--ff-m);font-size:11px;letter-spacing:.04em;color:var(--muted);text-transform:uppercase;border-left:1px solid var(--rule-2);padding-left:4px}
.dd-post .prose .dd-year ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin:22px 0 0;padding:0;list-style:none;max-width:none}
.dd-post .prose .dd-year li{padding-left:22px;font-size:15px;line-height:1.5;color:var(--ink-2)}
.dd-post .prose .dd-year li::before{top:.35em;width:12px;height:12px;background:var(--ink)}
.dd-post .prose .dd-year li.k1::before,.dd-post .prose .dd-year li.k4::before{background:var(--crimson)}
.dd-post .prose .dd-year li.k2::before{background:var(--amber)}
.dd-year li b{display:block;color:var(--ink);font-weight:600;font-size:16px}
.dd-year li em{font-style:normal;font-family:var(--ff-m);font-size:12px;letter-spacing:.04em;color:var(--muted);display:block;margin:2px 0}

/* tables */
.dd-post .prose .wp-block-table{margin:24px 0 26px;overflow-x:auto}
.dd-post .prose table{border-collapse:collapse;width:100%;font-size:15.5px;table-layout:auto}
.dd-post .prose th{font-family:var(--ff-m);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:500;text-align:left;padding:0 16px 10px 0;border:0;border-bottom:1px solid var(--ink)}
.dd-post .prose td{padding:14px 16px 14px 0;border:0;border-bottom:1px solid var(--rule);vertical-align:top;color:var(--ink-2);line-height:1.5}
.dd-post .prose td:first-child{color:var(--ink);font-weight:500}
.dd-post .prose td:nth-child(2){color:var(--ink);font-weight:600}

/* closing block */
.dd-close{background:var(--ink);padding:34px 32px;margin-top:56px}
.dd-post .prose .dd-close h2{margin:0 0 12px;color:var(--paper);font-size:28px}
.dd-post .prose .dd-close p{color:var(--paper);opacity:.86;max-width:56ch}
.dd-post .prose .dd-close .btn-o{background:transparent;color:var(--paper);border-color:var(--muted)}

@container (max-width:600px){
  .dd-figs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dd-journey{grid-template-columns:minmax(0,1fr)}
  .dd-journey .jcol:not(:last-child)::after{content:"↓";right:auto;left:16px;top:auto;bottom:-15px}
}
@media(max-width:640px){
  .dd-cover{margin-bottom:30px}
  .dd-cover img{aspect-ratio:4/3}
  .dd-toc ol,.dd-post .prose .dd-year ul{grid-template-columns:minmax(0,1fr)}
  .dd-phones{gap:10px}
  .dd-short,.dd-toc{padding-left:20px;padding-right:20px}
  .dd-year .months span{font-size:9.5px;padding-left:2px;letter-spacing:0}
  .dd-post .prose table{font-size:14.5px}
  .dd-post .prose th,.dd-post .prose td{padding-right:10px}
  .dd-close{padding:28px 22px}
}
