.prose h2[id] { scroll-margin-top: 92px; }
.fig { margin: 1.8rem 0; }
.fig__frame { border: 1px solid var(--line); border-left: 4px solid var(--cove); border-radius: var(--radius); background: var(--paper); padding: 1rem; }
.fig svg { display: block; width: 100%; height: auto; }
.fig__cap { font-family: var(--f-mono); font-size: .74rem; line-height: 1.6; color: var(--ink-soft); margin: .55rem 0 0; letter-spacing: .02em; }
.fig__src { font-family: var(--f-mono); font-size: .7rem; line-height: 1.7; color: var(--ink-soft); margin: .5rem 0 0; overflow-wrap: anywhere; }
.fig__src b { color: var(--ink); font-weight: 500; }
.fig__title { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--ink); margin: 0 0 .75rem; }
figure svg.viz-phone { display: none !important; }
@media (max-width: 700px) {
figure svg.viz-wide { display: none !important; }
figure svg.viz-phone { display: block !important; }
}
.fig--photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--paper-2); }
.prose > .fig--hero:first-child { margin-top: 0; }
.dtable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dtable th, .dtable td { text-align: left; padding: .6rem .7rem; vertical-align: top; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; color: var(--ink); }
.dtable thead th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--eucalypt); border-bottom: 2px solid var(--line); }
.dtable tbody tr:last-child td, .dtable tbody tr:last-child th { border-bottom: 0; }
.dtable tbody th { font-weight: 600; min-width: 9rem; overflow-wrap: normal; }
.dtable tbody th .cf-code { display: block; width: fit-content; margin: 0 0 .3rem; }
.dtable ul { margin: 0; padding-left: 1.05rem; }
.dtable li { margin: 0 0 .3rem; }
.cf-code { display: inline-block; min-width: 2.4rem; font-family: var(--f-mono); font-weight: 500; font-size: .9rem; color: #fff; background: var(--cove); border-radius: 3px; padding: .05rem .4rem; margin-right: .35rem; text-align: center; }
.cf-c3 .cf-code { background: #7fa39c; }
.cf-c4 .cf-code { background: #4f7f77; }
.cf-c5 .cf-code { background: #2c6a61; }
.cf-cx .cf-code { background: var(--cove-d); }
@media (max-width: 640px) {
.dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dtable tr { display: block; margin-bottom: .7rem; padding: .45rem .2rem; border: 1px solid var(--line); border-left: 4px solid var(--cove); border-radius: var(--radius); background: #fbf8f1; }
.dtable td, .dtable th { display: block; border: 0 !important; padding: .3rem .8rem; }
.dtable td.dt-blank { display: none; }
.dtable tbody tr:last-child { margin-bottom: 0; }
.dtable td[data-l]::before { content: attr(data-l); display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--eucalypt); }
}
.chk { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fbf8f1; }
.chk li { margin: 0; padding: .05rem .95rem; border-top: 1px solid var(--line-soft); }
.chk li:first-child { border-top: 0; }
.chk label { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; padding: .65rem 0; font-size: .97rem; line-height: 1.5; color: var(--ink); }
.chk input { flex: none; width: 1.05rem; height: 1.05rem; margin: .22rem 0 0; accent-color: var(--cove); }
.chk input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--eucalypt); }
@media print { .chk li { break-inside: avoid; } }
.cf-bands { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.cf-bands li { margin: 0; padding: .55rem .6rem .6rem; background: #fbf8f1; border: 1px solid var(--line-soft); border-top: 5px solid var(--cove); border-radius: var(--radius); font-size: .86rem; line-height: 1.45; color: var(--ink); }
.cf-bands li.cf-cx { border-top-color: var(--cove-d); }
.cf-bands li.cf-c5 { border-top-color: #2c6a61; }
.cf-bands li.cf-c4 { border-top-color: #4f7f77; }
.cf-bands li.cf-c3 { border-top-color: #7fa39c; }
.cf-bands b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .8rem; letter-spacing: .08em; color: var(--cove-d); margin-bottom: .15rem; }
.cf-insets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .9rem; }
.cf-inset { margin: 0; padding: .6rem; background: #fbf8f1; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.cf-inset p { margin: .5rem 0 0; font-size: .88rem; line-height: 1.45; color: var(--ink); }
.cf-inset p b { color: var(--cove-d); }
@media (max-width: 700px) {
.cf-bands { grid-template-columns: 1fr 1fr; }
.cf-insets { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .cf-bands { grid-template-columns: 1fr; } }
.cf-drift { animation: cf-drift 7s linear infinite; }
.cf-drift.cf-d2 { animation-delay: -2.3s; }
.cf-drift.cf-d3 { animation-delay: -4.6s; }
@keyframes cf-drift { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translateX(var(--cf-run, 220px)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cf-drift { animation: none !important; opacity: .6; } }
.cf-banner { margin: 0 0 .9rem; padding: .45rem .7rem; background: var(--cove); color: #fff; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; border-radius: 3px; }
.cf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cf-steps li { margin: 0; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .7rem; align-items: baseline; padding: .55rem .8rem; background: #fbf8f1; border: 1px solid var(--line-soft); border-radius: var(--radius); font-size: .97rem; line-height: 1.45; color: var(--ink); }
.cf-steps li:nth-child(2) { margin-left: 1.2rem; }
.cf-steps li:nth-child(3) { margin-left: 2.4rem; }
.cf-steps li:nth-child(4) { margin-left: 3.6rem; border-left: 4px solid var(--cove); }
.cf-step { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--eucalypt); }
.cf-steps strong { color: var(--cove-d); }
.cf-range { grid-column: 1 / -1; max-width: 360px; margin-top: .2rem; }
.cf-footbox { margin: .9rem 0 0; padding: .6rem .8rem; border: 1.5px dashed var(--timber-d); border-radius: var(--radius); background: #fbf8f1; font-size: .93rem; line-height: 1.5; color: var(--ink); }
.cf-footline { margin: .6rem 0 0; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .93rem; line-height: 1.5; color: var(--ink); }
@media (max-width: 560px) {
.cf-steps li { grid-template-columns: 1fr; gap: .1rem; }
.cf-steps li:nth-child(2) { margin-left: .5rem; }
.cf-steps li:nth-child(3) { margin-left: 1rem; }
.cf-steps li:nth-child(4) { margin-left: 1.5rem; }
}
.cf-key { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .55rem; }
.cf-key li { margin: 0; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .6rem; align-items: baseline; font-size: .93rem; line-height: 1.5; color: var(--ink); }
.cf-n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--cove); color: #fff; font-family: var(--f-mono); font-size: .78rem; transform: translateY(.15rem); }
.cf-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.cf-block { margin: 0; padding: .8rem .9rem .9rem; background: #fbf8f1; border: 1px solid var(--line); border-top: 4px solid var(--cove); border-radius: var(--radius); display: flex; flex-direction: column; gap: .45rem; }
.cf-block-h { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; color: var(--cove-d); }
.cf-block ul { margin: 0; padding: 0; list-style: none; }
.cf-block li { margin: 0; padding: .4rem 0; border-top: 1px solid var(--line-soft); font-size: .9rem; line-height: 1.45; color: var(--ink); }
.cf-block li .cf-code { font-size: .78rem; min-width: 2rem; }
.cf-fn { margin-top: auto !important; padding-top: .35rem; font-family: var(--f-mono); font-size: .66rem; line-height: 1.6; color: var(--ink-soft); overflow-wrap: anywhere; }
@media (max-width: 760px) { .cf-glance { grid-template-columns: 1fr; } }
.srcs { list-style: none; padding: 0; margin: 0; }
.srcs li { margin-bottom: .8rem; font-size: .95rem; overflow-wrap: anywhere; }