.blog-wrap {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto 4.5rem;
}

.blog-page h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-page h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: 1.45rem;
  line-height: 1.3;
}

.blog-page h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.15rem;
}

.blog-page p,
.blog-page li {
  line-height: 1.75;
}

.blog-page .lede,
.blog-page .hint,
.blog-page .byline,
.blog-page .kicker {
  color: var(--text-secondary);
}

.kicker {
  margin: 0;
  font-size: 0.85rem;
}

.kicker a,
.back a,
.toc a {
  color: var(--link-color);
  text-decoration: none;
}

.kicker a:hover,
.back a:hover,
.toc a:hover {
  text-decoration: underline;
}

.byline {
  margin: 0 0 1rem;
}

.hero-num {
  margin: 0.4rem 0 1.1rem;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  background: var(--tech-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.toc {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.toc a {
  white-space: nowrap;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: var(--text-secondary);
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  margin: 1rem 0 0.4rem;
}

.sim-head,
.sim-controls,
.chips,
.ifg-list,
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
}

.sim-head {
  justify-content: space-between;
  font-size: 0.92rem;
}

.sim-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0.2rem;
}

.cable {
  stroke: currentColor;
  stroke-opacity: 0.35;
  stroke-width: 4;
  stroke-linecap: round;
}

#a-signal {
  fill: #00c2e0;
}

#jam {
  fill: #fb7185;
}

#hit {
  fill: #fbbf24;
}

.node circle {
  fill: var(--bg-primary);
  stroke: currentColor;
  stroke-width: 2;
}

.node.is-live circle {
  stroke: #00c2e0;
  fill: rgba(0, 194, 224, 0.18);
}

.node.is-deaf circle {
  stroke: #fb7185;
}

.node text {
  fill: currentColor;
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}

.tl-wrap {
  margin: 0.15rem 11.58% 0;
}

.tl {
  position: relative;
  height: 12px;
  border-radius: 99px;
  background: rgba(127, 127, 127, 0.22);
}

.tl-send,
.tl-now,
.tl-slot {
  position: absolute;
  top: 0;
  bottom: 0;
}

.tl-send {
  left: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #4facfe, #00e4f0);
}

.tl-now,
.tl-slot {
  width: 2px;
  top: -4px;
  bottom: -4px;
}

.tl-slot {
  background: #fbbf24;
}

.tl-now {
  background: var(--text-primary);
}

.tl-hint,
.hint {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
}

.sim-status {
  min-height: 3.2em;
  margin: 0.7rem 0 0.3rem;
  font-weight: 600;
}

.sim-status.is-ghost {
  color: #fb7185;
}

.sim-status.is-heard,
.sim-status.is-exact {
  color: #34d399;
}

.slider-label {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.7rem;
}

.slider-label input[type="range"] {
  width: 100%;
  accent-color: #00b7d4;
}

.chips button {
  border: 1px solid var(--border-color);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font: inherit;
}

.chips button[aria-pressed="true"] {
  border-color: #4facfe;
  background: rgba(79, 172, 254, 0.16);
}

.chips button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.formula,
.eq {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(79, 172, 254, 0.08);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}

.eq {
  white-space: pre-wrap;
  margin: 0.8rem 0;
}

.formula {
  font-size: 1.02rem;
}

.diameter {
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 0.2rem;
}

.cmp th,
.cmp td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.cell-sub {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.lane-label {
  margin: 0.8rem 0 0.35rem;
  font-weight: 600;
}

.lane-track {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(127, 127, 127, 0.16);
}

.lane-frame {
  flex: none;
  background: #00c2e0;
}

.lane-ext,
.burst b {
  flex: 1;
  background-color: #f59e0b;
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 6px, transparent 6px 12px);
}

.burst i,
.burst b {
  display: block;
  height: 100%;
}

.burst i {
  flex: 2;
  background: #00c2e0;
  margin-right: 4px;
}

.wire {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.35rem;
  align-items: stretch;
  margin-top: 0.9rem;
}

.byte-bar {
  display: flex;
  min-height: 46px;
  border-radius: 8px;
  overflow: hidden;
}

.byte-bar span,
.legend i {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  font-size: 0.72rem;
  color: #0b1220;
  padding: 0 0.15rem;
}

.wire-side {
  display: flex;
  align-items: center;
  padding: 0 0.35rem;
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.seg-pre,
.seg-ifg {
  border: 1px dashed var(--border-color);
}

.seg-dst { background: #38bdf8; }
.seg-src { background: #22d3ee; }
.seg-type { background: #2dd4bf; }
.seg-data { background: #4ade80; }
.seg-pad {
  background-color: #fbbf24;
  background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.16) 0 4px, transparent 4px 8px);
}
.seg-fcs { background: #c084fc; }

.legend {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend i {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  padding: 0;
}

.ifg-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1rem;
}

.ifg-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-width: 9rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.bo-window {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 1.6rem;
  margin: 0.7rem 0;
}

.bo-window i {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0.72rem;
  background: rgba(127, 127, 127, 0.18);
}

.bo-window i.is-picked,
.bo-picked {
  background: #00c2e0;
  color: #062028;
  font-weight: 700;
}

.bo-picked {
  margin: 0;
  min-width: 4.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
}

.steps {
  padding-left: 1.2rem;
}

.steps li + li {
  margin-top: 0.45rem;
}

.article-foot {
  margin-top: 2.4rem;
  color: var(--text-secondary);
}

.missing {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(251, 113, 133, 0.12);
}

.post-card {
  display: block;
  margin-top: 1rem;
  padding: 1.05rem 1.15rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.post-card:hover {
  border-color: #4facfe;
}

.post-card h2 {
  margin: 0.3rem 0;
  font-size: 1.28rem;
}

.post-card p {
  margin: 0;
}

.post-card time,
.tags span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.tags {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem !important;
}

.tags span {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #4facfe;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .wire {
    grid-template-columns: 1fr;
  }
}
