.hero-home{margin-top:4px}
.hero-archive{margin-top:4px}
.single-header .entry-meta{display:flex;flex-wrap:wrap;gap:12px}
.page-header-shell{min-height:220px}
.timeline-list{display:grid;gap:12px}
.timeline-item a{display:block;padding:14px 16px;border-radius:16px;background:var(--bg-soft);border:1px solid var(--line)}
.not-found{margin-top:4px;min-height:max(62vh,560px);align-items:stretch}
.not-found-shell{grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr)}
.not-found-copy{display:flex;flex-direction:column;justify-content:center;gap:18px}
.not-found-copy h1{margin:0;font-size:clamp(2.3rem,4.8vw,5rem);line-height:1.02;letter-spacing:-.05em}
.not-found-copy p{margin:0;max-width:58ch;color:var(--text-2)}
.not-found-path{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:14px 16px;border-radius:20px;background:var(--bg-soft);border:1px solid var(--line)
}
.not-found-path span{color:var(--text-3);font-size:.92rem}
.not-found-path code{
  display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:999px;
  background:rgba(255,255,255,.56);border:1px solid var(--line);overflow-wrap:anywhere
}
html[data-theme="dark"] .not-found-path code{background:rgba(255,255,255,.08)}
.not-found-search{display:flex;gap:12px;flex-wrap:wrap}
.not-found-search input{
  flex:1 1 260px;min-width:0;height:50px;padding:0 16px;border-radius:var(--radius-pill);
  border:1px solid var(--line);background:var(--bg-soft);outline:none
}
.not-found-panel{display:grid;gap:18px;padding:22px;overflow:hidden}
.nf-visual{
  position:relative;min-height:360px;border-radius:28px;overflow:hidden;isolation:isolate;
  display:grid;place-items:center;border:1px solid rgba(255,255,255,.28);
  background:linear-gradient(135deg, rgba(10,132,255,.18), rgba(94,92,230,.18) 52%, rgba(255,255,255,.12))
}
.nf-number{
  position:relative;z-index:2;margin:0;
  font-size:clamp(5.8rem,17vw,9rem);font-weight:800;line-height:1;letter-spacing:-.12em;
  color:rgba(255,255,255,.88);text-shadow:0 18px 42px rgba(11,11,15,.16)
}
.nf-ring,.nf-glow,.nf-dot{position:absolute;border-radius:50%}
.nf-ring{border:1px solid rgba(255,255,255,.5);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.nf-ring-a{width:240px;height:240px;top:26px;right:18px}
.nf-ring-b{width:180px;height:180px;bottom:18px;left:20px}
.nf-glow{filter:blur(28px);opacity:.9}
.nf-glow-a{width:160px;height:160px;left:12%;top:16%;background:rgba(255,255,255,.42)}
.nf-glow-b{width:180px;height:180px;right:8%;bottom:10%;background:rgba(48,209,88,.2)}
.nf-dot{box-shadow:0 0 0 8px rgba(255,255,255,.12)}
.nf-dot-a{width:14px;height:14px;left:18%;bottom:23%;background:#fff}
.nf-dot-b{width:20px;height:20px;right:22%;top:20%;background:rgba(255,255,255,.85)}
.nf-dot-c{width:12px;height:12px;right:34%;bottom:16%;background:rgba(255,255,255,.72)}
.not-found-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.nf-mini-card{
  padding:18px;border-radius:22px;background:var(--bg-soft);border:1px solid var(--line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12)
}
.nf-mini-card strong{display:block;font-size:1rem}
.nf-mini-card p{margin:8px 0 0;color:var(--text-2)}
.links-body .entry-content>*:first-child{margin-top:0}
.links-body .entry-content>*:last-child{margin-bottom:0}

@media (max-width: 900px){
  .not-found-grid{grid-template-columns:1fr}
}

@media (max-width: 640px){
  .not-found-search{flex-direction:column}
  .not-found-search .btn{width:100%}
  .not-found-panel{padding:18px}
  .nf-visual{min-height:280px}
  .nf-number{font-size:clamp(4.8rem, 28vw, 6.8rem)}
}
