.nc-fig { margin: 2em 0; }
.nc-fig figcaption { font-size: 0.88rem; color: var(--steel-deep); padding-top: 10px; }
.nc-fig .nc-src { margin: 4px 0 0; font-size: 0.82rem; color: var(--steel-deep); }
.nc-fig .nc-src a { color: var(--steel-deep); }
.nc-frame { border: 1px solid var(--horizon); border-radius: 12px; background: var(--paper); padding: 20px; }
.nc-frame-flush { padding: 0; overflow: hidden; }
.nc-foot { margin: 14px 0 0; padding: 12px 14px; border-left: 4px solid var(--primary-deep); background: var(--paper-calm); border-radius: 0 8px 8px 0; font-size: 0.95rem; color: var(--ink); max-width: none; }
.nc-frame-flush .nc-foot { margin: 0; border-radius: 0; border-top: 1px solid var(--horizon); }
.nc-cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.4; }
.nc-cmp caption { caption-side: top; text-align: left; padding: 14px 16px 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); background: var(--paper-calm); }
.nc-cmp th, .nc-cmp td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--horizon); }
.nc-cmp thead th, .nc-cmp thead td { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--primary-deep); border-top: 0; border-bottom: 2px solid var(--primary-deep); background: var(--paper-calm); }
.nc-cmp tbody th { font-weight: 400; color: var(--ink-soft); width: 34%; }
.nc-cmp td { color: var(--ink); }
.nc-cmp tr.nc-diff th, .nc-cmp tr.nc-diff td { background: color-mix(in oklab, var(--lake) 22%, var(--paper)); }
.nc-cmp tr.nc-diff td { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--primary-deep); }
.nc-cmp tr.nc-diff th { color: var(--ink); font-weight: 700; box-shadow: inset 4px 0 0 var(--primary-deep); }
@media (max-width: 640px) {
.nc-cmp caption { display: block; }
.nc-cmp thead { display: none; }
.nc-cmp, .nc-cmp tbody, .nc-cmp tr { display: block; }
.nc-cmp tr { padding: 12px 14px; border-top: 1px solid var(--horizon); }
.nc-cmp th, .nc-cmp td { display: grid; grid-template-columns: 5.6em 1fr; gap: 10px; padding: 3px 0; border: 0; width: auto; }
.nc-cmp tbody th { display: block; padding-bottom: 6px; }
.nc-cmp td::before { content: attr(data-th); font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; line-height: 1.6; color: var(--steel-deep); }
.nc-cmp tr.nc-diff { background: color-mix(in oklab, var(--lake) 22%, var(--paper)); box-shadow: inset 4px 0 0 var(--primary-deep); }
.nc-cmp tr.nc-diff th, .nc-cmp tr.nc-diff td { background: none; box-shadow: none; }
}
.nc-tl-axis { position: relative; height: 92px; margin: 0 4px; }
.nc-tl-line { position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: var(--steel-deep); }
.nc-tl-band { position: absolute; left: var(--a); width: calc(var(--b) - var(--a)); top: 36px; height: 22px; background: color-mix(in oklab, var(--lake) 40%, var(--paper)); border-inline: 2px solid var(--primary-deep); }
.nc-tl-band span { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--primary-deep); white-space: nowrap; }
.nc-tl-tick { position: absolute; left: var(--p); top: 40px; height: 14px; border-left: 2px solid var(--steel-deep); }
.nc-tl-year { position: absolute; left: var(--p); top: 72px; transform: translateX(-50%); font-size: 0.8rem; color: var(--steel-deep); }
.nc-tl-pt { position: absolute; left: var(--p); top: 47px; width: 0; }
.nc-tl-pt::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-deep); box-shadow: 0 0 0 2px var(--paper); }
.nc-tl-pt b { position: absolute; left: -11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-content: center; background: var(--paper); border: 2px solid var(--primary-deep); color: var(--primary-deep); font-family: var(--font-display); font-size: 0.78rem; line-height: 1; }
.nc-tl-pt.is-up b { bottom: 12px; }
.nc-tl-pt.is-down b { top: 12px; }
.nc-tl-evs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nc-tl-ev { position: relative; margin: 0; padding: 10px 12px 12px 12px; border: 1px solid var(--horizon); border-top: 3px solid var(--primary-deep); border-radius: 8px; background: var(--paper); }
.nc-tl-ev p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); max-width: none; }
.nc-tl-ev .nc-tl-date { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 2px 0 4px; }
.nc-tl-n { display: inline-grid; place-content: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--primary-deep); color: var(--primary-deep); font-family: var(--font-display); font-size: 0.78rem; line-height: 1; }
.nc-tl-ev:last-child { border-top-color: var(--primary); background: color-mix(in oklab, var(--lake) 14%, var(--paper)); }
.nc-tl-trans { display: none; }
.nc-tl-side { margin: 10px 0 0; text-align: right; font-size: 0.88rem; color: var(--steel-deep); max-width: none; }
.nc-tl-side::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 1.5px dashed var(--steel-deep); border-radius: 50%; vertical-align: -1px; }
@media (max-width: 700px) {
.nc-tl-axis { display: none; }
.nc-tl-evs { grid-template-columns: 1fr; gap: 0; position: relative; padding-left: 34px; margin-top: 0; }
.nc-tl-evs::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--steel-deep); }
.nc-tl-ev { border: 0; border-radius: 0; padding: 0 0 16px; background: none; }
.nc-tl-ev:last-child { padding-bottom: 0; background: none; }
.nc-tl-n { position: absolute; left: -34px; top: 0; background: var(--paper); }
.nc-tl-ev .nc-tl-date { margin-top: 0; }
.nc-tl-trans { display: block; position: relative; margin: -4px 0 12px; padding: 8px 12px; background: color-mix(in oklab, var(--lake) 40%, var(--paper)); border-left: 3px solid var(--primary-deep); border-radius: 0 6px 6px 0; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--primary-deep); }
.nc-tl-trans::before { content: ""; position: absolute; left: -26px; top: -16px; bottom: -12px; width: 8px; background: color-mix(in oklab, var(--lake) 60%, var(--paper)); border-radius: 4px; }
.nc-tl-side { text-align: left; }
}
.nc-sig .nc-elev { border-radius: 12px; overflow: hidden; border: 1px solid var(--horizon); }
.nc-wall {
padding: 18px 26px 0;
background-color: color-mix(in oklab, var(--sand) 82%, var(--paper));
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='28'%3E%3Cg stroke='%23505a64' stroke-opacity='.28' stroke-width='1' fill='none'%3E%3Cpath d='M0 .5H44M0 14.5H44M.5 0V14M22.5 14V28'/%3E%3C/g%3E%3C/svg%3E");
background-size: 44px 28px;
}
.nc-lintel { height: 12px; margin: 0 0 0 46px; background: var(--steel-deep); border-radius: 2px 2px 0 0; max-width: calc(100% - 46px - 236px); }
.nc-open { display: grid; grid-template-columns: 46px 1fr 236px; }
.nc-dim { position: relative; display: grid; place-items: center; }
.nc-dim::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; border-left: 2px solid var(--ink); }
.nc-dim::after { content: ""; position: absolute; left: calc(50% - 9px); right: calc(50% - 11px); top: 0; bottom: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.nc-dim span { position: relative; z-index: 1; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 3px; background: color-mix(in oklab, var(--sand) 82%, var(--paper)); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--ink); white-space: nowrap; }
.nc-door { background: var(--steel-deep); padding: 3px 3px 0; }
.nc-pan {
position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
min-height: 96px; padding: 16px 18px; margin-bottom: 3px;
background-color: color-mix(in oklab, var(--steel) 45%, var(--paper));
background-image: repeating-linear-gradient(180deg, transparent 0 15px, color-mix(in oklab, var(--steel-deep) 18%, transparent) 15px 16px);
box-shadow: inset 0 -3px 0 color-mix(in oklab, var(--steel-deep) 35%, var(--steel)), inset 0 2px 0 var(--paper);
}
.nc-pan.is-last { margin-bottom: 0; }
.nc-pan.is-last::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 46px; height: 6px; margin-left: -23px; border-radius: 3px; background: var(--steel-deep); }
.nc-pn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; background: var(--primary-deep); color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.nc-pt { margin: 4px 0 0; font-size: 1rem; line-height: 1.5; color: var(--ink); max-width: none; }
.nc-pt b { font-family: var(--font-display); }
.nc-tag {
position: absolute; left: calc(100% + 24px); top: 50%; transform: translateY(-50%); width: 200px; margin: 0;
padding: 10px 12px; background: var(--paper); border: 2px solid var(--primary-deep); border-radius: 8px;
font-size: 0.85rem; line-height: 1.45; color: var(--ink); max-width: none;
}
.nc-tag::before { content: ""; position: absolute; right: 100%; top: 50%; width: 22px; border-top: 2px solid var(--primary-deep); }
.nc-tag::after { content: ""; position: absolute; right: calc(100% + 18px); top: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--primary-deep); }
.nc-drive { height: 30px; background: linear-gradient(180deg, var(--steel-deep) 0 3px, color-mix(in oklab, var(--steel) 70%, var(--paper)) 3px); }
@media (max-width: 760px) {
.nc-wall { padding: 12px 10px 0; }
.nc-lintel { margin-left: 34px; max-width: none; }
.nc-open { grid-template-columns: 34px 1fr; }
.nc-dim span { font-size: 0.85rem; }
.nc-pan { grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 12px 14px; min-height: 0; }
.nc-pan.is-last { padding-bottom: 30px; }
.nc-pn { width: 28px; height: 28px; font-size: 0.9rem; }
.nc-pt { margin-top: 2px; font-size: 0.95rem; }
.nc-tag { position: relative; left: auto; top: auto; transform: none; width: auto; grid-column: 2; margin-top: 4px; }
.nc-tag::before, .nc-tag::after { display: none; }
}
.nc-feed { display: grid; grid-template-columns: minmax(9rem, 12rem) minmax(60px, 1fr) minmax(10rem, 14rem); grid-template-rows: repeat(4, minmax(56px, 1fr)); row-gap: 10px; }
.nc-in { grid-column: 1; margin: 0; align-self: center; padding: 12px 14px; border: 1.5px solid var(--steel); border-radius: 8px; background: var(--paper-calm); font-family: var(--font-display); font-weight: 700; color: var(--ink); max-width: none; }
.nc-in.is-key { border: 2px solid var(--primary-deep); background: color-mix(in oklab, var(--lake) 30%, var(--paper)); color: var(--primary-deep); }
.nc-feed-lines { grid-column: 2; grid-row: 1 / 5; position: relative; }
.nc-stub { position: absolute; left: 0; width: 34%; top: var(--y); border-top: 2px solid var(--steel-deep); }
.nc-stub.is-key { border-top: 3px solid var(--primary-deep); margin-top: -0.5px; }
.nc-brace { position: absolute; left: 34%; top: 12.5%; bottom: 12.5%; border-left: 2px solid var(--steel-deep); }
.nc-to-out, .nc-to-clause { position: absolute; left: 34%; right: 8px; border-top: 2px solid var(--steel-deep); }
.nc-to-out { top: 62.5%; }
.nc-to-clause { top: 12.5%; border-top: 3px solid var(--primary-deep); margin-top: -0.5px; }
.nc-to-out::after, .nc-to-clause::after { content: ""; position: absolute; right: -8px; top: -7px; border-left: 10px solid var(--steel-deep); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.nc-to-clause::after { border-left-color: var(--primary-deep); top: -7.5px; }
.nc-out { grid-column: 3; margin: 0; align-self: center; padding: 14px 16px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35; max-width: none; position: relative; }
.nc-out.is-clause { grid-row: 1; background: var(--primary-deep); color: var(--paper); }
.nc-out.is-class { grid-row: 2 / 5; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); }
.nc-trig { position: absolute; right: calc(100% + 14px); bottom: calc(50% + 6px); width: max-content; max-width: 12rem; font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; line-height: 1.3; color: var(--primary-deep); text-align: right; }
@media (max-width: 640px) {
.nc-feed { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.05fr); row-gap: 8px; }
.nc-in { padding: 10px; font-size: 0.92rem; }
.nc-stub { width: 40%; }
.nc-brace, .nc-to-out, .nc-to-clause { left: 40%; }
.nc-to-out, .nc-to-clause { right: 6px; }
.nc-out { padding: 10px 11px; font-size: 0.95rem; }
.nc-trig { position: static; display: block; width: auto; max-width: none; margin-bottom: 4px; text-align: left; color: var(--lake); font-size: 0.8rem; }
}
.nc-quote blockquote { margin: 0; padding: 18px 22px; border-left: 5px solid var(--primary-deep); background: var(--paper-calm); border-radius: 0 10px 10px 0; }
.nc-quote blockquote p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3.2vw, 1.7rem); line-height: 1.3; color: var(--primary-deep); max-width: none; }
.nc-quote figcaption { padding-left: 27px; }
.nc-quote figcaption a { color: var(--steel-deep); }
.nc-check-wrap { border: 1px solid var(--horizon); border-radius: 12px; background: var(--paper-calm); overflow: hidden; }
.nc-check { list-style: none; padding: 0; margin: 0; }
.nc-check li { margin: 0; }
.nc-check li + li { border-top: 1px solid var(--horizon); }
.nc-check label { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; cursor: pointer; }
.nc-check input { flex: none; -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 2px 0 0; border: 2px solid var(--steel-deep); border-radius: 5px; background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.nc-check input::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--paper); border-bottom: 2.5px solid var(--paper); transform: translateY(-2px) rotate(-45deg); opacity: 0; }
.nc-check input:checked { background: var(--primary-deep); border-color: var(--primary-deep); }
.nc-check input:checked::after { opacity: 1; }
.nc-check input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nc-n { flex: none; width: 1.3em; font-family: var(--font-display); font-weight: 700; color: var(--steel-deep); line-height: 1.5; }
.nc-ct { line-height: 1.5; }
.nc-check input:checked ~ .nc-ct { color: var(--steel-deep); text-decoration: line-through; text-decoration-color: var(--lake); }
.nc-card { list-style: none; margin: 0; padding: 0; border: 2px solid var(--primary-deep); border-radius: 12px; overflow: hidden; background: var(--paper); }
.nc-card li { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start; padding: 13px 16px; }
.nc-card li + li { border-top: 1px solid var(--horizon); }
.nc-card li:nth-child(n+4) { background: var(--paper-calm); }
.nc-card p { margin: 0; line-height: 1.5; color: var(--ink); max-width: none; }
.nc-card b { font-family: var(--font-display); color: var(--primary-deep); }
.nc-chip { display: inline-block; padding: 2px 9px; border: 1px solid var(--steel); border-radius: 999px; font-size: 0.8rem; color: var(--steel-deep); text-decoration: none; background: var(--paper); white-space: nowrap; }
.nc-chip:hover { border-color: var(--primary); color: var(--primary-deep); }
@media (max-width: 560px) {
.nc-card li { grid-template-columns: 1fr; }
.nc-card .nc-chip { justify-self: start; }
}
.refs > p { font-size: 0.95rem; color: var(--ink-soft); }
.refs li a { overflow-wrap: anywhere; }